77msgstr ""
88"Project-Id-Version: Python Packaging User Guide\n"
99"Report-Msgid-Bugs-To: \n"
10- "POT-Creation-Date: 2024-01-19 21:15 +0000\n"
10+ "POT-Creation-Date: 2024-01-21 13:27 +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-"
@@ -11015,7 +11015,7 @@ msgstr ""
1101511015#: ../source/specifications/direct-url.rst:67
1101611016#: ../source/specifications/entry-points.rst:164
1101711017#: ../source/specifications/externally-managed-environments.rst:472
11018- #: ../source/specifications/inline-script-metadata.rst:239
11018+ #: ../source/specifications/inline-script-metadata.rst:211
1101911019#: ../source/specifications/name-normalization.rst:50
1102011020#: ../source/specifications/platform-compatibility-tags.rst:332
1102111021#: ../source/specifications/pyproject-toml.rst:442
@@ -12021,7 +12021,7 @@ msgstr ""
1202112021#: ../source/specifications/dependency-specifiers.rst:26
1202212022#: ../source/specifications/direct-url-data-structure.rst:19
1202312023#: ../source/specifications/direct-url.rst:15
12024- #: ../source/specifications/inline-script-metadata.rst:18
12024+ #: ../source/specifications/inline-script-metadata.rst:11
1202512025msgid "Specification"
1202612026msgstr ""
1202712027
@@ -13755,27 +13755,20 @@ msgstr ""
1375513755msgid "Inline script metadata"
1375613756msgstr ""
1375713757
13758- #: ../source/specifications/inline-script-metadata.rst:6
13759- msgid ""
13760- "This specification has been **provisionally accepted**. It is subject to "
13761- "being changed or abandoned. See the `PEP 723 conditional acceptance thread "
13762- "<pep723-thread_>`_ for details."
13763- msgstr ""
13764-
13765- #: ../source/specifications/inline-script-metadata.rst:12
13758+ #: ../source/specifications/inline-script-metadata.rst:5
1376613759msgid ""
1376713760"This specification defines a metadata format that can be embedded in single-"
1376813761"file Python scripts to assist launchers, IDEs and other external tools which "
1376913762"may need to interact with such scripts."
1377013763msgstr ""
1377113764
13772- #: ../source/specifications/inline-script-metadata.rst:20
13765+ #: ../source/specifications/inline-script-metadata.rst:13
1377313766msgid ""
1377413767"This specification defines a metadata comment block format (loosely inspired "
1377513768"by `reStructuredText Directives`__)."
1377613769msgstr ""
1377713770
13778- #: ../source/specifications/inline-script-metadata.rst:25
13771+ #: ../source/specifications/inline-script-metadata.rst:18
1377913772msgid ""
1378013773"Any Python script may have top-level comment blocks that MUST start with the "
1378113774"line ``# /// TYPE`` where ``TYPE`` determines how to process the content. "
@@ -13786,7 +13779,7 @@ msgid ""
1378613779"MUST only consist of ASCII letters, numbers and hyphens."
1378713780msgstr ""
1378813781
13789- #: ../source/specifications/inline-script-metadata.rst:33
13782+ #: ../source/specifications/inline-script-metadata.rst:26
1379013783msgid ""
1379113784"Every line between these two lines (``# /// TYPE`` and ``# ///``) MUST be a "
1379213785"comment starting with ``#``. If there are characters after the ``#`` then "
@@ -13796,169 +13789,163 @@ msgid ""
1379613789"of only a single ``#``)."
1379713790msgstr ""
1379813791
13799- #: ../source/specifications/inline-script-metadata.rst:40
13792+ #: ../source/specifications/inline-script-metadata.rst:33
1380013793msgid ""
1380113794"Precedence for an ending line ``# ///`` is given when the next line is not a "
1380213795"valid embedded content line as described above. For example, the following "
1380313796"is a single fully valid block:"
1380413797msgstr ""
1380513798
13806- #: ../source/specifications/inline-script-metadata.rst:56
13799+ #: ../source/specifications/inline-script-metadata.rst:49
1380713800msgid ""
1380813801"A starting line MUST NOT be placed between another starting line and its "
1380913802"ending line. In such cases tools MAY produce an error. Unclosed blocks MUST "
1381013803"be ignored."
1381113804msgstr ""
1381213805
13813- #: ../source/specifications/inline-script-metadata.rst:59
13806+ #: ../source/specifications/inline-script-metadata.rst:52
1381413807msgid ""
1381513808"When there are multiple comment blocks of the same ``TYPE`` defined, tools "
1381613809"MUST produce an error."
1381713810msgstr ""
1381813811
13819- #: ../source/specifications/inline-script-metadata.rst:62
13812+ #: ../source/specifications/inline-script-metadata.rst:55
1382013813msgid ""
1382113814"Tools reading embedded metadata MAY respect the standard Python encoding "
1382213815"declaration. If they choose not to do so, they MUST process the file as "
1382313816"UTF-8."
1382413817msgstr ""
1382513818
13826- #: ../source/specifications/inline-script-metadata.rst:65
13819+ #: ../source/specifications/inline-script-metadata.rst:58
1382713820msgid ""
1382813821"This is the canonical regular expression that MAY be used to parse the "
1382913822"metadata:"
1383013823msgstr ""
1383113824
13832- #: ../source/specifications/inline-script-metadata.rst:72
13825+ #: ../source/specifications/inline-script-metadata.rst:65
1383313826msgid ""
1383413827"In circumstances where there is a discrepancy between the text specification "
1383513828"and the regular expression, the text specification takes precedence."
1383613829msgstr ""
1383713830
13838- #: ../source/specifications/inline-script-metadata.rst:75
13831+ #: ../source/specifications/inline-script-metadata.rst:68
1383913832msgid ""
1384013833"Tools MUST NOT read from metadata blocks with types that have not been "
13841- "standardized by this PEP or future ones ."
13834+ "standardized by this specification ."
1384213835msgstr ""
1384313836
13844- #: ../source/specifications/inline-script-metadata.rst:79
13845- msgid "pyproject type"
13837+ #: ../source/specifications/inline-script-metadata.rst:72
13838+ msgid "script type"
1384613839msgstr ""
1384713840
13848- #: ../source/specifications/inline-script-metadata.rst:81
13841+ #: ../source/specifications/inline-script-metadata.rst:74
1384913842msgid ""
13850- "The first type of metadata block is named ``pyproject`` which represents "
13851- "content similar to what one would see in a ``pyproject.toml`` file ."
13843+ "The first type of metadata block is named ``script``, which contains script "
13844+ "metadata (dependency data and tool configuration) ."
1385213845msgstr ""
1385313846
13854- #: ../source/specifications/inline-script-metadata.rst:84
13855- msgid "This document MAY include the ``[run]`` and ``[tool]`` tables."
13847+ #: ../source/specifications/inline-script-metadata.rst:77
13848+ msgid ""
13849+ "This document MAY include the top-level fields ``dependencies`` and "
13850+ "``requires-python``, and MAY optionally include a ``[tool]`` table."
1385613851msgstr ""
1385713852
13858- #: ../source/specifications/inline-script-metadata.rst:86
13853+ #: ../source/specifications/inline-script-metadata.rst:80
1385913854msgid ""
13860- "The :ref:`tool table <pyproject-tool-table>` MAY be used by any tool, script "
13861- "runner or otherwise, to configure behavior."
13855+ "The ``[tool]`` MAY be used by any tool, script runner or otherwise, to "
13856+ "configure behavior. It has the same semantics as the :ref:`[tool] table in "
13857+ "pyproject.toml <pyproject-tool-table>`."
1386213858msgstr ""
1386313859
13864- #: ../source/specifications/inline-script-metadata.rst:89
13865- msgid "The ``[run]`` table MAY include the following optional fields:"
13860+ #: ../source/specifications/inline-script-metadata.rst:84
13861+ msgid "The top-level fields are :"
1386613862msgstr ""
1386713863
13868- #: ../source/specifications/inline-script-metadata.rst:91
13864+ #: ../source/specifications/inline-script-metadata.rst:86
1386913865msgid ""
1387013866"``dependencies``: A list of strings that specifies the runtime dependencies "
1387113867"of the script. Each entry MUST be a valid :ref:`dependency specifier "
1387213868"<dependency-specifiers>`."
1387313869msgstr ""
1387413870
13875- #: ../source/specifications/inline-script-metadata.rst:94
13871+ #: ../source/specifications/inline-script-metadata.rst:89
1387613872msgid ""
1387713873"``requires-python``: A string that specifies the Python version(s) with "
1387813874"which the script is compatible. The value of this field MUST be a valid :ref:"
1387913875"`version specifier <version-specifiers>`."
1388013876msgstr ""
1388113877
13882- #: ../source/specifications/inline-script-metadata.rst:98
13883- msgid ""
13884- "Any future specifications that define additional fields for the ``[run]`` "
13885- "table when used in a ``pyproject.toml`` file MUST include the aforementioned "
13886- "fields exactly as specified. The fields defined by this specification are "
13887- "equally as applicable to full-fledged projects as they are to single-file "
13888- "scripts."
13889- msgstr ""
13890-
13891- #: ../source/specifications/inline-script-metadata.rst:103
13878+ #: ../source/specifications/inline-script-metadata.rst:93
1389213879msgid ""
1389313880"Script runners MUST error if the specified ``dependencies`` cannot be "
1389413881"provided. Script runners SHOULD error if no version of Python that satisfies "
1389513882"the specified ``requires-python`` can be provided."
1389613883msgstr ""
1389713884
13898- #: ../source/specifications/inline-script-metadata.rst:108
13885+ #: ../source/specifications/inline-script-metadata.rst:98
1389913886msgid "Example"
1390013887msgstr ""
1390113888
13902- #: ../source/specifications/inline-script-metadata.rst:110
13903- msgid ""
13904- "The following is an example of a script with an embedded ``pyproject.toml``:"
13905- msgstr ""
13906-
13907- #: ../source/specifications/inline-script-metadata.rst:130
13908- msgid ""
13909- "The following is an example of a proposed syntax for single-file Rust "
13910- "projects that embeds their equivalent of ``pyproject.toml``, which is called "
13911- "``Cargo.toml``:"
13889+ #: ../source/specifications/inline-script-metadata.rst:100
13890+ msgid "The following is an example of a script with embedded metadata:"
1391213891msgstr ""
1391313892
13914- #: ../source/specifications/inline-script-metadata.rst:149
13893+ #: ../source/specifications/inline-script-metadata.rst:121
1391513894msgid "Reference Implementation"
1391613895msgstr ""
1391713896
13918- #: ../source/specifications/inline-script-metadata.rst:151
13897+ #: ../source/specifications/inline-script-metadata.rst:123
1391913898msgid ""
1392013899"The following is an example of how to read the metadata on Python 3.11 or "
1392113900"higher."
1392213901msgstr ""
1392313902
13924- #: ../source/specifications/inline-script-metadata.rst:177
13903+ #: ../source/specifications/inline-script-metadata.rst:149
1392513904msgid ""
1392613905"Often tools will edit dependencies like package managers or dependency "
1392713906"update automation in CI. The following is a crude example of modifying the "
1392813907"content using the ``tomlkit`` library__."
1392913908msgstr ""
1393013909
13931- #: ../source/specifications/inline-script-metadata.rst:208
13910+ #: ../source/specifications/inline-script-metadata.rst:180
1393213911msgid ""
1393313912"Note that this example used a library that preserves TOML formatting. This "
1393413913"is not a requirement for editing by any means but rather is a \"nice to "
1393513914"have\" feature."
1393613915msgstr ""
1393713916
13938- #: ../source/specifications/inline-script-metadata.rst:212
13917+ #: ../source/specifications/inline-script-metadata.rst:184
1393913918msgid ""
1394013919"The following is an example of how to read a stream of arbitrary metadata "
1394113920"blocks."
1394213921msgstr ""
1394313922
13944- #: ../source/specifications/inline-script-metadata.rst:231
13923+ #: ../source/specifications/inline-script-metadata.rst:203
1394513924#: ../source/specifications/simple-repository-api.rst:816
1394613925msgid "Recommendations"
1394713926msgstr ""
1394813927
13949- #: ../source/specifications/inline-script-metadata.rst:233
13928+ #: ../source/specifications/inline-script-metadata.rst:205
1395013929msgid ""
1395113930"Tools that support managing different versions of Python should attempt to "
1395213931"use the highest available version of Python that is compatible with the "
1395313932"script's ``requires-python`` metadata, if defined."
1395413933msgstr ""
1395513934
13956- #: ../source/specifications/inline-script-metadata.rst:241
13935+ #: ../source/specifications/inline-script-metadata.rst:213
1395713936msgid ""
1395813937"October 2023: This specification was conditionally approved through :pep:"
1395913938"`723`."
1396013939msgstr ""
1396113940
13941+ #: ../source/specifications/inline-script-metadata.rst:214
13942+ msgid ""
13943+ "January 2024: Through amendments to :pep:`723`, the ``pyproject`` metadata "
13944+ "block type was renamed to ``script``, and the ``[run]`` table was dropped, "
13945+ "making the ``dependencies`` and ``requires-python`` keys top-level. "
13946+ "Additionally, the specification is no longer provisional."
13947+ msgstr ""
13948+
1396213949#: ../source/specifications/name-normalization.rst:3
1396313950msgid "Names and normalization"
1396413951msgstr ""
0 commit comments