Fix determination of Metadata version (#8933). Patch by Filip Gruszczyński.

This commit is contained in:
Éric Araujo 2011-09-10 05:39:45 +02:00
parent 0c4007641e
commit a13cd39533
3 changed files with 21 additions and 2 deletions

View file

@ -1111,7 +1111,8 @@ class DistributionMetadata:
"""Write the PKG-INFO format data to a file object.
"""
version = '1.0'
if self.provides or self.requires or self.obsoletes:
if (self.provides or self.requires or self.obsoletes or
self.classifiers or self.download_url):
version = '1.1'
self._write_field(file, 'Metadata-Version', version)