mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix determination of Metadata version (#8933). Patch by Filip Gruszczyński.
This commit is contained in:
parent
fce67fcd84
commit
13e8c8e721
3 changed files with 20 additions and 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue