mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
PEP 314 implementation (client side):
added support for the provides, requires, and obsoletes metadata fields
This commit is contained in:
parent
54398d6afb
commit
db7b0027dc
6 changed files with 274 additions and 30 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue