[Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2 (original) (raw)

Larry Hastings larry at hastings.org
Tue Dec 29 02:26:15 CET 2009


David Lyon wrote:

On Mon, 28 Dec 2009 23:07:32 +0000, Michael Foord <fuzzyman at voidspace.org.uk> wrote:

> Requires-Python: 2.5:2.7

Specifies a range of python versions. So this would work for Python 2.7 but not 2.7.1? Or does 2.7 implicitly mean a range of all Python 2.7 versions? Yes. 2.7 would mean all 2.7 versions. As 2.7.1 is a 2.7 release.

I suggest that this follow the Python syntax for ranges, where the end is non-inclusive. So "2.5:2.7" would mean "greater than or equal to 2.5, and less than 2.7". Which suggests that "2.5:" could be equivalent to "2.5+", as well as allowing ":3" to mean "any version less than 3.0".

Cheers,

/larry/



More information about the Python-Dev mailing list