|
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: Python Packaging User Guide\n" |
9 | 9 | "Report-Msgid-Bugs-To: \n" |
10 | | -"POT-Creation-Date: 2024-11-25 21:53+0000\n" |
| 10 | +"POT-Creation-Date: 2025-01-07 04:23+0000\n" |
11 | 11 | "PO-Revision-Date: 2024-01-18 07:31+0000\n" |
12 | 12 | "Last-Translator: Youcef Guenaoua < [email protected]>\n" |
13 | 13 | "Language-Team: Arabic <https://hosted.weblate.org/projects/pypa/packaging-" |
@@ -1668,7 +1668,9 @@ msgid "Where to read more about this?" |
1668 | 1668 | msgstr "" |
1669 | 1669 |
|
1670 | 1670 | #: ../source/discussions/setup-py-deprecated.rst:213 |
1671 | | -msgid "https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html" |
| 1671 | +msgid "" |
| 1672 | +"`Why you shouldn't invoke setup.py directly <https://blog.ganssle.io/" |
| 1673 | +"articles/2021/10/setup-py-deprecated.html>`__ by Paul Ganssle" |
1672 | 1674 | msgstr "" |
1673 | 1675 |
|
1674 | 1676 | #: ../source/discussions/setup-py-deprecated.rst:215 |
@@ -3180,6 +3182,7 @@ msgid "Description" |
3180 | 3182 | msgstr "" |
3181 | 3183 |
|
3182 | 3184 | #: ../source/guides/analyzing-pypi-package-downloads.rst:77 |
| 3185 | +#: ../source/specifications/dependency-groups.rst:23 |
3183 | 3186 | #: ../source/specifications/dependency-specifiers.rst:29 |
3184 | 3187 | #: ../source/specifications/direct-url-data-structure.rst:347 |
3185 | 3188 | #: ../source/specifications/version-specifiers.rst:1069 |
@@ -5202,9 +5205,9 @@ msgstr "" |
5202 | 5205 |
|
5203 | 5206 | #: ../source/guides/installing-scientific-packages.rst:91 |
5204 | 5207 | msgid "" |
5205 | | -"The SciPy site lists `several distributions <https://scipy.org/install/" |
5206 | | -"#distributions>`_ that provide the full SciPy stack to end users in an easy " |
5207 | | -"to use and update format." |
| 5208 | +"The SciPy site lists `several distributions <https://scipy.org/install/>`_ " |
| 5209 | +"that provide the full SciPy stack to end users in an easy to use and update " |
| 5210 | +"format." |
5208 | 5211 | msgstr "" |
5209 | 5212 |
|
5210 | 5213 | #: ../source/guides/installing-scientific-packages.rst:96 |
@@ -11901,7 +11904,8 @@ msgstr "" |
11901 | 11904 | msgid "" |
11902 | 11905 | "Python scripts must appear in ``scripts`` and begin with exactly ``b'#!" |
11903 | 11906 | "python'`` in order to enjoy script wrapper generation and ``#!python`` " |
11904 | | -"rewriting at install time. They may have any or no extension." |
| 11907 | +"rewriting at install time. They may have any or no extension. The " |
| 11908 | +"``scripts`` directory may only contain regular files." |
11905 | 11909 | msgstr "" |
11906 | 11910 |
|
11907 | 11911 | #: ../source/specifications/binary-distribution-format.rst:193 |
@@ -12250,6 +12254,7 @@ msgstr "" |
12250 | 12254 |
|
12251 | 12255 | #: ../source/specifications/binary-distribution-format.rst:421 |
12252 | 12256 | #: ../source/specifications/core-metadata.rst:917 |
| 12257 | +#: ../source/specifications/dependency-groups.rst:248 |
12253 | 12258 | #: ../source/specifications/dependency-specifiers.rst:477 |
12254 | 12259 | #: ../source/specifications/direct-url-data-structure.rst:397 |
12255 | 12260 | #: ../source/specifications/direct-url.rst:67 |
@@ -12277,11 +12282,19 @@ msgid "" |
12277 | 12282 | "bring them into line with what popular tools actually do." |
12278 | 12283 | msgstr "" |
12279 | 12284 |
|
12280 | | -#: ../source/specifications/binary-distribution-format.rst:429 |
| 12285 | +#: ../source/specifications/binary-distribution-format.rst:426 |
| 12286 | +msgid "" |
| 12287 | +"December 2024: Clarified that the ``scripts`` folder should only contain " |
| 12288 | +"regular files (the expected behaviour of consuming tools when encountering " |
| 12289 | +"symlinks or subdirectories in this folder is not formally defined, and hence " |
| 12290 | +"may vary between tools)." |
| 12291 | +msgstr "" |
| 12292 | + |
| 12293 | +#: ../source/specifications/binary-distribution-format.rst:433 |
12281 | 12294 | msgid "Appendix" |
12282 | 12295 | msgstr "" |
12283 | 12296 |
|
12284 | | -#: ../source/specifications/binary-distribution-format.rst:431 |
| 12297 | +#: ../source/specifications/binary-distribution-format.rst:435 |
12285 | 12298 | msgid "Example urlsafe-base64-nopad implementation::" |
12286 | 12299 | msgstr "" |
12287 | 12300 |
|
@@ -13298,6 +13311,227 @@ msgstr "" |
13298 | 13311 | msgid "RFC 822 Long Header Fields: :rfc:`822#section-3.1.1`" |
13299 | 13312 | msgstr "" |
13300 | 13313 |
|
| 13314 | +#: ../source/specifications/dependency-groups.rst:5 |
| 13315 | +msgid "Dependency Groups" |
| 13316 | +msgstr "" |
| 13317 | + |
| 13318 | +#: ../source/specifications/dependency-groups.rst:7 |
| 13319 | +msgid "" |
| 13320 | +"This specification defines Dependency Groups, a mechanism for storing " |
| 13321 | +"package requirements in ``pyproject.toml`` files such that they are not " |
| 13322 | +"included in project metadata when it is built." |
| 13323 | +msgstr "" |
| 13324 | + |
| 13325 | +#: ../source/specifications/dependency-groups.rst:11 |
| 13326 | +msgid "" |
| 13327 | +"Dependency Groups are suitable for internal development use-cases like " |
| 13328 | +"linting and testing, as well as for projects which are not built for " |
| 13329 | +"distribution, like collections of related scripts." |
| 13330 | +msgstr "" |
| 13331 | + |
| 13332 | +#: ../source/specifications/dependency-groups.rst:15 |
| 13333 | +msgid "" |
| 13334 | +"Fundamentally, Dependency Groups should be thought of as being a " |
| 13335 | +"standardized subset of the capabilities of ``requirements.txt`` files (which " |
| 13336 | +"are ``pip``-specific)." |
| 13337 | +msgstr "" |
| 13338 | + |
| 13339 | +#: ../source/specifications/dependency-groups.rst:20 |
| 13340 | +#: ../source/specifications/dependency-specifiers.rst:26 |
| 13341 | +#: ../source/specifications/direct-url-data-structure.rst:19 |
| 13342 | +#: ../source/specifications/direct-url.rst:15 |
| 13343 | +#: ../source/specifications/index-hosted-attestations.rst:17 |
| 13344 | +#: ../source/specifications/inline-script-metadata.rst:13 |
| 13345 | +msgid "Specification" |
| 13346 | +msgstr "" |
| 13347 | + |
| 13348 | +#: ../source/specifications/dependency-groups.rst:25 |
| 13349 | +msgid "This is a simple table which shows a ``test`` group::" |
| 13350 | +msgstr "" |
| 13351 | + |
| 13352 | +#: ../source/specifications/dependency-groups.rst:30 |
| 13353 | +msgid "and a similar table which defines ``test`` and ``coverage`` groups::" |
| 13354 | +msgstr "" |
| 13355 | + |
| 13356 | +#: ../source/specifications/dependency-groups.rst:37 |
| 13357 | +msgid "The ``[dependency-groups]`` Table" |
| 13358 | +msgstr "" |
| 13359 | + |
| 13360 | +#: ../source/specifications/dependency-groups.rst:39 |
| 13361 | +msgid "" |
| 13362 | +"Dependency Groups are defined as a table in ``pyproject.toml`` named " |
| 13363 | +"``dependency-groups``. The ``dependency-groups`` table contains an arbitrary " |
| 13364 | +"number of user-defined keys, each of which has, as its value, a list of " |
| 13365 | +"requirements." |
| 13366 | +msgstr "" |
| 13367 | + |
| 13368 | +#: ../source/specifications/dependency-groups.rst:44 |
| 13369 | +msgid "" |
| 13370 | +"``[dependency-groups]`` keys, sometimes also called \"group names\", must " |
| 13371 | +"be :ref:`valid non-normalized names <name-format>`. Tools which handle " |
| 13372 | +"Dependency Groups MUST :ref:`normalize <name-normalization>` these names " |
| 13373 | +"before comparisons." |
| 13374 | +msgstr "" |
| 13375 | + |
| 13376 | +#: ../source/specifications/dependency-groups.rst:49 |
| 13377 | +msgid "" |
| 13378 | +"Tools SHOULD prefer to present the original, non-normalized name to users, " |
| 13379 | +"and if duplicate names are detected after normalization, tools SHOULD emit " |
| 13380 | +"an error." |
| 13381 | +msgstr "" |
| 13382 | + |
| 13383 | +#: ../source/specifications/dependency-groups.rst:53 |
| 13384 | +msgid "" |
| 13385 | +"Requirement lists, the values in ``[dependency-groups]``, may contain " |
| 13386 | +"strings, tables (``dict`` in Python), or a mix of strings and tables. " |
| 13387 | +"Strings must be valid :ref:`dependency specifiers <dependency-specifiers>`, " |
| 13388 | +"and tables must be valid Dependency Group Includes." |
| 13389 | +msgstr "" |
| 13390 | + |
| 13391 | +#: ../source/specifications/dependency-groups.rst:59 |
| 13392 | +msgid "Dependency Group Include" |
| 13393 | +msgstr "" |
| 13394 | + |
| 13395 | +#: ../source/specifications/dependency-groups.rst:61 |
| 13396 | +msgid "" |
| 13397 | +"A Dependency Group Include includes another Dependency Group in the current " |
| 13398 | +"group." |
| 13399 | +msgstr "" |
| 13400 | + |
| 13401 | +#: ../source/specifications/dependency-groups.rst:64 |
| 13402 | +msgid "" |
| 13403 | +"An include is a table with exactly one key, ``\"include-group\"``, whose " |
| 13404 | +"value is a string, the name of another Dependency Group." |
| 13405 | +msgstr "" |
| 13406 | + |
| 13407 | +#: ../source/specifications/dependency-groups.rst:67 |
| 13408 | +msgid "" |
| 13409 | +"Includes are defined to be exactly equivalent to the contents of the named " |
| 13410 | +"Dependency Group, inserted into the current group at the location of the " |
| 13411 | +"include. For example, if ``foo = [\"a\", \"b\"]`` is one group, and ``bar = " |
| 13412 | +"[\"c\", {include-group = \"foo\"}, \"d\"]`` is another, then ``bar`` should " |
| 13413 | +"evaluate to ``[\"c\", \"a\", \"b\", \"d\"]`` when Dependency Group Includes " |
| 13414 | +"are expanded." |
| 13415 | +msgstr "" |
| 13416 | + |
| 13417 | +#: ../source/specifications/dependency-groups.rst:73 |
| 13418 | +msgid "" |
| 13419 | +"Dependency Group Includes may specify the same package multiple times. Tools " |
| 13420 | +"SHOULD NOT deduplicate or otherwise alter the list contents produced by the " |
| 13421 | +"include. For example, given the following table:" |
| 13422 | +msgstr "" |
| 13423 | + |
| 13424 | +#: ../source/specifications/dependency-groups.rst:90 |
| 13425 | +msgid "" |
| 13426 | +"The resolved value of ``all`` SHOULD be ``[\"foo\", \"foo\", \"foo>1.0\", " |
| 13427 | +"\"foo<1.0\"]``. Tools should handle such a list exactly as they would handle " |
| 13428 | +"any other case in which they are asked to process the same requirement " |
| 13429 | +"multiple times with different version constraints." |
| 13430 | +msgstr "" |
| 13431 | + |
| 13432 | +#: ../source/specifications/dependency-groups.rst:95 |
| 13433 | +msgid "" |
| 13434 | +"Dependency Group Includes may include groups containing Dependency Group " |
| 13435 | +"Includes, in which case those includes should be expanded as well. " |
| 13436 | +"Dependency Group Includes MUST NOT include cycles, and tools SHOULD report " |
| 13437 | +"an error if they detect a cycle." |
| 13438 | +msgstr "" |
| 13439 | + |
| 13440 | +#: ../source/specifications/dependency-groups.rst:100 |
| 13441 | +msgid "Package Building" |
| 13442 | +msgstr "" |
| 13443 | + |
| 13444 | +#: ../source/specifications/dependency-groups.rst:102 |
| 13445 | +msgid "" |
| 13446 | +"Build backends MUST NOT include Dependency Group data in built distributions " |
| 13447 | +"as package metadata. This means that sdist ``PKG-INFO`` and wheel " |
| 13448 | +"``METADATA`` files should not include referenceable fields containing " |
| 13449 | +"Dependency Groups." |
| 13450 | +msgstr "" |
| 13451 | + |
| 13452 | +#: ../source/specifications/dependency-groups.rst:106 |
| 13453 | +msgid "" |
| 13454 | +"It is, however, valid to use Dependency Groups in the evaluation of dynamic " |
| 13455 | +"metadata, and ``pyproject.toml`` files included in sdists will still contain " |
| 13456 | +"``[dependency-groups]``. However, the table's contents are not part of a " |
| 13457 | +"built package's interfaces." |
| 13458 | +msgstr "" |
| 13459 | + |
| 13460 | +#: ../source/specifications/dependency-groups.rst:112 |
| 13461 | +msgid "Installing Dependency Groups & Extras" |
| 13462 | +msgstr "" |
| 13463 | + |
| 13464 | +#: ../source/specifications/dependency-groups.rst:114 |
| 13465 | +msgid "" |
| 13466 | +"There is no syntax or specification-defined interface for installing or " |
| 13467 | +"referring to Dependency Groups. Tools are expected to provide dedicated " |
| 13468 | +"interfaces for this purpose." |
| 13469 | +msgstr "" |
| 13470 | + |
| 13471 | +#: ../source/specifications/dependency-groups.rst:118 |
| 13472 | +msgid "" |
| 13473 | +"Tools MAY choose to provide the same or similar interfaces for interacting " |
| 13474 | +"with Dependency Groups as they do for managing extras. Tools authors are " |
| 13475 | +"advised that the specification does not forbid having an extra whose name " |
| 13476 | +"matches a Dependency Group. Separately, users are advised to avoid creating " |
| 13477 | +"Dependency Groups whose names match extras, and tools MAY treat such " |
| 13478 | +"matching as an error." |
| 13479 | +msgstr "" |
| 13480 | + |
| 13481 | +#: ../source/specifications/dependency-groups.rst:126 |
| 13482 | +msgid "Validation and Compatibility" |
| 13483 | +msgstr "" |
| 13484 | + |
| 13485 | +#: ../source/specifications/dependency-groups.rst:128 |
| 13486 | +msgid "" |
| 13487 | +"Tools supporting Dependency Groups may want to validate data before using " |
| 13488 | +"it. When implementing such validation, authors should be aware of the " |
| 13489 | +"possibility of future extensions to the specification, so that they do not " |
| 13490 | +"unnecessarily emit errors or warnings." |
| 13491 | +msgstr "" |
| 13492 | + |
| 13493 | +#: ../source/specifications/dependency-groups.rst:133 |
| 13494 | +msgid "" |
| 13495 | +"Tools SHOULD error when evaluating or processing unrecognized data in " |
| 13496 | +"Dependency Groups." |
| 13497 | +msgstr "" |
| 13498 | + |
| 13499 | +#: ../source/specifications/dependency-groups.rst:136 |
| 13500 | +msgid "" |
| 13501 | +"Tools SHOULD NOT eagerly validate the contents of *all* Dependency Groups " |
| 13502 | +"unless they have a need to do so." |
| 13503 | +msgstr "" |
| 13504 | + |
| 13505 | +#: ../source/specifications/dependency-groups.rst:139 |
| 13506 | +msgid "" |
| 13507 | +"This means that in the presence of the following data, most tools should " |
| 13508 | +"allow the ``foo`` group to be used and only error if the ``bar`` group is " |
| 13509 | +"used:" |
| 13510 | +msgstr "" |
| 13511 | + |
| 13512 | +#: ../source/specifications/dependency-groups.rst:150 |
| 13513 | +msgid "" |
| 13514 | +"There are several known cases of tools which have good cause to be stricter. " |
| 13515 | +"Linters and validators are an example, as their purpose is to validate the " |
| 13516 | +"contents of all Dependency Groups." |
| 13517 | +msgstr "" |
| 13518 | + |
| 13519 | +#: ../source/specifications/dependency-groups.rst:155 |
| 13520 | +#: ../source/specifications/inline-script-metadata.rst:123 |
| 13521 | +msgid "Reference Implementation" |
| 13522 | +msgstr "" |
| 13523 | + |
| 13524 | +#: ../source/specifications/dependency-groups.rst:157 |
| 13525 | +msgid "" |
| 13526 | +"The following Reference Implementation prints the contents of a Dependency " |
| 13527 | +"Group to stdout, newline delimited. The output is therefore valid " |
| 13528 | +"``requirements.txt`` data." |
| 13529 | +msgstr "" |
| 13530 | + |
| 13531 | +#: ../source/specifications/dependency-groups.rst:250 |
| 13532 | +msgid "October 2024: This specification was approved through :pep:`735`." |
| 13533 | +msgstr "" |
| 13534 | + |
13301 | 13535 | #: ../source/specifications/dependency-specifiers.rst:7 |
13302 | 13536 | msgid "Dependency specifiers" |
13303 | 13537 | msgstr "" |
@@ -13327,14 +13561,6 @@ msgid "" |
13327 | 13561 | "we use that format rather than pip's current native format." |
13328 | 13562 | msgstr "" |
13329 | 13563 |
|
13330 | | -#: ../source/specifications/dependency-specifiers.rst:26 |
13331 | | -#: ../source/specifications/direct-url-data-structure.rst:19 |
13332 | | -#: ../source/specifications/direct-url.rst:15 |
13333 | | -#: ../source/specifications/index-hosted-attestations.rst:17 |
13334 | | -#: ../source/specifications/inline-script-metadata.rst:13 |
13335 | | -msgid "Specification" |
13336 | | -msgstr "" |
13337 | | - |
13338 | 13564 | #: ../source/specifications/dependency-specifiers.rst:31 |
13339 | 13565 | msgid "All features of the language shown with a name based lookup::" |
13340 | 13566 | msgstr "" |
@@ -15526,10 +15752,6 @@ msgstr "" |
15526 | 15752 | msgid "The following is an example of a script with embedded metadata:" |
15527 | 15753 | msgstr "" |
15528 | 15754 |
|
15529 | | -#: ../source/specifications/inline-script-metadata.rst:123 |
15530 | | -msgid "Reference Implementation" |
15531 | | -msgstr "" |
15532 | | - |
15533 | 15755 | #: ../source/specifications/inline-script-metadata.rst:125 |
15534 | 15756 | msgid "" |
15535 | 15757 | "The following is an example of how to read the metadata on Python 3.11 or " |
|
0 commit comments