diff --git a/source/tutorials/packaging-projects.rst b/source/tutorials/packaging-projects.rst index 4f69de20be..8f91796ec5 100644 --- a/source/tutorials/packaging-projects.rst +++ b/source/tutorials/packaging-projects.rst @@ -500,12 +500,18 @@ differences: * Register an account on https://pypi.org - note that these are two separate servers and the login details from the test server are not shared with the main server. -* Use ``twine upload dist/*`` to upload your package and enter your credentials - for the account you registered on the real PyPI. Now that you're uploading - the package in production, you don't need to specify ``--repository``; the - package will upload to https://pypi.org/ by default. +* For a manual upload, use ``twine upload dist/*`` to upload your package and + enter your credentials for the account you registered on the real PyPI. Now + that you're uploading the package in production, you don't need to specify + ``--repository``; the package will upload to https://pypi.org/ by default. * Install your package from the real PyPI using ``python3 -m pip install [your-package]``. +.. tip:: + + For projects published through a supported CI/CD platform, we recommend + :ref:`Trusted Publishing ` instead of storing a long-lived + API token. The linked guide shows how to set this up with GitHub Actions. + At this point if you want to read more on packaging Python libraries here are some things you can do: