Skip to content

Commit b5cdeb9

Browse files
jeanaswebknjaz
authored andcommitted
Mention PyPI trusted publishing
1 parent 80a1886 commit b5cdeb9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _trusted-publishing:
2+
13
=============================================================================
24
Publishing package distribution releases using GitHub Actions CI/CD workflows
35
=============================================================================

source/guides/tool-recommendations.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,12 @@ to build distributable wheels.
134134
Uploading to PyPI
135135
=================
136136

137-
The standard tool for this task is :ref:`twine`.
137+
For projects hosted on GitHub, PyPI recommends using :ref:`trusted publishing
138+
<trusted-publishing>`, which allows the package to be securely uploaded to PyPI
139+
from a GitHub Actions job. (This is not yet supported on software forges other
140+
than GitHub.)
141+
142+
The other available method is to upload the package manually using :ref:`twine`.
138143

139144
**Never** use ``python setup.py upload`` for this task. In addition to being
140145
:ref:`deprecated <setup-py-deprecated>`, it is insecure.

0 commit comments

Comments
 (0)