[Python-checkins] CVS: distutils/distutils dist.py,1.7,1.8
Greg Ward
python-dev@python.org
2000年4月25日 22:27:00 -0400 (EDT)
Update of /projects/cvsroot/distutils/distutils
In directory newcnri:/tmp/cvs-serv22420
Modified Files:
dist.py
Log Message:
Harry Henry Gebel: add 'long_description' to DistributionMetadata.
Index: dist.py
===================================================================
RCS file: /projects/cvsroot/distutils/distutils/dist.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** dist.py 2000年04月22日 02:52:44 1.7
--- dist.py 2000年04月26日 02:26:55 1.8
***************
*** 7,11 ****
# (extricated from core.py; actually dates back to the beginning)
! __revision__ = "$Id: dist.py,v 1.7 2000年04月22日 02:52:44 gward Exp $"
import sys, string, re
--- 7,11 ----
# (extricated from core.py; actually dates back to the beginning)
! __revision__ = "$Id: dist.py,v 1.8 2000年04月26日 02:26:55 gward Exp $"
import sys, string, re
***************
*** 90,93 ****
--- 90,95 ----
('description', None,
"print the package description"),
+ ('long-description', None,
+ "print the long package description"),
]
display_option_names = map(lambda x: string.translate(x[0], longopt_xlate),
***************
*** 639,642 ****
--- 641,645 ----
self.licence = None
self.description = None
+ self.long_description = None
# -- Metadata query methods ----------------------------------------
***************
*** 681,685 ****
def get_description(self):
return self.description or "UNKNOWN"
!
# class DistributionMetadata
--- 684,691 ----
def get_description(self):
return self.description or "UNKNOWN"
!
! def get_long_description(self):
! return self.long_description or "UNKNOWN"
!
# class DistributionMetadata