Re: Update PEP 508 to allow version specifiers

Donald Stufft <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <[email protected]>

> On Jan 29, 2019, at 9:43 AM, Paul Moore <[email protected]> wrote:
> 
> But direct URLs to github repos are a different matter, and are
> frankly just wrong - by their nature a github repo is a changing
> object, and so will never map to a "specific artifact to install".


FWIW, Paul’s statement is supported by PEP 440 itself.

PEP 440 states:

-----
All direct references that do not refer to a local file URL SHOULD specify a secure transport mechanism (such as https) AND include an expected hash value in the URL for verification purposes. If a direct reference is specified without any hash information, with hash information that the tool doesn't understand, or with a selected hash algorithm that the tool considers too weak to trust, automated tools SHOULD at least emit a warning and MAY refuse to rely on the URL. 
-----

Which clearly suggests that the URLs are expected to be immutable (given that tooling should at least emit a warning if a hash isn’t included, and are permitted to error completely, and you can’t have a hash unless the target URL is immutable.

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/LAW3FYIKCY5DXHVZWHJ6AAG3UGGBKDH2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.