summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-05-14 15:21:26 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-05-14 15:21:26 (GMT)
commitda0dc2e468552560af6d8d8988e05c9b75a93b61 (patch)
tree85b530d990127588a48550cc5d8cec89efec9158 /Lib/distutils/command
parent434caaab7548134e19f51f892908fbce415976ee (diff)
downloadcpython-da0dc2e468552560af6d8d8988e05c9b75a93b61.zip
cpython-da0dc2e468552560af6d8d8988e05c9b75a93b61.tar.gz
cpython-da0dc2e468552560af6d8d8988e05c9b75a93b61.tar.bz2
Merged revisions 72624 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72624 | tarek.ziade | 2009-05-14 16:56:14 +0200 (Thu, 14 May 2009) | 1 line pep8-fied distutils.command.sdist + more tests ........
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/sdist.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 836b962..cbb77c2 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -31,7 +31,7 @@ def show_formats():
FancyGetopt(formats).print_help(
"List of available source distribution formats:")
-class sdist (Command):
+class sdist(Command):
description = "create a source distribution (tarball, zip file, etc.)"
@@ -78,8 +78,8 @@ class sdist (Command):
negative_opt = {'no-defaults': 'use-defaults',
'no-prune': 'prune' }
- default_format = { 'posix': 'gztar',
- 'nt': 'zip' }
+ default_format = {'posix': 'gztar',
+ 'nt': 'zip' }
def initialize_options(self):
# 'template' and 'manifest' are, respectively, the names of
@@ -101,7 +101,6 @@ class sdist (Command):
self.archive_files = None
-
def finalize_options(self):
if self.manifest is None:
self.manifest = "MANIFEST"
@@ -125,7 +124,6 @@ class sdist (Command):
if self.dist_dir is None:
self.dist_dir = "dist"
-
def run(self):
# 'filelist' contains the list of files that will make up the
# manifest
@@ -244,7 +242,6 @@ class sdist (Command):
else:
self.read_manifest()
-
def add_defaults(self):
"""Add all the default files to self.filelist:
- README or README.txt
@@ -373,7 +370,7 @@ class sdist (Command):
vcs_ptrn = r'(^|%s)(%s)(%s).*' % (seps, '|'.join(vcs_dirs), seps)
self.filelist.exclude_pattern(vcs_ptrn, is_regex=1)
- def write_manifest (self):
+ def write_manifest(self):
"""Write the file list in 'self.filelist' (presumably as filled in
by 'add_defaults()' and 'read_template()') to the manifest file
named by 'self.manifest'.