[Distutils] Review of latest draft of PEP 426 (Python package metadata v1.3)

Vinay Sajip vinay_sajip at yahoo.co.uk
Tue Jan 29 00:44:47 CET 2013


Nick Coghlan <ncoghlan <at> gmail.com> writes:

> As a simple proposal: a new "Version-Scheme" field, with currently
> supported values "setuptools" and "pep386", and a clause allowing
> future "pepXYZ" versioning schemes. The version scheme field then
> effectively defines how versions are sorted for ordered comparisons
> involving that distribution.

I would add to the currently supported values "semantic" (http://semver.org/)
as this scheme is widely used and is easy to support.

Currently, distlib supports a number of version schemes:

"legacy" - setuptools ordering - most liberal
"normalized" - PEP 386 - not really compatible with semantic versioning
"semantic" - http://semver.org/

It might be an idea to use "legacy" instead of "setuptools" as it encompasses
distutils as well, and perhaps indicates that people should move to one of the
other schemes.

Regards,

Vinay Sajip



More information about the Distutils-SIG mailing list