2022-10-11 01:23:22 +01:00
|
|
|
# twine
|
|
|
|
|
|
|
|
> Utility for publishing Python packages on PyPI.
|
2022-10-25 13:51:58 +01:00
|
|
|
> More information: <https://twine.readthedocs.io/en/stable/#commands>.
|
2022-10-11 01:23:22 +01:00
|
|
|
|
|
|
|
- Upload to PyPI:
|
|
|
|
|
|
|
|
`twine upload dist/*`
|
|
|
|
|
2022-10-25 13:51:58 +01:00
|
|
|
- Upload to the Test PyPI [r]epository to verify things look right:
|
|
|
|
|
|
|
|
`twine upload -r testpypi dist/*`
|
|
|
|
|
2022-10-11 01:23:22 +01:00
|
|
|
- Upload to PyPI with a specified [u]sername and [p]assword:
|
|
|
|
|
|
|
|
`twine upload -u {{username}} -p {{password}} dist/*`
|
|
|
|
|
|
|
|
- Upload to an alternative repository URL:
|
|
|
|
|
|
|
|
`twine upload --repository-url {{repository_url}} dist/*`
|
2022-10-25 13:51:58 +01:00
|
|
|
|
|
|
|
- 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/*`
|