summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-10-14 18:44:11 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2016-10-14 18:44:11 (GMT)
commit10d5eef8e53a968efc3aff1153a9eb8c6e3e59f3 (patch)
tree4d06f3d157c4451bcd70850f09d45326bb2129db /Lib/distutils
parentc581ce4c817c8d9c7d8c09fe1c7bd5933de28575 (diff)
downloadcpython-10d5eef8e53a968efc3aff1153a9eb8c6e3e59f3.zip
cpython-10d5eef8e53a968efc3aff1153a9eb8c6e3e59f3.tar.gz
cpython-10d5eef8e53a968efc3aff1153a9eb8c6e3e59f3.tar.bz2
Get names for README files from class attribute, allowing subclass to override.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/sdist.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 28cd0d9..e512166 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -95,6 +95,8 @@ class sdist(Command):
sub_commands = [('check', checking_metadata)]
+ READMES = 'README', 'README.txt'
+
def initialize_options(self):
# 'template' and 'manifest' are, respectively, the names of
# the manifest template and manifest file.
@@ -218,7 +220,7 @@ class sdist(Command):
Warns if (README or README.txt) or setup.py are missing; everything
else is optional.
"""
- standards = [('README', 'README.txt'), self.distribution.script_name]
+ standards = [self.READMES, self.distribution.script_name]
for fn in standards:
if isinstance(fn, tuple):
alts = fn