77msgstr ""
88"Project-Id-Version: Python Packaging User Guide\n"
99"Report-Msgid-Bugs-To: \n"
10- "POT-Creation-Date: 2024-02-29 18:41 +0000\n"
10+ "POT-Creation-Date: 2024-02-29 18:58 +0000\n"
1111"PO-Revision-Date: 2024-01-18 07:31+0000\n"
1212"Last-Translator: Youcef Guenaoua <youcefguenaoua123@gmail.com>\n"
1313"Language-Team: Arabic <https://hosted.weblate.org/projects/pypa/packaging-"
@@ -2662,7 +2662,7 @@ msgstr ""
26622662
26632663#: ../source/guides/analyzing-pypi-package-downloads.rst:75
26642664#: ../source/specifications/dependency-specifiers.rst:29
2665- #: ../source/specifications/direct-url-data-structure.rst:217
2665+ #: ../source/specifications/direct-url-data-structure.rst:339
26662666#: ../source/specifications/version-specifiers.rst:1067
26672667msgid "Examples"
26682668msgstr ""
@@ -6903,75 +6903,77 @@ msgid ""
69036903msgstr ""
69046904
69056905#: ../source/guides/single-sourcing-package-version.rst:12
6906- msgid "Read the file in :file:`setup.py` and get the version. Example::"
6906+ msgid ""
6907+ "Read the file in :file:`setup.py` and get the version. Example (from `pip "
6908+ "setup.py <https://github.com/pypa/pip/blob/003c7ac/setup.py>`_)::"
69076909msgstr ""
69086910
6909- #: ../source/guides/single-sourcing-package-version.rst:38
6911+ #: ../source/guides/single-sourcing-package-version.rst:39
69106912msgid ""
69116913"As of the release of setuptools 46.4.0, one can accomplish the same thing by "
69126914"instead placing the following in the project's :file:`setup.cfg` file "
69136915"(replacing \"package\" with the import name of the package):"
69146916msgstr ""
69156917
6916- #: ../source/guides/single-sourcing-package-version.rst:48
6918+ #: ../source/guides/single-sourcing-package-version.rst:49
69176919msgid ""
69186920"As of the release of setuptools 61.0.0, one can specify the version "
69196921"dynamically in the project's :file:`pyproject.toml` file."
69206922msgstr ""
69216923
6922- #: ../source/guides/single-sourcing-package-version.rst:60
6924+ #: ../source/guides/single-sourcing-package-version.rst:61
69236925msgid ""
69246926"Please be aware that declarative config indicators, including the ``attr:`` "
69256927"directive, are not supported in parameters to :file:`setup.py`."
69266928msgstr ""
69276929
6928- #: ../source/guides/single-sourcing-package-version.rst:64
6930+ #: ../source/guides/single-sourcing-package-version.rst:65
69296931msgid ""
69306932"Use an external build tool that either manages updating both locations, or "
69316933"offers an API that both locations can use."
69326934msgstr ""
69336935
6934- #: ../source/guides/single-sourcing-package-version.rst:67
6936+ #: ../source/guides/single-sourcing-package-version.rst:68
69356937msgid ""
69366938"Few tools you could use, in no particular order, and not necessarily "
69376939"complete: `bump2version <https://pypi.org/project/bump2version>`_, `changes "
69386940"<https://pypi.org/project/changes>`_, `commitizen <https://pypi.org/project/"
69396941"commitizen>`_, `zest.releaser <https://pypi.org/project/zest.releaser>`_."
69406942msgstr ""
69416943
6942- #: ../source/guides/single-sourcing-package-version.rst:74
6944+ #: ../source/guides/single-sourcing-package-version.rst:75
69436945msgid ""
69446946"Set the value to a ``__version__`` global variable in a dedicated module in "
69456947"your project (e.g. :file:`version.py`), then have :file:`setup.py` read and "
69466948"``exec`` the value into a variable."
69476949msgstr ""
69486950
6949- #: ../source/guides/single-sourcing-package-version.rst:85
6951+ #: ../source/guides/single-sourcing-package-version.rst:86
69506952msgid ""
69516953"Example using this technique: `warehouse <https://github.com/pypa/warehouse/"
69526954"blob/64ca42e42d5613c8339b3ec5e1cb7765c6b23083/warehouse/__about__.py>`_."
69536955msgstr ""
69546956
6955- #: ../source/guides/single-sourcing-package-version.rst:87
6957+ #: ../source/guides/single-sourcing-package-version.rst:88
69566958msgid ""
69576959"Place the value in a simple ``VERSION`` text file and have both :file:`setup."
69586960"py` and the project code read it."
69596961msgstr ""
69606962
6961- #: ../source/guides/single-sourcing-package-version.rst:95
6963+ #: ../source/guides/single-sourcing-package-version.rst:96
69626964msgid ""
69636965"An advantage with this technique is that it's not specific to Python. Any "
69646966"tool can read the version."
69656967msgstr ""
69666968
6967- #: ../source/guides/single-sourcing-package-version.rst:100
6969+ #: ../source/guides/single-sourcing-package-version.rst:101
69686970msgid ""
69696971"With this approach you must make sure that the ``VERSION`` file is included "
69706972"in all your source and binary distributions (e.g. add ``include VERSION`` to "
69716973"your :file:`MANIFEST.in`)."
69726974msgstr ""
69736975
6974- #: ../source/guides/single-sourcing-package-version.rst:104
6976+ #: ../source/guides/single-sourcing-package-version.rst:105
69756977msgid ""
69766978"Set the value in :file:`setup.py`, and have the project code use the "
69776979"``importlib.metadata`` API to fetch the value at runtime. (``importlib."
@@ -6980,52 +6982,52 @@ msgid ""
69806982"be fetched with the API as follows::"
69816983msgstr ""
69826984
6983- #: ../source/guides/single-sourcing-package-version.rst:119
6985+ #: ../source/guides/single-sourcing-package-version.rst:120
69846986msgid ""
69856987"Be aware that the ``importlib.metadata`` API only knows about what's in the "
69866988"installation metadata, which is not necessarily the code that's currently "
69876989"imported."
69886990msgstr ""
69896991
6990- #: ../source/guides/single-sourcing-package-version.rst:123
6992+ #: ../source/guides/single-sourcing-package-version.rst:124
69916993msgid ""
69926994"If a project uses this method to fetch its version at runtime, then its "
69936995"``install_requires`` value needs to be edited to install ``importlib-"
69946996"metadata`` on pre-3.8 versions of Python like so::"
69956997msgstr ""
69966998
6997- #: ../source/guides/single-sourcing-package-version.rst:137
6999+ #: ../source/guides/single-sourcing-package-version.rst:138
69987000msgid ""
69997001"An older (and less efficient) alternative to ``importlib.metadata`` is the "
70007002"``pkg_resources`` API provided by ``setuptools``::"
70017003msgstr ""
70027004
7003- #: ../source/guides/single-sourcing-package-version.rst:143
7005+ #: ../source/guides/single-sourcing-package-version.rst:144
70047006msgid ""
70057007"If a project uses ``pkg_resources`` to fetch its own version at runtime, "
70067008"then ``setuptools`` must be added to the project's ``install_requires`` list."
70077009msgstr ""
70087010
7009- #: ../source/guides/single-sourcing-package-version.rst:147
7011+ #: ../source/guides/single-sourcing-package-version.rst:148
70107012msgid ""
70117013"Example using this technique: `setuptools <https://github.com/pypa/"
70127014"setuptools/blob/main/setuptools/version.py>`_."
70137015msgstr ""
70147016
7015- #: ../source/guides/single-sourcing-package-version.rst:150
7017+ #: ../source/guides/single-sourcing-package-version.rst:151
70167018msgid ""
70177019"Set the value to ``__version__`` in ``sample/__init__.py`` and import "
70187020"``sample`` in :file:`setup.py`."
70197021msgstr ""
70207022
7021- #: ../source/guides/single-sourcing-package-version.rst:164
7023+ #: ../source/guides/single-sourcing-package-version.rst:165
70227024msgid ""
70237025"Although this technique is common, beware that it will fail if ``sample/"
70247026"__init__.py`` imports packages from ``install_requires`` dependencies, which "
70257027"will very likely not be installed yet when :file:`setup.py` is run."
70267028msgstr ""
70277029
7028- #: ../source/guides/single-sourcing-package-version.rst:170
7030+ #: ../source/guides/single-sourcing-package-version.rst:171
70297031msgid ""
70307032"Keep the version number in the tags of a version control system (Git, "
70317033"Mercurial, etc) instead of in the code, and automatically extract it from "
@@ -11596,7 +11598,7 @@ msgstr ""
1159611598#: ../source/specifications/binary-distribution-format.rst:419
1159711599#: ../source/specifications/core-metadata.rst:848
1159811600#: ../source/specifications/dependency-specifiers.rst:476
11599- #: ../source/specifications/direct-url-data-structure.rst:267
11601+ #: ../source/specifications/direct-url-data-structure.rst:389
1160011602#: ../source/specifications/direct-url.rst:67
1160111603#: ../source/specifications/entry-points.rst:164
1160211604#: ../source/specifications/externally-managed-environments.rst:472
@@ -13489,29 +13491,39 @@ msgid ""
1348913491"the Subversion revision number in the corresponding repository."
1349013492msgstr ""
1349113493
13494+ #: ../source/specifications/direct-url-data-structure.rst:217
13495+ msgid "JSON Schema"
13496+ msgstr ""
13497+
1349213498#: ../source/specifications/direct-url-data-structure.rst:219
13499+ msgid ""
13500+ "The following JSON Schema can be used to validate the contents of "
13501+ "``direct_url.json``:"
13502+ msgstr ""
13503+
13504+ #: ../source/specifications/direct-url-data-structure.rst:341
1349313505msgid "Source archive:"
1349413506msgstr ""
1349513507
13496- #: ../source/specifications/direct-url-data-structure.rst:232
13508+ #: ../source/specifications/direct-url-data-structure.rst:354
1349713509msgid "Git URL with tag and commit-hash:"
1349813510msgstr ""
1349913511
13500- #: ../source/specifications/direct-url-data-structure.rst:245
13512+ #: ../source/specifications/direct-url-data-structure.rst:367
1350113513msgid "Local directory:"
1350213514msgstr ""
1350313515
13504- #: ../source/specifications/direct-url-data-structure.rst:254
13516+ #: ../source/specifications/direct-url-data-structure.rst:376
1350513517msgid "Local directory in editable mode:"
1350613518msgstr ""
1350713519
13508- #: ../source/specifications/direct-url-data-structure.rst:269
13520+ #: ../source/specifications/direct-url-data-structure.rst:391
1350913521msgid ""
1351013522"March 2020: This specification was approved through :pep:`610`, defining the "
1351113523"``direct_url.json`` metadata file."
1351213524msgstr ""
1351313525
13514- #: ../source/specifications/direct-url-data-structure.rst:271
13526+ #: ../source/specifications/direct-url-data-structure.rst:393
1351513527msgid ""
1351613528"January 2023: Added the ``archive_info.hashes`` key (`discussion <archive-"
1351713529"info-hashes_>`_)."
0 commit comments