aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-10-14 14:55:42 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-10-14 14:55:42 -0400
commit252ee6f45e0c90a21ec951cb8d024c81ab4e2b73 (patch)
treee798791df1f3882628e991b773588e890b3d2d79 /setuptools/command
parenta0fe4c8e9be2a490db4bcbaf3ffe634623ea31cc (diff)
downloadexternal_python_setuptools-252ee6f45e0c90a21ec951cb8d024c81ab4e2b73.tar.gz
external_python_setuptools-252ee6f45e0c90a21ec951cb8d024c81ab4e2b73.tar.bz2
external_python_setuptools-252ee6f45e0c90a21ec951cb8d024c81ab4e2b73.zip
Move READMES definition into class attribute.
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/sdist.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index 546c96d1..addc6a56 100755
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -13,8 +13,6 @@ from setuptools.utils import cs_path_exists
import pkg_resources
-READMES = 'README', 'README.rst', 'README.txt'
-
_default_revctrl = list
@@ -41,6 +39,8 @@ class sdist(orig.sdist):
negative_opt = {}
+ READMES = 'README', 'README.rst', 'README.txt'
+
def run(self):
self.run_command('egg_info')
ei_cmd = self.get_finalized_command('egg_info')
@@ -128,7 +128,7 @@ class sdist(orig.sdist):
read_template = __read_template_hack
def add_defaults(self):
- standards = [READMES,
+ standards = [self.READMES,
self.distribution.script_name]
for fn in standards:
if isinstance(fn, tuple):
@@ -180,13 +180,13 @@ class sdist(orig.sdist):
self.filelist.extend(build_scripts.get_source_files())
def check_readme(self):
- for f in READMES:
+ for f in self.READMES:
if os.path.exists(f):
return
else:
self.warn(
"standard file not found: should have one of " +
- ', '.join(READMES)
+ ', '.join(self.READMES)
)
def make_release_tree(self, base_dir, files):