From eb60837909d767ffc388fa16f5cc1687d1e6f758 Mon Sep 17 00:00:00 2001 From: fbjorn Date: Mon, 17 Nov 2025 16:47:03 +0300 Subject: [PATCH 1/3] update poetry --- .github/workflows/publish.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 30b0801..4f5b750 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,8 +2,10 @@ name: Build and publish to PyPI on: push: - tags: - - "*" + branches: + - "chore/poetry2" + # tags: + # - "*" jobs: build: @@ -19,7 +21,7 @@ jobs: python-version: "3.13" - name: Install Poetry and pre-commit 💈 - run: pip install poetry==1.8.5 pre-commit + run: pip install poetry==2.2.1 pre-commit - name: Install dependencies 🛠 run: poetry install @@ -42,7 +44,7 @@ jobs: name: Publish needs: build runs-on: ubuntu-latest - environment: PyPI + environment: TestPyPI permissions: # this permission is mandatory for trusted publishing id-token: write @@ -54,4 +56,7 @@ jobs: path: dist - name: Publish package to PyPI 🙌 + # if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e #v1.13.0 + with: + repository-url: https://test.pypi.org/legacy/ From 861158cd8fbffd03f0be8a2102b9f46da25bc9f8 Mon Sep 17 00:00:00 2001 From: fbjorn Date: Mon, 17 Nov 2025 16:50:51 +0300 Subject: [PATCH 2/3] Revert CI changes --- .github/workflows/publish.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4f5b750..5a83251 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,10 +2,8 @@ name: Build and publish to PyPI on: push: - branches: - - "chore/poetry2" - # tags: - # - "*" + tags: + - "*" jobs: build: @@ -44,7 +42,7 @@ jobs: name: Publish needs: build runs-on: ubuntu-latest - environment: TestPyPI + environment: PyPI permissions: # this permission is mandatory for trusted publishing id-token: write @@ -56,7 +54,5 @@ jobs: path: dist - name: Publish package to PyPI 🙌 - # if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e #v1.13.0 - with: - repository-url: https://test.pypi.org/legacy/ From f3c4cf8f687c5756833c45ae6975e8d44682bcd0 Mon Sep 17 00:00:00 2001 From: fbjorn Date: Wed, 19 Nov 2025 13:36:03 +0300 Subject: [PATCH 3/3] Update other pipelines --- .github/workflows/test_latest_python.yaml | 2 +- .github/workflows/tests.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_latest_python.yaml b/.github/workflows/test_latest_python.yaml index 688edeb..27a85dc 100644 --- a/.github/workflows/test_latest_python.yaml +++ b/.github/workflows/test_latest_python.yaml @@ -21,7 +21,7 @@ jobs: allow-prereleases: true - name: Install Poetry and pre-commit 💈 - run: pip install poetry==1.8.5 pre-commit + run: pip install poetry==2.2.1 pre-commit - name: Install dependencies 🛠 run: poetry install diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ab1af27..b78622e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -21,7 +21,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install Poetry and pre-commit 💈 - run: pip install poetry==1.8.5 pre-commit + run: pip install poetry==2.2.1 pre-commit - name: Install dependencies 🛠 run: poetry install