Skip to content

Commit d350151

Browse files
jw9829henryiii
authored andcommitted
Move trusted publishing tip before upload steps
1 parent ee74959 commit d350151

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎source/tutorials/packaging-projects.rst‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,12 @@ PyPI, which isn't a permanent storage. The Test system occasionally deletes
491491
packages and accounts. It is best to use TestPyPI for testing and experiments
492492
like this tutorial.
493493

494+
.. tip::
495+
496+
For projects published through a supported CI/CD platform, we recommend
497+
:ref:`Trusted Publishing <trusted-publishing>` instead of storing a long-lived
498+
API token. The linked guide shows how to set this up with GitHub Actions.
499+
494500
When you are ready to upload a real package to the Python Package Index you can
495501
do much the same as you did in this tutorial, but with these important
496502
differences:
@@ -506,12 +512,6 @@ differences:
506512
``--repository``; the package will upload to https://pypi.org/ by default.
507513
* Install your package from the real PyPI using ``python3 -m pip install [your-package]``.
508514

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-
515515
At this point if you want to read more on packaging Python libraries here are
516516
some things you can do:
517517

0 commit comments

Comments
 (0)