1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-12-20 13:55:49 +01:00

fix: deprecated setuptools.py when building in package.sh (#568)

* fix: deprecated-setuptools-in-package.sh

* chore: include package build in non-tag ci

* chore: install requirements before building
This commit is contained in:
Mitja O 2024-04-25 01:07:24 +02:00 committed by GitHub
parent 2619c17602
commit 31c9cf14d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

@ -129,8 +129,6 @@ jobs:
runs-on: ubuntu-latest
needs:
- "tests"
# only if a tag is pushed
if: startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@master
- name: Set up Python
@ -138,12 +136,17 @@ jobs:
with:
python-version: ${{ env.LAST_SUPPORTED_PYTHON }}
- name: Install dev dependencies
run: pip install -r "requirements/dev.pip"
- name: Build distribution _wheel_.
run: |
./bin/package.sh
- name: Publish distribution 📦 to PyPI.
uses: pypa/gh-action-pypi-publish@release/v1
# Push to PyPi only if a tag is pushed
if: startsWith(github.event.ref, 'refs/tags/v')
with:
password: ${{ secrets.PYPI_API_TOKEN }}
print-hash: true

@ -6,4 +6,4 @@ my_dir=`dirname "$0"`
cd $my_dir/..
rm -r build/* dist/* || echo "no build/* or dist/* folder is found"
python3 setup.py bdist_wheel sdist
python3 -m build