[Distutils] Add data-requires-python attribute to download links in simple repository API

Daniel Holth dholth at gmail.com
Thu Jul 14 17:30:51 EDT 2016


Lgtm

On Thu, Jul 14, 2016, 16:49 Thomas Kluyver <thomas at kluyver.me.uk> wrote:

> In a discussion about how to allow pip to select a package version
> compatible with the target Python version, Donald suggested adding a
> data-requires-python attribute to links in the simple repository API,
> which pip uses to find candidate downloads.
>
> <a href="..." data-requires-python=">=3">...</a>
>
> This would expose the Requires-Python metadata field already specified
> in PEP 345. There is a separate PR for setuptools to allow specifying
> this value.
>
> I have opened a PR to add this to PEP 503, which defines the simple
> repository API, and Donald asked that I post about it here for comments:
>
> https://github.com/python/peps/pull/56
>
> Thanks,
> Thomas
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160714/68e0a52b/attachment.html>


More information about the Distutils-SIG mailing list