Skip to content

Commit 769c8e7

Browse files
authored
Prevent the tests/migrations directory from getting packaged (#1118)
Simply excluding "tests" is not enough to prevent subpackages from also being excluded. If a wildcard is provided to "find_packages(exclude=", it will only match a single hierarchy level. Without this, a directory "site-packages/tests/migrations" gets created upon package install.
1 parent 492a867 commit 769c8e7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Ash Christopher
2121
Asif Saif Uddin
2222
Bart Merenda
2323
Bas van Oostveen
24+
Brian Helba
2425
Dave Burkholder
2526
David Fischer
2627
David Smith

setup.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ install_requires =
3838
jwcrypto >= 0.8.0
3939

4040
[options.packages.find]
41-
exclude = tests
41+
exclude =
42+
tests
43+
tests.*

0 commit comments

Comments
 (0)