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

2016-07-17 Thread Xavier Fernandez
LGTM also :)

For the record, I've started a related PR to check Requires-Python in pip
at install time: https://github.com/pypa/pip/pull/3846
It should still be useful once PEP 503 is amended, for packages or package
indexes that could not expose the Requires-Python information via this new
mecanism.

Regards,
Xavier

On Thu, Jul 14, 2016 at 11:30 PM, Daniel Holth  wrote:

> Lgtm
>
> On Thu, Jul 14, 2016, 16:49 Thomas Kluyver  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.
>>
>> ...
>>
>> 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@python.org
>> https://mail.python.org/mailman/listinfo/distutils-sig
>>
>
> ___
> Distutils-SIG maillist  -  Distutils-SIG@python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
>
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


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

2016-07-14 Thread Daniel Holth
Lgtm

On Thu, Jul 14, 2016, 16:49 Thomas Kluyver  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.
>
> ...
>
> 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@python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig


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

2016-07-14 Thread Thomas Kluyver
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.

...

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@python.org
https://mail.python.org/mailman/listinfo/distutils-sig