ci: twine check before upload, non-interactive
twine check validates the built artifacts' metadata (long_description rendering, required fields) so a broken render hits CI logs instead of landing on PyPI as a malformed project page. --non-interactive guards against a wedged prompt hanging the pipeline if the runner ever loses its ~/.pypirc auth.
This commit is contained in:
parent
a170a2637f
commit
5dca65f738
1 changed files with 2 additions and 1 deletions
|
|
@ -21,4 +21,5 @@ pypi-twine:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install twine
|
- pip install twine
|
||||||
- python3 setup.py sdist bdist_wheel
|
- python3 setup.py sdist bdist_wheel
|
||||||
- twine upload dist/*
|
- twine check dist/*
|
||||||
|
- twine upload --non-interactive dist/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue