summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-09-09 23:51:40 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-09-09 23:51:40 (GMT)
commit13e8c8e7216ff52b92d9ba51125b939c021e26d4 (patch)
tree875cd843c45bbdde052441ec8b0a021c19852168 /Lib/distutils/dist.py
parentfce67fcd84f7ab66dde11646eead6378698c04b0 (diff)
downloadcpython-13e8c8e7216ff52b92d9ba51125b939c021e26d4.zip
cpython-13e8c8e7216ff52b92d9ba51125b939c021e26d4.tar.gz
cpython-13e8c8e7216ff52b92d9ba51125b939c021e26d4.tar.bz2
Fix determination of Metadata version (#8933). Patch by Filip Gruszczyński.
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r--Lib/distutils/dist.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index 8ca5b6f..69825f2 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -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)