Twine: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
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>



Revision as of 02:36, 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