From 2aef11a0ec870b57b434490acb1d4671fc44ec6b Mon Sep 17 00:00:00 2001 From: David Hotham Date: Tue, 13 Aug 2024 19:11:13 +0100 Subject: [PATCH 1/2] modernize distribution builds --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d2ccf7a..2a5bccb2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,12 +23,11 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip - python -m pip install -U setuptools twine wheel + python -m pip install -U build twine - name: Build package run: | - python setup.py --version - python setup.py sdist --format=gztar bdist_wheel + python -m build twine check dist/* - name: Upload packages to Jazzband From daf3cdf3c64587827864b8f90ac73ef85b197fa7 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Tue, 13 Aug 2024 19:42:21 +0100 Subject: [PATCH 2/2] use release/v1 of gh-action-pypi-publish > The master branch version has been sunset. Please, change the GitHub > Action version you use from master to release/v1 or use an exact tag, or > opt-in to use a full Git commit SHA and Dependabot. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a5bccb2..7443eabc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: - name: Upload packages to Jazzband if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: jazzband password: ${{ secrets.JAZZBAND_RELEASE_KEY }}