Skip to content

Commit 6017b2f

Browse files
committed
Move Trusted Publishing note into a tip
1 parent 93a7eeb commit 6017b2f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎source/tutorials/packaging-projects.rst‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,6 @@ When you are ready to upload a real package to the Python Package Index you can
495495
do much the same as you did in this tutorial, but with these important
496496
differences:
497497

498-
For projects published through a supported CI/CD platform, we recommend
499-
:ref:`Trusted Publishing <trusted-publishing>` instead of storing a long-lived
500-
API token. The linked guide shows how to set this up with GitHub Actions.
501-
502498
* Choose a memorable and unique name for your package. You don't have to append
503499
your username as you did in the tutorial, but you can't use an existing name.
504500
* Register an account on https://pypi.org - note that these are two separate
@@ -510,6 +506,12 @@ API token. The linked guide shows how to set this up with GitHub Actions.
510506
``--repository``; the package will upload to https://pypi.org/ by default.
511507
* Install your package from the real PyPI using ``python3 -m pip install [your-package]``.
512508

509+
.. tip::
510+
511+
For projects published through a supported CI/CD platform, we recommend
512+
:ref:`Trusted Publishing <trusted-publishing>` instead of storing a long-lived
513+
API token. The linked guide shows how to set this up with GitHub Actions.
514+
513515
At this point if you want to read more on packaging Python libraries here are
514516
some things you can do:
515517

0 commit comments

Comments
 (0)