Commits

Alice Bevan-McGregor committed 0f4f96e

Fixed empty folder issue during upload_docs.

Comments (0)

Files changed (1)

setuptools/command/upload_docs.py

         tmp_file = os.path.join(tmp_dir, "%s.zip" % name)
         zip_file = zipfile.ZipFile(tmp_file, "w")
         for root, dirs, files in os.walk(self.upload_dir):
-            if not files:
+            if root == self.upload_dir and not files:
                 raise DistutilsOptionError(
                     "no files found in upload directory '%s'"
                     % self.upload_dir)