[Distutils] PEP 566 - metadata 1.3 changes

Dustin Ingram di at di.codes
Thu Jan 18 12:23:29 EST 2018


It does, it's using the `packaging` module under the hood:

>>> from pkg_resources import Requirement
>>> Requirement.parse("requests >= 2.8.1") == Requirement.parse("requests (>= 2.8.1)")
True

D.

On Thu, Jan 18, 2018 at 10:56 AM, Daniel Holth <dholth at gmail.com> wrote:
>>1.2 and not 2.0 is correct.
>
> I took a look at pkg_resources. It doesn't read Metadata-Version at all. It
> only cares about Version, and in wheels Requires-Dist and Provides-Extra.
> Everything else is ignored. So PEP 566 won't break anything there as long as
> someone checks that pkg_resources can handle the optional parenthesis which
> seems likely.
>
> On Thu, Jan 18, 2018 at 11:37 AM Dustin Ingram <di at di.codes> wrote:
>>
>> > Given that, I think it would be reasonable to finally Withdraw PEP 426
>> > (rather than continuing to defer it), and have PEP 566 define metadata
>> > version 2.1, so that it's unambiguously the latest metadata version.
>>
>> I'm amenable to any version number that is > 1.2 and not 2.0.
>>
>> D.
>> _______________________________________________
>> Distutils-SIG maillist  -  Distutils-SIG at python.org
>> https://mail.python.org/mailman/listinfo/distutils-sig


More information about the Distutils-SIG mailing list