[Python-checkins] CVS: distutils/distutils/command sdist.py,1.27,1.28

Greg Ward python-dev@python.org
Wed, 7 Jun 2000 17:24:03 -0700


Update of /cvsroot/python/distutils/distutils/command
In directory slayer.i.sourceforge.net:/tmp/cvs-serv16683
Modified Files:
	sdist.py 
Log Message:
Docstring reformatting binge.
Index: sdist.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/sdist.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** sdist.py	2000年06月08日 00:14:18	1.27
--- sdist.py	2000年06月08日 00:24:01	1.28
***************
*** 5,9 ****
 # created 1999年09月22日, Greg Ward
 
! __revision__ = "$Id: sdist.py,v 1.27 2000年06月08日 00:14:18 gward Exp $"
 
 import sys, os, string, re
--- 5,9 ----
 # created 1999年09月22日, Greg Ward
 
! __revision__ = "$Id: sdist.py,v 1.28 2000年06月08日 00:24:01 gward Exp $"
 
 import sys, os, string, re
***************
*** 69,75 ****
 'nt': 'zip' }
 
- exclude_re = re.compile (r'\s*!\s*(\S+)') # for manifest lines
 
- 
 def initialize_options (self):
 # 'template' and 'manifest' are, respectively, the names of
--- 69,73 ----
***************
*** 166,176 ****
 def get_file_list (self):
 """Figure out the list of files to include in the source
! distribution, and put it in 'self.files'. This might
! involve reading the manifest template (and writing the
! manifest), or just reading the manifest, or just using
! the default file set -- it all depends on the user's
! options and the state of the filesystem."""
! 
! 
 template_exists = os.path.isfile (self.template)
 if template_exists:
--- 164,172 ----
 def get_file_list (self):
 """Figure out the list of files to include in the source
! distribution, and put it in 'self.files'. This might involve
! reading the manifest template (and writing the manifest), or just
! reading the manifest, or just using the default file set -- it all
! depends on the user's options and the state of the filesystem.
! """
 template_exists = os.path.isfile (self.template)
 if template_exists:
***************
*** 262,269 ****
 def search_dir (self, dir, pattern=None):
 """Recursively find files under 'dir' matching 'pattern' (a string
! containing a Unix-style glob pattern). If 'pattern' is None,
! find all files under 'dir'. Return the list of found
! filenames."""
! 
 allfiles = findall (dir)
 if pattern is None:
--- 258,264 ----
 def search_dir (self, dir, pattern=None):
 """Recursively find files under 'dir' matching 'pattern' (a string
! containing a Unix-style glob pattern). If 'pattern' is None, find
! all files under 'dir'. Return the list of found filenames.
! """
 allfiles = findall (dir)
 if pattern is None:
***************
*** 292,298 ****
 
 def recursive_exclude_pattern (self, dir, pattern=None):
! """Remove filenames from 'self.files' that are under 'dir'
! and whose basenames match 'pattern'."""
! 
 self.debug_print("recursive_exclude_pattern: dir=%s, pattern=%s" %
 (dir, pattern))
--- 287,293 ----
 
 def recursive_exclude_pattern (self, dir, pattern=None):
! """Remove filenames from 'self.files' that are under 'dir' and
! whose basenames match 'pattern'.
! """
 self.debug_print("recursive_exclude_pattern: dir=%s, pattern=%s" %
 (dir, pattern))
***************
*** 312,319 ****
 def read_template (self):
 """Read and parse the manifest template file named by
! 'self.template' (usually "MANIFEST.in"). Process all file
! specifications (include and exclude) in the manifest template
! and add the resulting filenames to 'self.files'."""
! 
 assert self.files is not None and type (self.files) is ListType
 self.announce("reading manifest template '%s'" % self.template)
--- 307,314 ----
 def read_template (self):
 """Read and parse the manifest template file named by
! 'self.template' (usually "MANIFEST.in"). Process all file
! specifications (include and exclude) in the manifest template and
! add the resulting filenames to 'self.files'.
! """
 assert self.files is not None and type (self.files) is ListType
 self.announce("reading manifest template '%s'" % self.template)
***************
*** 534,541 ****
 
 def write_manifest (self):
! """Write the file list in 'self.files' (presumably as filled in
! by 'find_defaults()' and 'read_template()') to the manifest file
! named by 'self.manifest'."""
! 
 self.execute(write_file,
 (self.manifest, self.files),
--- 529,536 ----
 
 def write_manifest (self):
! """Write the file list in 'self.files' (presumably as filled in by
! 'find_defaults()' and 'read_template()') to the manifest file named
! by 'self.manifest'.
! """
 self.execute(write_file,
 (self.manifest, self.files),
***************
*** 546,553 ****
 
 def read_manifest (self):
! """Read the manifest file (named by 'self.manifest') and use
! it to fill in 'self.files', the list of files to include
! in the source distribution."""
! 
 self.announce("reading manifest file '%s'" % self.manifest)
 manifest = open (self.manifest)
--- 541,548 ----
 
 def read_manifest (self):
! """Read the manifest file (named by 'self.manifest') and use it to
! fill in 'self.files', the list of files to include in the source
! distribution.
! """
 self.announce("reading manifest file '%s'" % self.manifest)
 manifest = open (self.manifest)

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