summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2005-03-20 22:19:47 (GMT)
committerFred Drake <fdrake@acm.org>2005-03-20 22:19:47 (GMT)
commitdb7b0027dcebca13d193db09d7f266d871fe67b9 (patch)
treef129701cb790d19559b49ddfb4a58e2c60217a82 /Lib/distutils/command
parent54398d6afb680bde217cc9529b2cd88485bec3d8 (diff)
downloadcpython-db7b0027dcebca13d193db09d7f266d871fe67b9.zip
cpython-db7b0027dcebca13d193db09d7f266d871fe67b9.tar.gz
cpython-db7b0027dcebca13d193db09d7f266d871fe67b9.tar.bz2
PEP 314 implementation (client side):
added support for the provides, requires, and obsoletes metadata fields
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/register.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/distutils/command/register.py b/Lib/distutils/command/register.py
index 8104ce0..6e9a8d4 100644
--- a/Lib/distutils/command/register.py
+++ b/Lib/distutils/command/register.py
@@ -231,7 +231,13 @@ Your selection [default 1]: ''',
'platform': meta.get_platforms(),
'classifiers': meta.get_classifiers(),
'download_url': meta.get_download_url(),
+ # PEP 314
+ 'provides': meta.get_provides(),
+ 'requires': meta.get_requires(),
+ 'obsoletes': meta.get_obsoletes(),
}
+ if data['provides'] or data['requires'] or data['obsoletes']:
+ data['metadata_version'] = '1.1'
return data
def post_to_server(self, data, auth=None):