Skip to content

Commit 2d832c4

Browse files
authored
Merge pull request #1655 from ekohilas/patch-1
Update packaging-projects.rst for entering API token
2 parents 2554e5a + 11861f8 commit 2d832c4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/tutorials/packaging-projects.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,16 +421,15 @@ Once installed, run Twine to upload all of the archives under :file:`dist`:
421421
422422
py -m twine upload --repository testpypi dist/*
423423
424-
You will be prompted for a username and password. For the username,
425-
use ``__token__``. For the password, use the token value, including
426-
the ``pypi-`` prefix.
424+
You will be prompted for an API token. Use the token value, including the ``pypi-``
425+
prefix. Note that the input will be hidden, so be sure to paste correctly.
427426

428427
After the command completes, you should see output similar to this:
429428

430429
.. code-block::
431430
432431
Uploading distributions to https://test.pypi.org/legacy/
433-
Enter your username: __token__
432+
Enter your API token:
434433
Uploading example_package_YOUR_USERNAME_HERE-0.0.1-py3-none-any.whl
435434
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.2/8.2 kB • 00:01 • ?
436435
Uploading example_package_YOUR_USERNAME_HERE-0.0.1.tar.gz

0 commit comments

Comments
 (0)