mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
Get names for README files from class attribute, allowing subclass to override.
This commit is contained in:
parent
c581ce4c81
commit
10d5eef8e5
1 changed files with 3 additions and 1 deletions
|
|
@ -95,6 +95,8 @@ class sdist(Command):
|
||||||
|
|
||||||
sub_commands = [('check', checking_metadata)]
|
sub_commands = [('check', checking_metadata)]
|
||||||
|
|
||||||
|
READMES = 'README', 'README.txt'
|
||||||
|
|
||||||
def initialize_options(self):
|
def initialize_options(self):
|
||||||
# 'template' and 'manifest' are, respectively, the names of
|
# 'template' and 'manifest' are, respectively, the names of
|
||||||
# the manifest template and manifest file.
|
# 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
|
Warns if (README or README.txt) or setup.py are missing; everything
|
||||||
else is optional.
|
else is optional.
|
||||||
"""
|
"""
|
||||||
standards = [('README', 'README.txt'), self.distribution.script_name]
|
standards = [self.READMES, self.distribution.script_name]
|
||||||
for fn in standards:
|
for fn in standards:
|
||||||
if isinstance(fn, tuple):
|
if isinstance(fn, tuple):
|
||||||
alts = fn
|
alts = fn
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue