From 79350db5d7ec06563c763b8d37f2bd8bf5b77ad7 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 23 Jan 2025 15:10:21 +0200 Subject: [PATCH 1/3] Exclude tests from distribution Fixes #1478 --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d861cc24f..90862f83a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -149,3 +149,6 @@ ignore_missing_imports = true [[tool.mypy.overrides]] module = "scipy.stats" ignore_missing_imports = true + +[tool.setuptools.packages.find] +exclude = ["tests*"] From c595636e2e164f806229c0e11e9d0c1bf76135a6 Mon Sep 17 00:00:00 2001 From: Matthew Douglas <38992547+matthewdouglas@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:37:53 -0500 Subject: [PATCH 2/3] Update pyproject.toml --- pyproject.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 90862f83a..0519b3163 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,6 +72,7 @@ test = [ ] [tool.setuptools] +packages = ["bitsandbytes"] package-data = { "*" = ["libbitsandbytes*.*"] } [tool.setuptools.dynamic] @@ -149,6 +150,3 @@ ignore_missing_imports = true [[tool.mypy.overrides]] module = "scipy.stats" ignore_missing_imports = true - -[tool.setuptools.packages.find] -exclude = ["tests*"] From 284042aade1561a3783a9814a3e296a1cfac2078 Mon Sep 17 00:00:00 2001 From: Matthew Douglas <38992547+matthewdouglas@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:58:59 -0500 Subject: [PATCH 3/3] Update pyproject.toml --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0519b3163..267c5e809 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,9 +72,11 @@ test = [ ] [tool.setuptools] -packages = ["bitsandbytes"] package-data = { "*" = ["libbitsandbytes*.*"] } +[tool.setuptools.packages.find] +include = ["bitsandbytes*"] + [tool.setuptools.dynamic] version = {attr = "bitsandbytes.__version__"}