From 6786d1a6646375a5c3225b22d3a1d04795643889 Mon Sep 17 00:00:00 2001 From: Craig <3979063+craig8@users.noreply.github.com> Date: Tue, 29 Nov 2022 12:38:18 -0800 Subject: [PATCH 1/3] Prepare for 10.0.0-rc Release --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 349c6c5..e5f74ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,9 +7,9 @@ profile = "black" [tool.poetry] name = "volttron-lib-fake-driver" -version = "0.1.0" -description = "Fake Driver supported and maintained by the Volttron team." -authors = ["Mark Bonicillo "] +version = "0.2.0-rc" +description = "A minimal implementation of a driver for the VOLTTRON platform." +authors = ["VOLTTRON Team "] license = "Apache License 2.0" readme = "README.md" repository = "https://github.com/eclipse-volttron/volttron-lib-fake-driver" From aa83c511854e5e819f0f00f08019c0cd6f7cdffe Mon Sep 17 00:00:00 2001 From: Craig <3979063+craig8@users.noreply.github.com> Date: Tue, 29 Nov 2022 14:36:40 -0800 Subject: [PATCH 2/3] Prepare for 10.0.0rc release --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e5f74ec..30093fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,10 +27,10 @@ classifiers = [ [tool.poetry.dependencies] python = ">=3.8,<4.0" -volttron-lib-base-driver = "^0.1.1a3" +volttron-lib-base-driver = "^0.2.0rc0" [tool.poetry.group.dev.dependencies] -volttron-testing = "^0.3.1a9" +volttron-testing = "^0.4.0rc0" pytest = "^6.2.5" pytest-cov = "^3.0.0" mock = "^4.0.3" From 8b158ad8112e237e58a0defa72e52734e8f3edbc Mon Sep 17 00:00:00 2001 From: Craig <3979063+craig8@users.noreply.github.com> Date: Tue, 29 Nov 2022 14:35:06 -0800 Subject: [PATCH 3/3] add dispatch-to-pypi --- .github/workflows/dispatch-to-pypi.yml | 39 ++++++++++++++++++++++++++ .github/workflows/publish-to-pypi.yml | 39 -------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/dispatch-to-pypi.yml delete mode 100644 .github/workflows/publish-to-pypi.yml diff --git a/.github/workflows/dispatch-to-pypi.yml b/.github/workflows/dispatch-to-pypi.yml new file mode 100644 index 0000000..a70b35f --- /dev/null +++ b/.github/workflows/dispatch-to-pypi.yml @@ -0,0 +1,39 @@ +--- +# Documentation located +# https://github.com/marketplace/actions/publish-python-poetry-package +name: Dispatch to PyPi + +on: + workflow_dispatch: + +defaults: + run: + shell: bash + +env: + LANG: en_US.utf-8 + LC_ALL: en_US.utf-8 + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + +jobs: + + publish_to_pypi: + + runs-on: ubuntu-22.04 + + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.7 + with: + # These are only needed when using test.pypi + #repository_name: testpypi + #repository_url: https://test.pypi.org/legacy/ + pypi_token: ${{ secrets.PYPI_TOKEN }} + ignore_dev_requirements: "yes" diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml deleted file mode 100644 index 85963cc..0000000 --- a/.github/workflows/publish-to-pypi.yml +++ /dev/null @@ -1,39 +0,0 @@ -# Documentation located -# https://github.com/marketplace/actions/publish-python-poetry-package -name: Publish to PyPi - -on: - release: - types: [published] - -defaults: - run: - shell: bash - -env: - LANG: en_US.utf-8 - LC_ALL: en_US.utf-8 - PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - -jobs: - - publish_to_pypi: - - runs-on: ubuntu-20.04 - - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - - name: Checkout code - uses: actions/checkout@v2 - - - name: Build and publish to pypi - uses: JRubics/poetry-publish@v1.7 - with: - # These are only needed when using test.pypi - #repository_name: testpypi - #repository_url: https://test.pypi.org/legacy/ - pypi_token: ${{ secrets.PYPI_TOKEN }} - ignore_dev_requirements: yes