Skip to content

Commit

Permalink
Add testing data to the package distributions (#421)
Browse files Browse the repository at this point in the history
The test code `pooch/tests` is installed but he data in `pooch/tests/data` 
are not. This makes it impossible to run tests on the installed package.
Add the appropriate setuptools configuration to make it happen.
  • Loading branch information
avalentino committed Jun 7, 2024
1 parent dfc6938 commit 5824e57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ xxhash = ["xxhash>=1.4.3"]
[tool.setuptools.packages]
find = {} # Scanning implicit namespaces is active by default

[tool.setuptools.package-data]
"pooch.tests.data" = ["*.txt", "*.zip", "*.gz", "*.xz", "*.bz2"]
"pooch.tests.data.store" = ["*.txt"]
"pooch.tests.data.store.subdir" = ["*.txt"]

[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
Expand Down

0 comments on commit 5824e57

Please sign in to comment.