|
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-10-27 01:52+0000\n" |
| 11 | +"POT-Creation-Date: 2026-10-27 01:56+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" |
@@ -18593,46 +18593,50 @@ msgstr "" |
18593 | 18593 | msgid "Keep in mind that this tutorial showed you how to upload your package to Test PyPI, which isn't a permanent storage. The Test system occasionally deletes packages and accounts. It is best to use TestPyPI for testing and experiments like this tutorial." |
18594 | 18594 | msgstr "" |
18595 | 18595 |
|
18596 | | -#: ../source/tutorials/packaging-projects.rst:494 |
| 18596 | +#: ../source/tutorials/packaging-projects.rst:496 |
| 18597 | +msgid "For projects published through a supported CI/CD platform, we recommend :ref:`Trusted Publishing <trusted-publishing>` instead of storing a long-lived API token. The linked guide shows how to set this up with GitHub Actions." |
| 18598 | +msgstr "" |
| 18599 | + |
| 18600 | +#: ../source/tutorials/packaging-projects.rst:500 |
18597 | 18601 | msgid "When you are ready to upload a real package to the Python Package Index you can do much the same as you did in this tutorial, but with these important differences:" |
18598 | 18602 | msgstr "" |
18599 | 18603 |
|
18600 | | -#: ../source/tutorials/packaging-projects.rst:498 |
| 18604 | +#: ../source/tutorials/packaging-projects.rst:504 |
18601 | 18605 | msgid "Choose a memorable and unique name for your package. You don't have to append your username as you did in the tutorial, but you can't use an existing name." |
18602 | 18606 | msgstr "" |
18603 | 18607 |
|
18604 | | -#: ../source/tutorials/packaging-projects.rst:500 |
| 18608 | +#: ../source/tutorials/packaging-projects.rst:506 |
18605 | 18609 | msgid "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." |
18606 | 18610 | msgstr "" |
18607 | 18611 |
|
18608 | | -#: ../source/tutorials/packaging-projects.rst:503 |
18609 | | -msgid "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." |
| 18612 | +#: ../source/tutorials/packaging-projects.rst:509 |
| 18613 | +msgid "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." |
18610 | 18614 | msgstr "" |
18611 | 18615 |
|
18612 | | -#: ../source/tutorials/packaging-projects.rst:507 |
| 18616 | +#: ../source/tutorials/packaging-projects.rst:513 |
18613 | 18617 | msgid "Install your package from the real PyPI using ``python3 -m pip install [your-package]``." |
18614 | 18618 | msgstr "" |
18615 | 18619 |
|
18616 | | -#: ../source/tutorials/packaging-projects.rst:509 |
| 18620 | +#: ../source/tutorials/packaging-projects.rst:515 |
18617 | 18621 | msgid "At this point if you want to read more on packaging Python libraries here are some things you can do:" |
18618 | 18622 | msgstr "" |
18619 | 18623 |
|
18620 | | -#: ../source/tutorials/packaging-projects.rst:512 |
| 18624 | +#: ../source/tutorials/packaging-projects.rst:518 |
18621 | 18625 | msgid "Read about advanced configuration for your chosen build backend: `Hatchling <hatchling-config_>`_, :doc:`setuptools <setuptools:userguide/pyproject_config>`, :doc:`Flit <flit:pyproject_toml>`, `PDM <pdm-config_>`_." |
18622 | 18626 | msgstr "" |
18623 | 18627 |
|
18624 | | -#: ../source/tutorials/packaging-projects.rst:516 |
| 18628 | +#: ../source/tutorials/packaging-projects.rst:522 |
18625 | 18629 | msgid "Look at the :doc:`guides </guides/index>` on this site for more advanced practical information, or the :doc:`discussions </discussions/index>` for explanations and background on specific topics." |
18626 | 18630 | msgstr "" |
18627 | 18631 |
|
18628 | | -#: ../source/tutorials/packaging-projects.rst:519 |
| 18632 | +#: ../source/tutorials/packaging-projects.rst:525 |
18629 | 18633 | msgid "Consider packaging tools that provide a single command-line interface for project management and packaging, such as :ref:`hatch`, :ref:`flit`, :ref:`pdm`, and :ref:`poetry`." |
18630 | 18634 | msgstr "" |
18631 | 18635 |
|
18632 | | -#: ../source/tutorials/packaging-projects.rst:527 |
| 18636 | +#: ../source/tutorials/packaging-projects.rst:533 |
18633 | 18637 | msgid "Notes" |
18634 | 18638 | msgstr "" |
18635 | 18639 |
|
18636 | | -#: ../source/tutorials/packaging-projects.rst:529 |
| 18640 | +#: ../source/tutorials/packaging-projects.rst:535 |
18637 | 18641 | msgid "Technically, you can also create Python packages without an ``__init__.py`` file, but those are called :doc:`namespace packages </guides/packaging-namespace-packages>` and considered an **advanced topic** (not covered in this tutorial). If you are only getting started with Python packaging, it is recommended to stick with *regular packages* and ``__init__.py`` (even if the file is empty)." |
18638 | 18642 | msgstr "" |
0 commit comments