From b6c68bfc55e06060f3ff95a768e3bbde8a56a599 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 10 Sep 2023 11:28:07 +0000 Subject: [PATCH 1/4] build(deps): bump relekang/python-semantic-release from 7.34.6 to 8.0.8 Bumps [relekang/python-semantic-release](https://github.com/relekang/python-semantic-release) from 7.34.6 to 8.0.8. - [Release notes](https://github.com/relekang/python-semantic-release/releases) - [Changelog](https://github.com/python-semantic-release/python-semantic-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/relekang/python-semantic-release/compare/v7.34.6...v8.0.8) --- updated-dependencies: - dependency-name: relekang/python-semantic-release dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e56ecc..df58d31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,13 +80,13 @@ jobs: fetch-depth: 0 - name: Release - uses: relekang/python-semantic-release@v7.34.6 + uses: relekang/python-semantic-release@v8.0.8 if: github.ref_name == 'main' with: github_token: ${{ secrets.GITHUB_TOKEN }} pypi_token: ${{ secrets.PYPI_TOKEN }} - name: Test release - uses: relekang/python-semantic-release@v7.34.6 + uses: relekang/python-semantic-release@v8.0.8 if: github.ref_name != 'main' with: additional_options: --noop From 24689fde5d0be4308d0fa690a5bce59c740d2bab Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Sun, 10 Sep 2023 15:05:54 +0200 Subject: [PATCH 2/4] chore: update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df58d31..3211692 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,4 +89,4 @@ jobs: uses: relekang/python-semantic-release@v8.0.8 if: github.ref_name != 'main' with: - additional_options: --noop + root_options: --noop From 673c93ffbc78a0aec71cd220514e4b48b7821b69 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Sat, 16 Sep 2023 14:52:25 +0000 Subject: [PATCH 3/4] build: fix commitlint From fdeec2706d6770b8b38f61838bc6bc975028b704 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Tue, 3 Oct 2023 17:24:13 +0000 Subject: [PATCH 4/4] chore: migrate cfg from 7.x to 8.x --- .github/workflows/ci.yml | 25 ++++++++++++++++++++----- pyproject.toml | 4 ++-- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3211692..9825805 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,14 +79,29 @@ jobs: with: fetch-depth: 0 - - name: Release - uses: relekang/python-semantic-release@v8.0.8 + - name: Python Semantic Release + id: release + uses: python-semantic-release/python-semantic-release@v8.0.0 if: github.ref_name == 'main' with: github_token: ${{ secrets.GITHUB_TOKEN }} - pypi_token: ${{ secrets.PYPI_TOKEN }} - - name: Test release - uses: relekang/python-semantic-release@v8.0.8 + + - name: Python Semantic Test + id: test + uses: python-semantic-release/python-semantic-release@v8.0.0 if: github.ref_name != 'main' with: + github_token: ${{ secrets.GITHUB_TOKEN }} root_options: --noop + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true. + # See https://github.com/actions/runner/issues/1173 + if: steps.release.outputs.released == 'true' + + - name: Publish package distributions to GitHub Releases + uses: python-semantic-release/upload-to-gh-release@main + if: steps.release.outputs.released == 'true' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 28d6573..0f844b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,8 +32,8 @@ pytest-cov = ">=3,<5" [tool.semantic_release] branch = "main" -version_toml = "pyproject.toml:tool.poetry.version" -version_variable = "src/aiovodafone/__init__.py:__version__" +version_toml = ["pyproject.toml:tool.poetry.version"] +version_variable = ["src/aiovodafone/__init__.py:__version__"] build_command = "pip install poetry && poetry build" [tool.pytest.ini_options]