Skip to content

Commit b552b4e

Browse files
Update messages.pot as of version 2989940
1 parent c8adb72 commit b552b4e

1 file changed

Lines changed: 43 additions & 51 deletions

File tree

‎locales/messages.pot‎

Lines changed: 43 additions & 51 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-01-19 21:15+0000\n"
11+
"POT-Creation-Date: 2024-01-21 13:27+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"
@@ -7590,7 +7590,7 @@ msgstr ""
75907590
#: ../source/specifications/direct-url.rst:67
75917591
#: ../source/specifications/entry-points.rst:164
75927592
#: ../source/specifications/externally-managed-environments.rst:472
7593-
#: ../source/specifications/inline-script-metadata.rst:239
7593+
#: ../source/specifications/inline-script-metadata.rst:211
75947594
#: ../source/specifications/name-normalization.rst:50
75957595
#: ../source/specifications/platform-compatibility-tags.rst:332
75967596
#: ../source/specifications/pyproject-toml.rst:442
@@ -8295,7 +8295,7 @@ msgstr ""
82958295
#: ../source/specifications/dependency-specifiers.rst:26
82968296
#: ../source/specifications/direct-url-data-structure.rst:19
82978297
#: ../source/specifications/direct-url.rst:15
8298-
#: ../source/specifications/inline-script-metadata.rst:18
8298+
#: ../source/specifications/inline-script-metadata.rst:11
82998299
msgid "Specification"
83008300
msgstr ""
83018301

@@ -9421,135 +9421,127 @@ msgstr ""
94219421
msgid "Inline script metadata"
94229422
msgstr ""
94239423

9424-
#: ../source/specifications/inline-script-metadata.rst:6
9425-
msgid "This specification has been **provisionally accepted**. It is subject to being changed or abandoned. See the `PEP 723 conditional acceptance thread <pep723-thread_>`_ for details."
9426-
msgstr ""
9427-
9428-
#: ../source/specifications/inline-script-metadata.rst:12
9424+
#: ../source/specifications/inline-script-metadata.rst:5
94299425
msgid "This specification defines a metadata format that can be embedded in single-file Python scripts to assist launchers, IDEs and other external tools which may need to interact with such scripts."
94309426
msgstr ""
94319427

9432-
#: ../source/specifications/inline-script-metadata.rst:20
9428+
#: ../source/specifications/inline-script-metadata.rst:13
94339429
msgid "This specification defines a metadata comment block format (loosely inspired by `reStructuredText Directives`__)."
94349430
msgstr ""
94359431

9436-
#: ../source/specifications/inline-script-metadata.rst:25
9432+
#: ../source/specifications/inline-script-metadata.rst:18
94379433
msgid "Any Python script may have top-level comment blocks that MUST start with the line ``# /// TYPE`` where ``TYPE`` determines how to process the content. That is: a single ``#``, followed by a single space, followed by three forward slashes, followed by a single space, followed by the type of metadata. Block MUST end with the line ``# ///``. That is: a single ``#``, followed by a single space, followed by three forward slashes. The ``TYPE`` MUST only consist of ASCII letters, numbers and hyphens."
94389434
msgstr ""
94399435

9440-
#: ../source/specifications/inline-script-metadata.rst:33
9436+
#: ../source/specifications/inline-script-metadata.rst:26
94419437
msgid "Every line between these two lines (``# /// TYPE`` and ``# ///``) MUST be a comment starting with ``#``. If there are characters after the ``#`` then the first character MUST be a space. The embedded content is formed by taking away the first two characters of each line if the second character is a space, otherwise just the first character (which means the line consists of only a single ``#``)."
94429438
msgstr ""
94439439

9444-
#: ../source/specifications/inline-script-metadata.rst:40
9440+
#: ../source/specifications/inline-script-metadata.rst:33
94459441
msgid "Precedence for an ending line ``# ///`` is given when the next line is not a valid embedded content line as described above. For example, the following is a single fully valid block:"
94469442
msgstr ""
94479443

9448-
#: ../source/specifications/inline-script-metadata.rst:56
9444+
#: ../source/specifications/inline-script-metadata.rst:49
94499445
msgid "A starting line MUST NOT be placed between another starting line and its ending line. In such cases tools MAY produce an error. Unclosed blocks MUST be ignored."
94509446
msgstr ""
94519447

9452-
#: ../source/specifications/inline-script-metadata.rst:59
9448+
#: ../source/specifications/inline-script-metadata.rst:52
94539449
msgid "When there are multiple comment blocks of the same ``TYPE`` defined, tools MUST produce an error."
94549450
msgstr ""
94559451

9456-
#: ../source/specifications/inline-script-metadata.rst:62
9452+
#: ../source/specifications/inline-script-metadata.rst:55
94579453
msgid "Tools reading embedded metadata MAY respect the standard Python encoding declaration. If they choose not to do so, they MUST process the file as UTF-8."
94589454
msgstr ""
94599455

9460-
#: ../source/specifications/inline-script-metadata.rst:65
9456+
#: ../source/specifications/inline-script-metadata.rst:58
94619457
msgid "This is the canonical regular expression that MAY be used to parse the metadata:"
94629458
msgstr ""
94639459

9464-
#: ../source/specifications/inline-script-metadata.rst:72
9460+
#: ../source/specifications/inline-script-metadata.rst:65
94659461
msgid "In circumstances where there is a discrepancy between the text specification and the regular expression, the text specification takes precedence."
94669462
msgstr ""
94679463

9468-
#: ../source/specifications/inline-script-metadata.rst:75
9469-
msgid "Tools MUST NOT read from metadata blocks with types that have not been standardized by this PEP or future ones."
9464+
#: ../source/specifications/inline-script-metadata.rst:68
9465+
msgid "Tools MUST NOT read from metadata blocks with types that have not been standardized by this specification."
94709466
msgstr ""
94719467

9472-
#: ../source/specifications/inline-script-metadata.rst:79
9473-
msgid "pyproject type"
9468+
#: ../source/specifications/inline-script-metadata.rst:72
9469+
msgid "script type"
94749470
msgstr ""
94759471

9476-
#: ../source/specifications/inline-script-metadata.rst:81
9477-
msgid "The first type of metadata block is named ``pyproject`` which represents content similar to what one would see in a ``pyproject.toml`` file."
9472+
#: ../source/specifications/inline-script-metadata.rst:74
9473+
msgid "The first type of metadata block is named ``script``, which contains script metadata (dependency data and tool configuration)."
94789474
msgstr ""
94799475

9480-
#: ../source/specifications/inline-script-metadata.rst:84
9481-
msgid "This document MAY include the ``[run]`` and ``[tool]`` tables."
9476+
#: ../source/specifications/inline-script-metadata.rst:77
9477+
msgid "This document MAY include the top-level fields ``dependencies`` and ``requires-python``, and MAY optionally include a ``[tool]`` table."
94829478
msgstr ""
94839479

9484-
#: ../source/specifications/inline-script-metadata.rst:86
9485-
msgid "The :ref:`tool table <pyproject-tool-table>` MAY be used by any tool, script runner or otherwise, to configure behavior."
9480+
#: ../source/specifications/inline-script-metadata.rst:80
9481+
msgid "The ``[tool]`` MAY be used by any tool, script runner or otherwise, to configure behavior. It has the same semantics as the :ref:`[tool] table in pyproject.toml <pyproject-tool-table>`."
94869482
msgstr ""
94879483

9488-
#: ../source/specifications/inline-script-metadata.rst:89
9489-
msgid "The ``[run]`` table MAY include the following optional fields:"
9484+
#: ../source/specifications/inline-script-metadata.rst:84
9485+
msgid "The top-level fields are:"
94909486
msgstr ""
94919487

9492-
#: ../source/specifications/inline-script-metadata.rst:91
9488+
#: ../source/specifications/inline-script-metadata.rst:86
94939489
msgid "``dependencies``: A list of strings that specifies the runtime dependencies of the script. Each entry MUST be a valid :ref:`dependency specifier <dependency-specifiers>`."
94949490
msgstr ""
94959491

9496-
#: ../source/specifications/inline-script-metadata.rst:94
9492+
#: ../source/specifications/inline-script-metadata.rst:89
94979493
msgid "``requires-python``: A string that specifies the Python version(s) with which the script is compatible. The value of this field MUST be a valid :ref:`version specifier <version-specifiers>`."
94989494
msgstr ""
94999495

9500-
#: ../source/specifications/inline-script-metadata.rst:98
9501-
msgid "Any future specifications that define additional fields for the ``[run]`` table when used in a ``pyproject.toml`` file MUST include the aforementioned fields exactly as specified. The fields defined by this specification are equally as applicable to full-fledged projects as they are to single-file scripts."
9502-
msgstr ""
9503-
9504-
#: ../source/specifications/inline-script-metadata.rst:103
9496+
#: ../source/specifications/inline-script-metadata.rst:93
95059497
msgid "Script runners MUST error if the specified ``dependencies`` cannot be provided. Script runners SHOULD error if no version of Python that satisfies the specified ``requires-python`` can be provided."
95069498
msgstr ""
95079499

9508-
#: ../source/specifications/inline-script-metadata.rst:108
9500+
#: ../source/specifications/inline-script-metadata.rst:98
95099501
msgid "Example"
95109502
msgstr ""
95119503

9512-
#: ../source/specifications/inline-script-metadata.rst:110
9513-
msgid "The following is an example of a script with an embedded ``pyproject.toml``:"
9504+
#: ../source/specifications/inline-script-metadata.rst:100
9505+
msgid "The following is an example of a script with embedded metadata:"
95149506
msgstr ""
95159507

9516-
#: ../source/specifications/inline-script-metadata.rst:130
9517-
msgid "The following is an example of a proposed syntax for single-file Rust projects that embeds their equivalent of ``pyproject.toml``, which is called ``Cargo.toml``:"
9518-
msgstr ""
9519-
9520-
#: ../source/specifications/inline-script-metadata.rst:149
9508+
#: ../source/specifications/inline-script-metadata.rst:121
95219509
msgid "Reference Implementation"
95229510
msgstr ""
95239511

9524-
#: ../source/specifications/inline-script-metadata.rst:151
9512+
#: ../source/specifications/inline-script-metadata.rst:123
95259513
msgid "The following is an example of how to read the metadata on Python 3.11 or higher."
95269514
msgstr ""
95279515

9528-
#: ../source/specifications/inline-script-metadata.rst:177
9516+
#: ../source/specifications/inline-script-metadata.rst:149
95299517
msgid "Often tools will edit dependencies like package managers or dependency update automation in CI. The following is a crude example of modifying the content using the ``tomlkit`` library__."
95309518
msgstr ""
95319519

9532-
#: ../source/specifications/inline-script-metadata.rst:208
9520+
#: ../source/specifications/inline-script-metadata.rst:180
95339521
msgid "Note that this example used a library that preserves TOML formatting. This is not a requirement for editing by any means but rather is a \"nice to have\" feature."
95349522
msgstr ""
95359523

9536-
#: ../source/specifications/inline-script-metadata.rst:212
9524+
#: ../source/specifications/inline-script-metadata.rst:184
95379525
msgid "The following is an example of how to read a stream of arbitrary metadata blocks."
95389526
msgstr ""
95399527

9540-
#: ../source/specifications/inline-script-metadata.rst:231
9528+
#: ../source/specifications/inline-script-metadata.rst:203
95419529
#: ../source/specifications/simple-repository-api.rst:816
95429530
msgid "Recommendations"
95439531
msgstr ""
95449532

9545-
#: ../source/specifications/inline-script-metadata.rst:233
9533+
#: ../source/specifications/inline-script-metadata.rst:205
95469534
msgid "Tools that support managing different versions of Python should attempt to use the highest available version of Python that is compatible with the script's ``requires-python`` metadata, if defined."
95479535
msgstr ""
95489536

9549-
#: ../source/specifications/inline-script-metadata.rst:241
9537+
#: ../source/specifications/inline-script-metadata.rst:213
95509538
msgid "October 2023: This specification was conditionally approved through :pep:`723`."
95519539
msgstr ""
95529540

9541+
#: ../source/specifications/inline-script-metadata.rst:214
9542+
msgid "January 2024: Through amendments to :pep:`723`, the ``pyproject`` metadata block type was renamed to ``script``, and the ``[run]`` table was dropped, making the ``dependencies`` and ``requires-python`` keys top-level. Additionally, the specification is no longer provisional."
9543+
msgstr ""
9544+
95539545
#: ../source/specifications/name-normalization.rst:3
95549546
msgid "Names and normalization"
95559547
msgstr ""

0 commit comments

Comments
 (0)