Skip to content

Commit

Permalink
Add info on using MFA for PyPi account and using API token for
Browse files Browse the repository at this point in the history
publishing.
  • Loading branch information
Kami committed Aug 10, 2023
1 parent f5cc895 commit 2d96e6f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/committer_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,19 @@ key.
7. Publishing package to PyPi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We have a script that runs uploads the signed Python source files to PyPi. It
We have a script that uploads the signed Python source files to PyPi. It
uses twine, so ensure you have twine available in your path `which twine`
before running. Twine can be downloaded from https://pypi.python.org/pypi/twine
before running. Twine can be downloaded from https://pypi.python.org/pypi/twine.

You should also ensure you have 2FA / MFA enabled for your PyPi account and
generate a new API token with apache-libcloud project scope which gives
publish permission.

For more information on how to generate an API tokens and configure twine to
use this token, see:

* https://pypi.org/help/#apitoken
* https://kynan.github.io/blog/2020/05/23/how-to-upload-your-package-to-the-python-package-index-pypi-test-server

.. sourcecode:: bash

Expand Down

0 comments on commit 2d96e6f

Please sign in to comment.