Skip to content

Commit 60d00c5

Browse files
Update messages.pot as of version 241a870
1 parent cd40e12 commit 60d00c5

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

‎locales/messages.pot‎

Lines changed: 21 additions & 21 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-09 11:35+0000\n"
11+
"POT-Creation-Date: 2024-02-29 18:31+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"
@@ -4810,82 +4810,82 @@ msgid "There are many techniques to maintain a single source of truth for the ve
48104810
msgstr ""
48114811

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

4816-
#: ../source/guides/single-sourcing-package-version.rst:39
4816+
#: ../source/guides/single-sourcing-package-version.rst:38
48174817
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):"
48184818
msgstr ""
48194819

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

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

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

4832-
#: ../source/guides/single-sourcing-package-version.rst:68
4832+
#: ../source/guides/single-sourcing-package-version.rst:67
48334833
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>`_."
48344834
msgstr ""
48354835

4836-
#: ../source/guides/single-sourcing-package-version.rst:75
4836+
#: ../source/guides/single-sourcing-package-version.rst:74
48374837
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."
48384838
msgstr ""
48394839

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

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

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

4852-
#: ../source/guides/single-sourcing-package-version.rst:101
4852+
#: ../source/guides/single-sourcing-package-version.rst:100
48534853
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`)."
48544854
msgstr ""
48554855

4856-
#: ../source/guides/single-sourcing-package-version.rst:105
4856+
#: ../source/guides/single-sourcing-package-version.rst:104
48574857
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::"
48584858
msgstr ""
48594859

4860-
#: ../source/guides/single-sourcing-package-version.rst:120
4860+
#: ../source/guides/single-sourcing-package-version.rst:119
48614861
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."
48624862
msgstr ""
48634863

4864-
#: ../source/guides/single-sourcing-package-version.rst:124
4864+
#: ../source/guides/single-sourcing-package-version.rst:123
48654865
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::"
48664866
msgstr ""
48674867

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

4872-
#: ../source/guides/single-sourcing-package-version.rst:144
4872+
#: ../source/guides/single-sourcing-package-version.rst:143
48734873
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."
48744874
msgstr ""
48754875

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

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

4884-
#: ../source/guides/single-sourcing-package-version.rst:165
4884+
#: ../source/guides/single-sourcing-package-version.rst:164
48854885
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."
48864886
msgstr ""
48874887

4888-
#: ../source/guides/single-sourcing-package-version.rst:171
4888+
#: ../source/guides/single-sourcing-package-version.rst:170
48894889
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/>`_."
48904890
msgstr ""
48914891

0 commit comments

Comments
 (0)