[Python-checkins] python/dist/src/Lib/distutils core.py,1.57,1.58 dist.py,1.61,1.62

akuchling@users.sourceforge.net akuchling@users.sourceforge.net
2003年2月19日 06:16:09 -0800


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1:/tmp/cvs-serv17324
Modified Files:
	core.py dist.py 
Log Message:
[Patch #683939] Add download_url field to metadata
Index: core.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/core.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** core.py	27 Jan 2003 16:30:35 -0000	1.57
--- core.py	19 Feb 2003 14:16:00 -0000	1.58
***************
*** 48,52 ****
 'maintainer', 'maintainer_email', 'url', 'license',
 'description', 'long_description', 'keywords',
! 'platforms', 'classifiers')
 
 # Legal keyword arguments for the Extension constructor
--- 48,52 ----
 'maintainer', 'maintainer_email', 'url', 'license',
 'description', 'long_description', 'keywords',
! 'platforms', 'classifiers', 'download_url')
 
 # Legal keyword arguments for the Extension constructor
Index: dist.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/dist.py,v
retrieving revision 1.61
retrieving revision 1.62
diff -C2 -d -r1.61 -r1.62
*** dist.py	3 Jan 2003 15:24:36 -0000	1.61
--- dist.py	19 Feb 2003 14:16:01 -0000	1.62
***************
*** 967,971 ****
 "license", "description", "long_description",
 "keywords", "platforms", "fullname", "contact",
! "contact_email", "licence", "classifiers")
 
 def __init__ (self):
--- 967,972 ----
 "license", "description", "long_description",
 "keywords", "platforms", "fullname", "contact",
! "contact_email", "licence", "classifiers",
! "download_url")
 
 def __init__ (self):
***************
*** 983,986 ****
--- 984,988 ----
 self.platforms = None
 self.classifiers = None
+ self.download_url = None
 
 def write_pkg_info (self, base_dir):
***************
*** 998,1001 ****
--- 1000,1005 ----
 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() )
***************
*** 1070,1073 ****
--- 1074,1080 ----
 def get_classifiers(self):
 return self.classifiers or []
+ 
+ def get_download_url(self):
+ return self.download_url or "UNKNOWN"
 
 # class DistributionMetadata

AltStyle によって変換されたページ (->オリジナル) /