|
8 | 8 | msgstr "" |
9 | 9 | "Project-Id-Version: Python Packaging User Guide \n" |
10 | 10 | "Report-Msgid-Bugs-To: \n" |
11 | | -"POT-Creation-Date: 2026-04-21 14:37+0000\n" |
| 11 | +"POT-Creation-Date: 2026-05-05 16:17+0000\n" |
12 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
13 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
14 | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
@@ -5746,75 +5746,79 @@ msgstr "" |
5746 | 5746 | msgid "First, we'll define the job for building the dist packages of your project and storing them for later use:" |
5747 | 5747 | msgstr "" |
5748 | 5748 |
|
5749 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:115 |
| 5749 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:112 |
| 5750 | +msgid "If you adapt this workflow to build multiple platform-specific wheels, use uniquely named artifacts for each build job and adjust the download step accordingly. The `cibuildwheel GitHub Actions examples`_ show a fuller wheel matrix layout." |
| 5751 | +msgstr "" |
| 5752 | + |
| 5753 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:122 |
5750 | 5754 | msgid "This will download your repository into the CI runner and then install and activate the newest available Python 3 release." |
5751 | 5755 | msgstr "" |
5752 | 5756 |
|
5753 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:118 |
| 5757 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:125 |
5754 | 5758 | msgid "And now we can build the dists from source and store them. In this example, we'll use the ``build`` package. So add this to the steps list:" |
5755 | 5759 | msgstr "" |
5756 | 5760 |
|
5757 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:128 |
| 5761 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:135 |
5758 | 5762 | msgid "Defining a workflow job environment" |
5759 | 5763 | msgstr "" |
5760 | 5764 |
|
5761 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:130 |
| 5765 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:137 |
5762 | 5766 | msgid "Now, let's add initial setup for our job that will publish to PyPI. It's a process that will execute commands that we'll define later. In this guide, we'll use the latest stable Ubuntu LTS version provided by GitHub Actions. This also defines a GitHub Environment for the job to run in its context and a URL to be displayed in GitHub's UI nicely. Additionally, it allows acquiring an OpenID Connect token that the ``pypi-publish`` actions needs to implement secretless Trusted Publishing to PyPI." |
5763 | 5767 | msgstr "" |
5764 | 5768 |
|
5765 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:144 |
| 5769 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:151 |
5766 | 5770 | msgid "This will also ensure that the PyPI publishing workflow is only triggered if the current commit is tagged." |
5767 | 5771 | msgstr "" |
5768 | 5772 |
|
5769 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:148 |
| 5773 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:155 |
5770 | 5774 | msgid "Publishing the distribution to PyPI" |
5771 | 5775 | msgstr "" |
5772 | 5776 |
|
5773 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:150 |
| 5777 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:157 |
5774 | 5778 | msgid "Finally, add the following steps at the end:" |
5775 | 5779 | msgstr "" |
5776 | 5780 |
|
5777 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:157 |
| 5781 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:164 |
5778 | 5782 | msgid "This step uses the `pypa/gh-action-pypi-publish`_ GitHub Action: after the stored distribution package has been downloaded by the `download-artifact`_ action, it uploads the contents of the ``dist/`` folder into PyPI unconditionally." |
5779 | 5783 | msgstr "" |
5780 | 5784 |
|
5781 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:164 |
| 5785 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:171 |
5782 | 5786 | msgid "Starting with version `v1.11.0 <https://github.com/pypa/gh-action-pypi-publish/releases/tag/v1.11.0>`_, `pypa/gh-action-pypi-publish`_ generates and uploads :pep:`740`-compatible attestations for each distribution by default. No additional manual signing steps are required." |
5783 | 5787 | msgstr "" |
5784 | 5788 |
|
5785 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:172 |
| 5789 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:179 |
5786 | 5790 | msgid "Separate workflow for publishing to TestPyPI" |
5787 | 5791 | msgstr "" |
5788 | 5792 |
|
5789 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:174 |
| 5793 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:181 |
5790 | 5794 | msgid "Now, repeat these steps and create another job for publishing to the TestPyPI package index under the ``jobs`` section:" |
5791 | 5795 | msgstr "" |
5792 | 5796 |
|
5793 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:184 |
| 5797 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:191 |
5794 | 5798 | msgid "Requiring manual approvals in the ``testpypi`` GitHub Environment is typically unnecessary as it's designed to run on each commit to the main branch and is often used to indicate a healthy release publishing pipeline." |
5795 | 5799 | msgstr "" |
5796 | 5800 |
|
5797 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:188 |
| 5801 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:195 |
5798 | 5802 | msgid "The whole CI/CD workflow" |
5799 | 5803 | msgstr "" |
5800 | 5804 |
|
5801 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:190 |
| 5805 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:197 |
5802 | 5806 | msgid "This paragraph showcases the whole workflow after following the above guide." |
5803 | 5807 | msgstr "" |
5804 | 5808 |
|
5805 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:198 |
| 5809 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:205 |
5806 | 5810 | msgid "That's all, folks!" |
5807 | 5811 | msgstr "" |
5808 | 5812 |
|
5809 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:200 |
| 5813 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:207 |
5810 | 5814 | msgid "Now, whenever you push a tagged commit to your Git repository remote on GitHub, this workflow will publish it to PyPI. And it'll publish any push to TestPyPI which is useful for providing test builds to your alpha users as well as making sure that your release pipeline remains healthy!" |
5811 | 5815 | msgstr "" |
5812 | 5816 |
|
5813 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:208 |
| 5817 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:215 |
5814 | 5818 | msgid "If your repository has frequent commit activity and every push is uploaded to TestPyPI as described, the project might exceed the `PyPI project size limit <https://pypi.org/help/#project-size-limit>`_. The limit could be increased, but a better solution may constitute to use a PyPI-compatible server like :ref:`pypiserver` in the CI for testing purposes." |
5815 | 5819 | msgstr "" |
5816 | 5820 |
|
5817 | | -#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:216 |
| 5821 | +#: ../source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst:223 |
5818 | 5822 | msgid "It is recommended to keep the integrated GitHub Actions at their latest versions, updating them frequently." |
5819 | 5823 | msgstr "" |
5820 | 5824 |
|
|
0 commit comments