Stop using setup.py (#5776)

This commit is contained in:
Laerte Pereira 2022-12-31 16:11:45 -03:00 committed by GitHub
parent 7ae32ea38d
commit deaf1fb6cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -24,8 +24,8 @@ jobs:
- name: Publish to PyPI
if: steps.check-release-tag.outputs.release_tag == 'true'
run: |
pip install --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel
pip install --upgrade build twine
python -m build
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }}
twine upload dist/*

View File

@ -75,8 +75,9 @@ commands =
basepython = python3
deps =
twine==4.0.1
build==0.9.0
commands =
python setup.py sdist
python -m build --sdist
twine check dist/*
[pinned]