From 5824e578c0c95ecadd77ea75a47a464eb77b97fd Mon Sep 17 00:00:00 2001 From: Antonio Valentino Date: Fri, 7 Jun 2024 18:31:30 +0200 Subject: [PATCH] Add testing data to the package distributions (#421) 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. --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 3daa87e8..1bfb3adb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"