|
8 | 8 | msgstr "" |
9 | 9 | "Project-Id-Version: Python Packaging User Guide \n" |
10 | 10 | "Report-Msgid-Bugs-To: \n" |
11 | | -"POT-Creation-Date: 2024-10-30 00:39+0000\n" |
| 11 | +"POT-Creation-Date: 2024-11-24 11:39+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" |
@@ -1822,31 +1822,31 @@ msgid "A :term:`Module` written in the low-level language of the Python implemen |
1822 | 1822 | msgstr "" |
1823 | 1823 |
|
1824 | 1824 | #: ../source/glossary.rst:121 |
1825 | | -msgid "Known Good Set (KGS)" |
| 1825 | +msgid "Import Package" |
1826 | 1826 | msgstr "" |
1827 | 1827 |
|
1828 | 1828 | #: ../source/glossary.rst:124 |
1829 | | -msgid "A set of distributions at specified versions which are compatible with each other. Typically a test suite will be run which passes all tests before a specific set of packages is declared a known good set. This term is commonly used by frameworks and toolkits which are comprised of multiple individual distributions." |
| 1829 | +msgid "A Python module which can contain other modules or recursively, other packages." |
1830 | 1830 | msgstr "" |
1831 | 1831 |
|
1832 | | -#: ../source/glossary.rst:130 |
1833 | | -msgid "Import Package" |
| 1832 | +#: ../source/glossary.rst:127 |
| 1833 | +msgid "An import package is more commonly referred to with the single word \"package\", but this guide will use the expanded term when more clarity is needed to prevent confusion with a :term:`Distribution Package` which is also commonly called a \"package\". See :ref:`distribution-package-vs-import-package` for a breakdown of the differences." |
1834 | 1834 | msgstr "" |
1835 | 1835 |
|
1836 | 1836 | #: ../source/glossary.rst:133 |
1837 | | -msgid "A Python module which can contain other modules or recursively, other packages." |
| 1837 | +msgid "Installed Project" |
1838 | 1838 | msgstr "" |
1839 | 1839 |
|
1840 | 1840 | #: ../source/glossary.rst:136 |
1841 | | -msgid "An import package is more commonly referred to with the single word \"package\", but this guide will use the expanded term when more clarity is needed to prevent confusion with a :term:`Distribution Package` which is also commonly called a \"package\". See :ref:`distribution-package-vs-import-package` for a breakdown of the differences." |
| 1841 | +msgid "A :term:`Project` that is installed for use with a Python interpreter or :term:`Virtual Environment`, as described in the specicifcation :ref:`recording-installed-packages`." |
1842 | 1842 | msgstr "" |
1843 | 1843 |
|
1844 | | -#: ../source/glossary.rst:142 |
1845 | | -msgid "Installed Project" |
| 1844 | +#: ../source/glossary.rst:140 |
| 1845 | +msgid "Known Good Set (KGS)" |
1846 | 1846 | msgstr "" |
1847 | 1847 |
|
1848 | | -#: ../source/glossary.rst:145 |
1849 | | -msgid "A :term:`Project` that is installed for use with a Python interpreter or :term:`Virtual Environment`, as described in the specicifcation :ref:`recording-installed-packages`." |
| 1848 | +#: ../source/glossary.rst:143 |
| 1849 | +msgid "A set of distributions at specified versions which are compatible with each other. Typically a test suite will be run which passes all tests before a specific set of packages is declared a known good set. This term is commonly used by frameworks and toolkits which are comprised of multiple individual distributions." |
1850 | 1850 | msgstr "" |
1851 | 1851 |
|
1852 | 1852 | #: ../source/glossary.rst:149 |
@@ -14320,7 +14320,7 @@ msgid "Using ``pipenv run`` ensures that your installed packages are available t |
14320 | 14320 | msgstr "" |
14321 | 14321 |
|
14322 | 14322 | #: ../source/tutorials/managing-dependencies.rst:140 |
14323 | | -#: ../source/tutorials/packaging-projects.rst:506 |
| 14323 | +#: ../source/tutorials/packaging-projects.rst:505 |
14324 | 14324 | msgid "Next steps" |
14325 | 14325 | msgstr "" |
14326 | 14326 |
|
@@ -14589,93 +14589,93 @@ msgid "Once installed, run Twine to upload all of the archives under :file:`dist |
14589 | 14589 | msgstr "" |
14590 | 14590 |
|
14591 | 14591 | #: ../source/tutorials/packaging-projects.rst:424 |
14592 | | -msgid "You will be prompted for a username and password. For the username, use ``__token__``. For the password, use the token value, including the ``pypi-`` prefix." |
| 14592 | +msgid "You will be prompted for an API token. Use the token value, including the ``pypi-`` prefix. Note that the input will be hidden, so be sure to paste correctly." |
14593 | 14593 | msgstr "" |
14594 | 14594 |
|
14595 | | -#: ../source/tutorials/packaging-projects.rst:428 |
| 14595 | +#: ../source/tutorials/packaging-projects.rst:427 |
14596 | 14596 | msgid "After the command completes, you should see output similar to this:" |
14597 | 14597 | msgstr "" |
14598 | 14598 |
|
14599 | | -#: ../source/tutorials/packaging-projects.rst:439 |
| 14599 | +#: ../source/tutorials/packaging-projects.rst:438 |
14600 | 14600 | msgid "Once uploaded, your package should be viewable on TestPyPI; for example: ``https://test.pypi.org/project/example_package_YOUR_USERNAME_HERE``." |
14601 | 14601 | msgstr "" |
14602 | 14602 |
|
14603 | | -#: ../source/tutorials/packaging-projects.rst:444 |
| 14603 | +#: ../source/tutorials/packaging-projects.rst:443 |
14604 | 14604 | msgid "Installing your newly uploaded package" |
14605 | 14605 | msgstr "" |
14606 | 14606 |
|
14607 | | -#: ../source/tutorials/packaging-projects.rst:446 |
| 14607 | +#: ../source/tutorials/packaging-projects.rst:445 |
14608 | 14608 | msgid "You can use :ref:`pip` to install your package and verify that it works. Create a :ref:`virtual environment <Creating and using Virtual Environments>` and install your package from TestPyPI:" |
14609 | 14609 | msgstr "" |
14610 | 14610 |
|
14611 | | -#: ../source/tutorials/packaging-projects.rst:462 |
| 14611 | +#: ../source/tutorials/packaging-projects.rst:461 |
14612 | 14612 | msgid "Make sure to specify your username in the package name!" |
14613 | 14613 | msgstr "" |
14614 | 14614 |
|
14615 | | -#: ../source/tutorials/packaging-projects.rst:464 |
| 14615 | +#: ../source/tutorials/packaging-projects.rst:463 |
14616 | 14616 | msgid "pip should install the package from TestPyPI and the output should look something like this:" |
14617 | 14617 | msgstr "" |
14618 | 14618 |
|
14619 | | -#: ../source/tutorials/packaging-projects.rst:474 |
| 14619 | +#: ../source/tutorials/packaging-projects.rst:473 |
14620 | 14620 | msgid "This example uses ``--index-url`` flag to specify TestPyPI instead of live PyPI. Additionally, it specifies ``--no-deps``. Since TestPyPI doesn't have the same packages as the live PyPI, it's possible that attempting to install dependencies may fail or install something unexpected. While our example package doesn't have any dependencies, it's a good practice to avoid installing dependencies when using TestPyPI." |
14621 | 14621 | msgstr "" |
14622 | 14622 |
|
14623 | | -#: ../source/tutorials/packaging-projects.rst:481 |
| 14623 | +#: ../source/tutorials/packaging-projects.rst:480 |
14624 | 14624 | msgid "You can test that it was installed correctly by importing the package. Make sure you're still in your virtual environment, then run Python:" |
14625 | 14625 | msgstr "" |
14626 | 14626 |
|
14627 | | -#: ../source/tutorials/packaging-projects.rst:496 |
| 14627 | +#: ../source/tutorials/packaging-projects.rst:495 |
14628 | 14628 | msgid "and import the package:" |
14629 | 14629 | msgstr "" |
14630 | 14630 |
|
14631 | | -#: ../source/tutorials/packaging-projects.rst:508 |
| 14631 | +#: ../source/tutorials/packaging-projects.rst:507 |
14632 | 14632 | msgid "**Congratulations, you've packaged and distributed a Python project!** ✨ 🍰 ✨" |
14633 | 14633 | msgstr "" |
14634 | 14634 |
|
14635 | | -#: ../source/tutorials/packaging-projects.rst:511 |
| 14635 | +#: ../source/tutorials/packaging-projects.rst:510 |
14636 | 14636 | 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." |
14637 | 14637 | msgstr "" |
14638 | 14638 |
|
14639 | | -#: ../source/tutorials/packaging-projects.rst:516 |
| 14639 | +#: ../source/tutorials/packaging-projects.rst:515 |
14640 | 14640 | 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:" |
14641 | 14641 | msgstr "" |
14642 | 14642 |
|
14643 | | -#: ../source/tutorials/packaging-projects.rst:520 |
| 14643 | +#: ../source/tutorials/packaging-projects.rst:519 |
14644 | 14644 | 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." |
14645 | 14645 | msgstr "" |
14646 | 14646 |
|
14647 | | -#: ../source/tutorials/packaging-projects.rst:522 |
| 14647 | +#: ../source/tutorials/packaging-projects.rst:521 |
14648 | 14648 | 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." |
14649 | 14649 | msgstr "" |
14650 | 14650 |
|
14651 | | -#: ../source/tutorials/packaging-projects.rst:525 |
| 14651 | +#: ../source/tutorials/packaging-projects.rst:524 |
14652 | 14652 | 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." |
14653 | 14653 | msgstr "" |
14654 | 14654 |
|
14655 | | -#: ../source/tutorials/packaging-projects.rst:529 |
| 14655 | +#: ../source/tutorials/packaging-projects.rst:528 |
14656 | 14656 | msgid "Install your package from the real PyPI using ``python3 -m pip install [your-package]``." |
14657 | 14657 | msgstr "" |
14658 | 14658 |
|
14659 | | -#: ../source/tutorials/packaging-projects.rst:531 |
| 14659 | +#: ../source/tutorials/packaging-projects.rst:530 |
14660 | 14660 | msgid "At this point if you want to read more on packaging Python libraries here are some things you can do:" |
14661 | 14661 | msgstr "" |
14662 | 14662 |
|
14663 | | -#: ../source/tutorials/packaging-projects.rst:534 |
| 14663 | +#: ../source/tutorials/packaging-projects.rst:533 |
14664 | 14664 | 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_>`_." |
14665 | 14665 | msgstr "" |
14666 | 14666 |
|
14667 | | -#: ../source/tutorials/packaging-projects.rst:538 |
| 14667 | +#: ../source/tutorials/packaging-projects.rst:537 |
14668 | 14668 | 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." |
14669 | 14669 | msgstr "" |
14670 | 14670 |
|
14671 | | -#: ../source/tutorials/packaging-projects.rst:541 |
| 14671 | +#: ../source/tutorials/packaging-projects.rst:540 |
14672 | 14672 | 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`." |
14673 | 14673 | msgstr "" |
14674 | 14674 |
|
14675 | | -#: ../source/tutorials/packaging-projects.rst:549 |
| 14675 | +#: ../source/tutorials/packaging-projects.rst:548 |
14676 | 14676 | msgid "Notes" |
14677 | 14677 | msgstr "" |
14678 | 14678 |
|
14679 | | -#: ../source/tutorials/packaging-projects.rst:551 |
| 14679 | +#: ../source/tutorials/packaging-projects.rst:550 |
14680 | 14680 | 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)." |
14681 | 14681 | msgstr "" |
0 commit comments