]> granicus.if.org Git - python/commitdiff
Include setup.cfg in the list of default files to distribute.
authorGreg Ward <gward@python.net>
Thu, 8 Jun 2000 01:22:48 +0000 (01:22 +0000)
committerGreg Ward <gward@python.net>
Thu, 8 Jun 2000 01:22:48 +0000 (01:22 +0000)
Lib/distutils/command/sdist.py

index 5a78cc58d29ae677b7ac4c61c3a1bf16b9682d9d..48e9793e5ef5926c745e36b96495ed42a032ddec 100644 (file)
@@ -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: