diff options
| author | Éric Araujo <merwok@netwok.org> | 2011-09-10 01:51:40 +0200 |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2011-09-10 01:51:40 +0200 |
| commit | 9da8782eff11b5aa19156596f5cfec1d776c776f (patch) | |
| tree | 1f2966acebd81a06154f8f73e531d4661a8fd661 /dist.py | |
| parent | 274ec9cd20e5bdf61fbb0b5c468b547607cf50f5 (diff) | |
| download | python-setuptools-git-9da8782eff11b5aa19156596f5cfec1d776c776f.tar.gz | |
Fix determination of Metadata version (#8933). Patch by Filip Gruszczyński.
Diffstat (limited to 'dist.py')
| -rw-r--r-- | dist.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1018,7 +1018,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' file.write('Metadata-Version: %s\n' % version) |
