Skip to content

Commit 6cb768f

Browse files
committed
PEP 710: elaborate on storing at least one hash
Signed-off-by: Fridolin Pokorny <[email protected]>
1 parent c09a325 commit 6cb768f

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

peps/pep-0710.rst

+17-3
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,18 @@ contain any entries. In such cases, pip does not create any
437437
is encouraged for consumers to rebuild wheels with a newer version of pip in
438438
these cases.
439439

440+
uv developers raised a concern about requiring at least one hash in the
441+
``provenance_url.json`` file as uv does not calculate distribution hashes
442+
unless explicitly required. However, requiring at least one hash aids in
443+
integrity checks for distributions. This is important in scenarios involving
444+
lock files or when identifying distributions as part of SBOMs. The
445+
``provenance_url.json`` file mandates the inclusion of at least one hash for
446+
the downloaded distribution. Installers that do not compute hashes of
447+
distributions as part of the installation process (e.g., due to performance
448+
reasons) can omit creating the ``provenance_url.json`` file. However, the
449+
limitations affecting the auditability of Python environments should be taken
450+
into account.
451+
440452
Making the hashes key optional
441453
------------------------------
442454

@@ -646,17 +658,19 @@ which this idea originated.
646658
Thanks to Donald Stufft, Ofek Lev, and Trishank Kuppusamy for early feedback
647659
and support to work on this PEP.
648660

649-
Thanks to Gregory P. Smith, Stéphane Bidoul, and C.A.M. Gerlach for
650-
reviewing this PEP and providing valuable suggestions.
661+
Thanks to Gregory P. Smith, Stéphane Bidoul, C.A.M. Gerlach, and Adam Turner
662+
for reviewing this PEP and providing valuable suggestions.
651663

652-
Thanks to Seth Michael Larson for providing valuable suggestions and for
664+
Thanks to Seth Michael Larson for support, providing valuable suggestions and for
653665
the proposed pip-sbom prototype.
654666

655667
Thanks to Stéphane Bidoul and Chris Jerdonek for :pep:`610`.
656668

657669
Thanks to Frost Ming for raising possible concern around storing index URL in
658670
the ``provenance_url.json`` file.
659671

672+
Thanks to Charlie Marsh and Zanie Blue for inputs related to the uv installer.
673+
660674
Last, but not least, thanks to Donald Stufft for sponsoring this PEP.
661675

662676
Copyright

0 commit comments

Comments
 (0)