summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/metadata.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-09-10 03:22:48 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-09-10 03:22:48 (GMT)
commite6db7a3a298e3bfe5064de2298ba6cdcb470793e (patch)
treebec2b5049f20ce1f86dedb2d4c9af1a35b4f47f3 /Lib/packaging/metadata.py
parent6bbd775377ae4a6e87ccce990750ac02afe83573 (diff)
downloadcpython-e6db7a3a298e3bfe5064de2298ba6cdcb470793e.zip
cpython-e6db7a3a298e3bfe5064de2298ba6cdcb470793e.tar.gz
cpython-e6db7a3a298e3bfe5064de2298ba6cdcb470793e.tar.bz2
Fix determination of Metadata version in packaging (#8933).
Original patch by Filip Gruszczyński.
Diffstat (limited to 'Lib/packaging/metadata.py')
-rw-r--r--Lib/packaging/metadata.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/packaging/metadata.py b/Lib/packaging/metadata.py
index 7d7fc6b..dbb53b2 100644
--- a/Lib/packaging/metadata.py
+++ b/Lib/packaging/metadata.py
@@ -61,7 +61,8 @@ _314_FIELDS = ('Metadata-Version', 'Name', 'Version', 'Platform',
'License', 'Classifier', 'Download-URL', 'Obsoletes',
'Provides', 'Requires')
-_314_MARKERS = ('Obsoletes', 'Provides', 'Requires')
+_314_MARKERS = ('Obsoletes', 'Provides', 'Requires', 'Classifier',
+ 'Download-URL')
_345_FIELDS = ('Metadata-Version', 'Name', 'Version', 'Platform',
'Supported-Platform', 'Summary', 'Description',