From 11861f8c61bfa4d0a888226ec72ea25dbf93a981 Mon Sep 17 00:00:00 2001 From: Evan Kohilas Date: Fri, 15 Nov 2024 23:17:03 +1100 Subject: [PATCH] Update packaging-projects.rst for entering API token --- source/tutorials/packaging-projects.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/tutorials/packaging-projects.rst b/source/tutorials/packaging-projects.rst index 4c205e28f..93826321d 100644 --- a/source/tutorials/packaging-projects.rst +++ b/source/tutorials/packaging-projects.rst @@ -421,16 +421,15 @@ Once installed, run Twine to upload all of the archives under :file:`dist`: py -m twine upload --repository testpypi dist/* -You will be prompted for a username and password. For the username, -use ``__token__``. For the password, use the token value, including -the ``pypi-`` prefix. +You will be prompted for an API token. Use the token value, including the ``pypi-`` +prefix. Note that the input will be hidden, so be sure to paste correctly. After the command completes, you should see output similar to this: .. code-block:: Uploading distributions to https://test.pypi.org/legacy/ - Enter your username: __token__ + Enter your API token: Uploading example_package_YOUR_USERNAME_HERE-0.0.1-py3-none-any.whl 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.2/8.2 kB • 00:01 • ? Uploading example_package_YOUR_USERNAME_HERE-0.0.1.tar.gz