Kaydet (Commit) 10d5eef8 authored tarafından Jason R. Coombs's avatar Jason R. Coombs

Get names for README files from class attribute, allowing subclass to override.

üst c581ce4c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment