From a806d23b7aa69b0d49a2c2b6ef9e9286fda323fb Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 20 Nov 2024 21:30:45 +0000 Subject: [PATCH 1/4] Bump actions/checkout to v4 --- .github/workflows/publish_pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 3ebf5b6..1fa88b0 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -7,7 +7,7 @@ jobs: name: Publish to PyPI runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 - name: Build a binary wheel and a source tarball run: | From cb6204544a348e70ded1f5725dc546574f7396c3 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 20 Nov 2024 21:31:09 +0000 Subject: [PATCH 2/4] Bump actions/setup-python to v5 --- .github/workflows/publish_pypi.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 1fa88b0..defddfb 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -8,7 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.9' - name: Build a binary wheel and a source tarball run: | python -mpip install wheel From f1b66967858e5a3b87372a4d69aded8e8b8bd29f Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 20 Nov 2024 21:31:27 +0000 Subject: [PATCH 3/4] Bump pypa/gh-action-pypi-publish to 1.8.14 --- .github/workflows/publish_pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index defddfb..fd16f97 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -17,6 +17,6 @@ jobs: python setup.py sdist bdist_wheel - name: Publish distribution to PyPI if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@v1.3.0 + uses: pypa/gh-action-pypi-publish@v1.8.14 with: password: ${{ secrets.PYPI_PASSWORD }} From bea6d4776984b89490578cb42b5fa66efffc71fb Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Wed, 20 Nov 2024 21:31:58 +0000 Subject: [PATCH 4/4] Use build instead of sdist --- .github/workflows/publish_pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index fd16f97..5d08d4c 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -13,8 +13,8 @@ jobs: python-version: '3.9' - name: Build a binary wheel and a source tarball run: | - python -mpip install wheel - python setup.py sdist bdist_wheel + python -mpip install build + python -m build - name: Publish distribution to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@v1.8.14