[Python-checkins] cpython: Get names for README files from class attribute, allowing subclass to override.
jason.coombs
python-checkins at python.org
Fri Oct 14 14:54:24 EDT 2016
https://hg.python.org/cpython/rev/bc22a1df844d
changeset: 104493:bc22a1df844d
user: Jason R. Coombs <jaraco at jaraco.com>
date: Fri Oct 14 14:44:11 2016 -0400
summary:
Get names for README files from class attribute, allowing subclass to override.
files:
Lib/distutils/command/sdist.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -95,6 +95,8 @@
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 @@
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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list