Skip to content

Commit c326e30

Browse files
committed
Clarify file name precedence for archive, sdist, and wheel specifications in pylock.toml
1 parent 1fcaf7d commit c326e30

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

‎source/specifications/pylock-toml.rst‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,15 +449,26 @@ See :ref:`pylock-packages-vcs-subdirectory`.
449449
``packages.archive.url``
450450
''''''''''''''''''''''''
451451

452-
See :ref:`pylock-packages-vcs-url`.
452+
- **Type**: string
453+
- **Required?**: if :ref:`pylock-packages-archive-path` is not specified
454+
- **Inspiration**: :ref:`direct-url-data-structure-archive`
455+
- The URL_ to the archive.
456+
- If :ref:`pylock-packages-archive-path` is also specified, the filename as
457+
specified by this key takes precedence.
453458

454459

455460
.. _pylock-packages-archive-path:
456461

457462
``packages.archive.path``
458463
'''''''''''''''''''''''''
459464

460-
See :ref:`pylock-packages-vcs-path`.
465+
- **Type**: string
466+
- **Required?**: if :ref:`pylock-packages-archive-url` is not specified
467+
- **Inspiration**: :ref:`direct-url-data-structure-archive`
468+
- The path to the archive.
469+
- If a relative path is used it MUST be relative to the location of this file.
470+
- If the path is relative it MAY use POSIX-style path separators explicitly
471+
for portability.
461472

462473

463474
.. _pylock-packages-archive-size:
@@ -554,6 +565,8 @@ See :ref:`pylock-packages-vcs-subdirectory`.
554565
the same value
555566
- **Inspiration**: PDM_, Poetry_, uv_
556567
- The file name of the :ref:`source-distribution-format-sdist` file.
568+
- If specified, this key's value takes precedence over the file name found in
569+
either :ref:`pylock-packages-sdist-url` or :ref:`pylock-packages-sdist-path`.
557570

558571

559572
.. _pylock-packages-sdist-upload-time:
@@ -623,6 +636,8 @@ See :ref:`pylock-packages-archive-hashes`.
623636
the same value
624637
- **Inspiration**: PDM_, Poetry_, uv_
625638
- The file name of the :ref:`binary-distribution-format` file.
639+
- If specified, this key's value takes precedence over the file name found in
640+
either :ref:`pylock-packages-sdist-url` or :ref:`pylock-packages-sdist-path`.
626641

627642

628643
.. _pylock-packages-wheels-upload-time:
@@ -826,6 +841,7 @@ History
826841
-------
827842

828843
- April 2025: Initial version, approved via :pep:`751`.
844+
- March 2026: Clarify file name precedence for archives, sdists, and wheels.
829845

830846

831847
.. _Content-Length: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length

0 commit comments

Comments
 (0)