Publish a project to pypi (doc)
- Install twine
python3 -m pip install --user --upgrade twine
- Generating distribution archives
python3 setup.py sdist bdist_wheel
- Check for errors (markdown, ...)
python3 -m twine check dist/*
- Publish to test Pypi
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Check pypi.sh :)
-
long_description has syntax errors in markup and would not be rendered on PyPI.
wheel
package version is bad, orwheel
isn't installed with pip, and thepython-wheel
ubuntu package is used instead.You need wheel >= 0.31.0 for markdown descriptions
sourceSolution:
python3 -m pip install --upgrade wheel
-
ModuleNotFoundError: No module named 'keyring.util.escape'
The error about No module named 'keyring.util.escape' was fixed in keyrings.alt 3.1, so you either need to upgrade keyrings.alt to 3.1 or later or downgrade keyring to a version that still supplies the util.escape behavior.
sourceSolution:
python3 -m pip install --upgrade keyrings.alt