[Python-Dev] Proposing PEP 345 : Metadata for Python Software Packages 1.2

MRAB python at mrabarnett.plus.com
Mon Dec 28 03:03:08 CET 2009


Martin v. Löwis wrote:
>> No application developer will quickly figure out what a tilde means. Maybe
>> it means 'roughly', but it requires too much thought and is ambiguous. 2.5
>> is not roughly 2.5.2. It is the same exactly.
>>
>> Before we had : Requires-Python: 2.5, 2.6
>>
>> That made much more sense. It was simple and unambiguous, and is relevant
>> to typical packaging scenarios.
> 
> Unfortunately, it is fairly ambiguous, and makes no sense. It means
> "requires Python 2.5 *AND* requires Python 2.6", which is a requirement
> that no single version can meet.
> 
Does that mean we should add "or"?

     Requires-Python: 2.5 or 2.6

Should we also use "and" instead of ","?

     Requires-Python: >= 2.5 and < 2.6


More information about the Python-Dev mailing list