Skip to content

Commit

Permalink
Merge pull request #189 from DimitriPapadopoulos/tests
Browse files Browse the repository at this point in the history
Add `tests/test*.py` to source distributions
  • Loading branch information
jaraco authored Feb 6, 2023
2 parents a83ea62 + 4330386 commit 3944f4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distutils/command/sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def add_defaults(self):
"""Add all the default files to self.filelist:
- README or README.txt
- setup.py
- test/test*.py
- tests/test*.py and test/test*.py
- all pure Python modules mentioned in setup script
- all files pointed by package_data (build_py)
- all files defined in data_files.
Expand Down Expand Up @@ -292,7 +292,7 @@ def _add_defaults_standards(self):
self.warn("standard file '%s' not found" % fn)

def _add_defaults_optional(self):
optional = ['test/test*.py', 'setup.cfg']
optional = ['tests/test*.py', 'test/test*.py', 'setup.cfg']
for pattern in optional:
files = filter(os.path.isfile, glob(pattern))
self.filelist.extend(files)
Expand Down

0 comments on commit 3944f4e

Please sign in to comment.