From: Greg Ward <gward@python.net>
Date: Thu, 8 Jun 2000 01:22:48 +0000 (+0000)
Subject: Include setup.cfg in the list of default files to distribute.
X-Git-Tag: v2.0b1~1537
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14c8d05a7a72b814431b193aabf246760753d6ac;p=python

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

diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 5a78cc58d2..48e9793e5e 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -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: