Commit dae0d91d authored by Greg Ward's avatar Greg Ward

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

parent ef930712
...@@ -233,6 +233,10 @@ class sdist (Command): ...@@ -233,6 +233,10 @@ 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.
""" """
# 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'] standards = [('README', 'README.txt'), 'setup.py']
for fn in standards: for fn in standards:
if type (fn) is TupleType: if type (fn) is TupleType:
...@@ -253,7 +257,7 @@ class sdist (Command): ...@@ -253,7 +257,7 @@ class sdist (Command):
else: else:
self.warn ("standard file '%s' not found" % fn) self.warn ("standard file '%s' not found" % fn)
optional = ['test/test*.py'] optional = ['test/test*.py', 'setup.cfg']
for pattern in optional: for pattern in optional:
files = filter (os.path.isfile, glob (pattern)) files = filter (os.path.isfile, glob (pattern))
if files: 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