|
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:35+0000\n" |
| 11 | +"POT-Creation-Date: 2024-10-30 00:36+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 < [email protected]>\n" |
@@ -1537,22 +1537,22 @@ msgid "Package publishers wishing to ensure their reported distribution package |
1537 | 1537 | msgstr "" |
1538 | 1538 |
|
1539 | 1539 | #: ../source/discussions/versioning.rst:202 |
1540 | | -msgid "As import packages and modules are not *required* to publish runtime version information in this way (see the rejected proposal in :pep:`PEP 396 <396>`), the ``__version__`` attribute should either only be queried with interfaces that are known to provide it (such as a project querying its own version or the version of one of its direct dependencies), or else the querying code should be designed to handle the case where the attribute is missing [#fallback-to-dist-version]_." |
| 1540 | +msgid "As import packages and modules are not *required* to publish runtime version information in this way (see the withdrawn proposal in :pep:`PEP 396 <396>`), the ``__version__`` attribute should either only be queried with interfaces that are known to provide it (such as a project querying its own version or the version of one of its direct dependencies), or else the querying code should be designed to handle the case where the attribute is missing [#fallback-to-dist-version]_." |
1541 | 1541 | msgstr "" |
1542 | 1542 |
|
1543 | 1543 | #: ../source/discussions/versioning.rst:210 |
1544 | | -msgid "Some projects may need to publish version information for external APIs that don't meet the requirements for Python distribution package :ref:`version specifiers <version-specifiers>`. Such projects should define their own project-specific ways of obtaining the relevant information at runtime. For example, the standard library's :mod:`ssl` module offers multiple ways to access the underlying OpenSSL library version::" |
| 1544 | +msgid "Some projects may need to publish version information for external APIs that aren't the version of the module itself. Such projects should define their own project-specific ways of obtaining the relevant information at runtime. For example, the standard library's :mod:`ssl` module offers multiple ways to access the underlying OpenSSL library version::" |
1545 | 1545 | msgstr "" |
1546 | 1546 |
|
1547 | | -#: ../source/discussions/versioning.rst:226 |
| 1547 | +#: ../source/discussions/versioning.rst:225 |
1548 | 1548 | msgid "Some more examples of unusual version numbers are given in a `blog post <versions-seth-larson_>`_ by Seth Larson." |
1549 | 1549 | msgstr "" |
1550 | 1550 |
|
1551 | | -#: ../source/discussions/versioning.rst:229 |
| 1551 | +#: ../source/discussions/versioning.rst:228 |
1552 | 1552 | msgid "For some personal viewpoints on this issue, see these blog posts: `by Hynek Schlawak <semver-hynek-schlawack_>`_, `by Donald Stufft <semver-donald-stufft_>`_, `by Bernát Gábor <semver-bernat-gabor_>`_, `by Brett Cannon <semver-brett-cannon_>`_. For a humoristic take, read about ZeroVer_." |
1553 | 1553 | msgstr "" |
1554 | 1554 |
|
1555 | | -#: ../source/discussions/versioning.rst:235 |
| 1555 | +#: ../source/discussions/versioning.rst:234 |
1556 | 1556 | msgid "A full list mapping the top level names available for import to the distribution packages that provide those import packages and modules may be obtained through the standard library's :func:`importlib.metadata.packages_distributions` function. This means that even code that is attempting to infer a version to report for all importable top-level names has a means to fall back to reporting the distribution version information if no ``__version__`` attribute is defined. Only standard library modules, and modules added via means other than Python package installation would fail to have version information reported in that case." |
1557 | 1557 | msgstr "" |
1558 | 1558 |
|
|
0 commit comments