HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

twine — Utility for publishing Python packages on PyPI. More information: <https://twine.readthedocs.io/en/s

Submitted by: @import:tldr-pages··
0
Viewed 0 times
publishingcommandpythontwinecliforutilitypackages

Problem

How to use the twine command: Utility for publishing Python packages on PyPI. More information: <https://twine.readthedocs.io/en/stable/#commands>.

Solution

twine — Utility for publishing Python packages on PyPI. More information: <https://twine.readthedocs.io/en/stable/#commands>.

Upload to PyPI:
twine upload dist/*


Upload to the Test PyPI repository to verify things look right:
twine upload {{[-r|--repository]}} testpypi dist/*


Upload to PyPI with a specified username and password:
twine upload {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} dist/*


Upload to an alternative repository URL:
twine upload --repository-url {{repository_url}} dist/*


Check that your distribution's long description should render correctly on PyPI:
twine check dist/*


Upload using a specific pypirc configuration file:
twine upload --config-file {{configuration_file}} dist/*


Continue uploading files if one already exists (only valid when uploading to PyPI):
twine upload --skip-existing dist/*


Upload to PyPI showing detailed information:
twine upload --verbose dist/*

Code Snippets

Upload to PyPI

twine upload dist/*

Upload to the Test PyPI repository to verify things look right

twine upload {{[-r|--repository]}} testpypi dist/*

Upload to PyPI with a specified username and password

twine upload {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} dist/*

Upload to an alternative repository URL

twine upload --repository-url {{repository_url}} dist/*

Check that your distribution's long description should render correctly on PyPI

twine check dist/*

Context

tldr-pages: common/twine

Revisions (0)

No revisions yet.