Twine: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
=Internal= | =Internal= | ||
* [[Publishing_a_Python_Distribution_Package_in_a_Repository#Upload_the_Distribution_Archives|Publishing a Python Distribution Package in a Repository]] | |||
=Overview= | =Overview= | ||
Line 9: | Line 11: | ||
Configure <code>$HOME/.pypirc</code> to: | Configure <code>$HOME/.pypirc</code> to: | ||
<syntaxhighlight lang='text'> | <syntaxhighlight lang='text'> | ||
[pypi] | |||
username = __token__ | |||
password = pypi-... | |||
[testpypi] | [testpypi] | ||
username = __token__ | username = __token__ | ||
password = pypi-... | password = pypi-... | ||
</syntaxhighlight> | |||
Then | |||
<syntaxhighlight lang='bash'> | |||
chmod go-rwx $HOME/.pypirc | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 02:40, 9 April 2024
External
Internal
Overview
Set up API Token
Configure $HOME/.pypirc
to:
[pypi]
username = __token__
password = pypi-...
[testpypi]
username = __token__
password = pypi-...
Then
chmod go-rwx $HOME/.pypirc
Installation
.venv/bin/python -m pip install --upgrade twine