Twine: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= =Internal= =Overview= =Set up API Token= Configure <code>$HOME/.pypirc</code> to: <syntaxhighlight lang='text'> [testpypi] username = __token__ password = pypi-... </syntaxhighlight>")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
=External=
* https://pypi.org/project/twine/
=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 7: 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>
=Installation=
<syntaxhighlight lang='bash'>
.venv/bin/python -m pip install --upgrade twine
</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