mirror of https://github.com/python/cpython
Get names for README files from class attribute, allowing subclass to override.
This commit is contained in:
parent
c581ce4c81
commit
10d5eef8e5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue