From 1c4df5d210a45cfb8eeb4824ee8dfc31e365c25a Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 5 Nov 2024 11:16:08 -0800 Subject: [PATCH] PEP 751: provide explanation for why `path` and `url` are optional --- peps/pep-0751.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/peps/pep-0751.rst b/peps/pep-0751.rst index c3d29f453a5..3ac3df987d1 100644 --- a/peps/pep-0751.rst +++ b/peps/pep-0751.rst @@ -1083,6 +1083,19 @@ simply defaulting to the baseline in tools without considering the security ramifications of that hash algorithm. +------------------------------------ +Require a URL or file path for files +------------------------------------ + +Originally references to files were required, e.g., ``packages.sdist.url`` or +``packages.sdist.path``. But at least +`one use-case `__ +surfaced during discussions about this PEP where statically specifying the +location of files would be problematic. And in earlier discussions the idea of +the location being a hint wasn't preferred. Hence the PEP now makes the data +optional, but considers the locations accurate if specified. + + ----------- File naming -----------