'name', 'version', 'author', 'author_email',
'maintainer', 'maintainer_email', 'url', 'license',
'description', 'long_description', 'keywords',
- 'platforms', 'classifiers')
+ 'platforms', 'classifiers', 'download_url')
# Legal keyword arguments for the Extension constructor
extension_keywords = ('name', 'sources', 'include_dirs',
"maintainer", "maintainer_email", "url",
"license", "description", "long_description",
"keywords", "platforms", "fullname", "contact",
- "contact_email", "licence", "classifiers")
+ "contact_email", "licence", "classifiers",
+ "download_url")
def __init__ (self):
self.name = None
self.keywords = None
self.platforms = None
self.classifiers = None
+ self.download_url = None
def write_pkg_info (self, base_dir):
"""Write the PKG-INFO file into the release tree.
pkg_info.write('Author: %s\n' % self.get_contact() )
pkg_info.write('Author-email: %s\n' % self.get_contact_email() )
pkg_info.write('License: %s\n' % self.get_license() )
+ if self.download_url:
+ pkg_info.write('Download-URL: %s\n' % self.download_url)
long_desc = rfc822_escape( self.get_long_description() )
pkg_info.write('Description: %s\n' % long_desc)
def get_classifiers(self):
return self.classifiers or []
+ def get_download_url(self):
+ return self.download_url or "UNKNOWN"
+
# class DistributionMetadata