Skip to content

Commit d407b73

Browse files
Update messages.pot as of version 63993ba
1 parent 3eff860 commit d407b73

1 file changed

Lines changed: 36 additions & 28 deletions

File tree

‎locales/messages.pot‎

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python Packaging User Guide \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2024-02-29 18:41+0000\n"
11+
"POT-Creation-Date: 2024-02-29 18:58+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1891,7 +1891,7 @@ msgstr ""
18911891

18921892
#: ../source/guides/analyzing-pypi-package-downloads.rst:75
18931893
#: ../source/specifications/dependency-specifiers.rst:29
1894-
#: ../source/specifications/direct-url-data-structure.rst:217
1894+
#: ../source/specifications/direct-url-data-structure.rst:339
18951895
#: ../source/specifications/version-specifiers.rst:1067
18961896
msgid "Examples"
18971897
msgstr ""
@@ -4811,82 +4811,82 @@ msgid "There are many techniques to maintain a single source of truth for the ve
48114811
msgstr ""
48124812

48134813
#: ../source/guides/single-sourcing-package-version.rst:12
4814-
msgid "Read the file in :file:`setup.py` and get the version. Example::"
4814+
msgid "Read the file in :file:`setup.py` and get the version. Example (from `pip setup.py <https://github.com/pypa/pip/blob/003c7ac/setup.py>`_)::"
48154815
msgstr ""
48164816

4817-
#: ../source/guides/single-sourcing-package-version.rst:38
4817+
#: ../source/guides/single-sourcing-package-version.rst:39
48184818
msgid "As of the release of setuptools 46.4.0, one can accomplish the same thing by instead placing the following in the project's :file:`setup.cfg` file (replacing \"package\" with the import name of the package):"
48194819
msgstr ""
48204820

4821-
#: ../source/guides/single-sourcing-package-version.rst:48
4821+
#: ../source/guides/single-sourcing-package-version.rst:49
48224822
msgid "As of the release of setuptools 61.0.0, one can specify the version dynamically in the project's :file:`pyproject.toml` file."
48234823
msgstr ""
48244824

4825-
#: ../source/guides/single-sourcing-package-version.rst:60
4825+
#: ../source/guides/single-sourcing-package-version.rst:61
48264826
msgid "Please be aware that declarative config indicators, including the ``attr:`` directive, are not supported in parameters to :file:`setup.py`."
48274827
msgstr ""
48284828

4829-
#: ../source/guides/single-sourcing-package-version.rst:64
4829+
#: ../source/guides/single-sourcing-package-version.rst:65
48304830
msgid "Use an external build tool that either manages updating both locations, or offers an API that both locations can use."
48314831
msgstr ""
48324832

4833-
#: ../source/guides/single-sourcing-package-version.rst:67
4833+
#: ../source/guides/single-sourcing-package-version.rst:68
48344834
msgid "Few tools you could use, in no particular order, and not necessarily complete: `bump2version <https://pypi.org/project/bump2version>`_, `changes <https://pypi.org/project/changes>`_, `commitizen <https://pypi.org/project/commitizen>`_, `zest.releaser <https://pypi.org/project/zest.releaser>`_."
48354835
msgstr ""
48364836

4837-
#: ../source/guides/single-sourcing-package-version.rst:74
4837+
#: ../source/guides/single-sourcing-package-version.rst:75
48384838
msgid "Set the value to a ``__version__`` global variable in a dedicated module in your project (e.g. :file:`version.py`), then have :file:`setup.py` read and ``exec`` the value into a variable."
48394839
msgstr ""
48404840

4841-
#: ../source/guides/single-sourcing-package-version.rst:85
4841+
#: ../source/guides/single-sourcing-package-version.rst:86
48424842
msgid "Example using this technique: `warehouse <https://github.com/pypa/warehouse/blob/64ca42e42d5613c8339b3ec5e1cb7765c6b23083/warehouse/__about__.py>`_."
48434843
msgstr ""
48444844

4845-
#: ../source/guides/single-sourcing-package-version.rst:87
4845+
#: ../source/guides/single-sourcing-package-version.rst:88
48464846
msgid "Place the value in a simple ``VERSION`` text file and have both :file:`setup.py` and the project code read it."
48474847
msgstr ""
48484848

4849-
#: ../source/guides/single-sourcing-package-version.rst:95
4849+
#: ../source/guides/single-sourcing-package-version.rst:96
48504850
msgid "An advantage with this technique is that it's not specific to Python. Any tool can read the version."
48514851
msgstr ""
48524852

4853-
#: ../source/guides/single-sourcing-package-version.rst:100
4853+
#: ../source/guides/single-sourcing-package-version.rst:101
48544854
msgid "With this approach you must make sure that the ``VERSION`` file is included in all your source and binary distributions (e.g. add ``include VERSION`` to your :file:`MANIFEST.in`)."
48554855
msgstr ""
48564856

4857-
#: ../source/guides/single-sourcing-package-version.rst:104
4857+
#: ../source/guides/single-sourcing-package-version.rst:105
48584858
msgid "Set the value in :file:`setup.py`, and have the project code use the ``importlib.metadata`` API to fetch the value at runtime. (``importlib.metadata`` was introduced in Python 3.8 and is available to older versions as the ``importlib-metadata`` project.) An installed project's version can be fetched with the API as follows::"
48594859
msgstr ""
48604860

4861-
#: ../source/guides/single-sourcing-package-version.rst:119
4861+
#: ../source/guides/single-sourcing-package-version.rst:120
48624862
msgid "Be aware that the ``importlib.metadata`` API only knows about what's in the installation metadata, which is not necessarily the code that's currently imported."
48634863
msgstr ""
48644864

4865-
#: ../source/guides/single-sourcing-package-version.rst:123
4865+
#: ../source/guides/single-sourcing-package-version.rst:124
48664866
msgid "If a project uses this method to fetch its version at runtime, then its ``install_requires`` value needs to be edited to install ``importlib-metadata`` on pre-3.8 versions of Python like so::"
48674867
msgstr ""
48684868

4869-
#: ../source/guides/single-sourcing-package-version.rst:137
4869+
#: ../source/guides/single-sourcing-package-version.rst:138
48704870
msgid "An older (and less efficient) alternative to ``importlib.metadata`` is the ``pkg_resources`` API provided by ``setuptools``::"
48714871
msgstr ""
48724872

4873-
#: ../source/guides/single-sourcing-package-version.rst:143
4873+
#: ../source/guides/single-sourcing-package-version.rst:144
48744874
msgid "If a project uses ``pkg_resources`` to fetch its own version at runtime, then ``setuptools`` must be added to the project's ``install_requires`` list."
48754875
msgstr ""
48764876

4877-
#: ../source/guides/single-sourcing-package-version.rst:147
4877+
#: ../source/guides/single-sourcing-package-version.rst:148
48784878
msgid "Example using this technique: `setuptools <https://github.com/pypa/setuptools/blob/main/setuptools/version.py>`_."
48794879
msgstr ""
48804880

4881-
#: ../source/guides/single-sourcing-package-version.rst:150
4881+
#: ../source/guides/single-sourcing-package-version.rst:151
48824882
msgid "Set the value to ``__version__`` in ``sample/__init__.py`` and import ``sample`` in :file:`setup.py`."
48834883
msgstr ""
48844884

4885-
#: ../source/guides/single-sourcing-package-version.rst:164
4885+
#: ../source/guides/single-sourcing-package-version.rst:165
48864886
msgid "Although this technique is common, beware that it will fail if ``sample/__init__.py`` imports packages from ``install_requires`` dependencies, which will very likely not be installed yet when :file:`setup.py` is run."
48874887
msgstr ""
48884888

4889-
#: ../source/guides/single-sourcing-package-version.rst:170
4889+
#: ../source/guides/single-sourcing-package-version.rst:171
48904890
msgid "Keep the version number in the tags of a version control system (Git, Mercurial, etc) instead of in the code, and automatically extract it from there using `setuptools_scm <https://pypi.org/project/setuptools-scm/>`_."
48914891
msgstr ""
48924892

@@ -8024,7 +8024,7 @@ msgstr ""
80248024
#: ../source/specifications/binary-distribution-format.rst:419
80258025
#: ../source/specifications/core-metadata.rst:848
80268026
#: ../source/specifications/dependency-specifiers.rst:476
8027-
#: ../source/specifications/direct-url-data-structure.rst:267
8027+
#: ../source/specifications/direct-url-data-structure.rst:389
80288028
#: ../source/specifications/direct-url.rst:67
80298029
#: ../source/specifications/entry-points.rst:164
80308030
#: ../source/specifications/externally-managed-environments.rst:472
@@ -9395,27 +9395,35 @@ msgstr ""
93959395
msgid "Since Subversion does not support globally unique identifiers, this field is the Subversion revision number in the corresponding repository."
93969396
msgstr ""
93979397

9398+
#: ../source/specifications/direct-url-data-structure.rst:217
9399+
msgid "JSON Schema"
9400+
msgstr ""
9401+
93989402
#: ../source/specifications/direct-url-data-structure.rst:219
9403+
msgid "The following JSON Schema can be used to validate the contents of ``direct_url.json``:"
9404+
msgstr ""
9405+
9406+
#: ../source/specifications/direct-url-data-structure.rst:341
93999407
msgid "Source archive:"
94009408
msgstr ""
94019409

9402-
#: ../source/specifications/direct-url-data-structure.rst:232
9410+
#: ../source/specifications/direct-url-data-structure.rst:354
94039411
msgid "Git URL with tag and commit-hash:"
94049412
msgstr ""
94059413

9406-
#: ../source/specifications/direct-url-data-structure.rst:245
9414+
#: ../source/specifications/direct-url-data-structure.rst:367
94079415
msgid "Local directory:"
94089416
msgstr ""
94099417

9410-
#: ../source/specifications/direct-url-data-structure.rst:254
9418+
#: ../source/specifications/direct-url-data-structure.rst:376
94119419
msgid "Local directory in editable mode:"
94129420
msgstr ""
94139421

9414-
#: ../source/specifications/direct-url-data-structure.rst:269
9422+
#: ../source/specifications/direct-url-data-structure.rst:391
94159423
msgid "March 2020: This specification was approved through :pep:`610`, defining the ``direct_url.json`` metadata file."
94169424
msgstr ""
94179425

9418-
#: ../source/specifications/direct-url-data-structure.rst:271
9426+
#: ../source/specifications/direct-url-data-structure.rst:393
94199427
msgid "January 2023: Added the ``archive_info.hashes`` key (`discussion <archive-info-hashes_>`_)."
94209428
msgstr ""
94219429

0 commit comments

Comments
 (0)