Skip to content

Commit 3944f4e

Browse files
authored
Merge pull request #189 from DimitriPapadopoulos/tests
Add `tests/test*.py` to source distributions
2 parents a83ea62 + 4330386 commit 3944f4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distutils/command/sdist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def add_defaults(self):
234234
"""Add all the default files to self.filelist:
235235
- README or README.txt
236236
- setup.py
237-
- test/test*.py
237+
- tests/test*.py and test/test*.py
238238
- all pure Python modules mentioned in setup script
239239
- all files pointed by package_data (build_py)
240240
- all files defined in data_files.
@@ -292,7 +292,7 @@ def _add_defaults_standards(self):
292292
self.warn("standard file '%s' not found" % fn)
293293

294294
def _add_defaults_optional(self):
295-
optional = ['test/test*.py', 'setup.cfg']
295+
optional = ['tests/test*.py', 'test/test*.py', 'setup.cfg']
296296
for pattern in optional:
297297
files = filter(os.path.isfile, glob(pattern))
298298
self.filelist.extend(files)

0 commit comments

Comments
 (0)