Commit 14c8d05a authored by Greg Ward's avatar Greg Ward

Include setup.cfg in the list of default files to distribute.

parent ce15c6ce
......@@ -233,6 +233,10 @@ class sdist (Command):
Warns if (README or README.txt) or setup.py are missing; everything
else is optional.
"""
# XXX name of setup script and config file should be taken
# programmatically from the Distribution object (except
# it doesn't have that capability... yet!)
standards = [('README', 'README.txt'), 'setup.py']
for fn in standards:
if type (fn) is TupleType:
......@@ -253,7 +257,7 @@ class sdist (Command):
else:
self.warn ("standard file '%s' not found" % fn)
optional = ['test/test*.py']
optional = ['test/test*.py', 'setup.cfg']
for pattern in optional:
files = filter (os.path.isfile, glob (pattern))
if files:
......
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