From 12b7736433b97e0a5867c2340e5e83b1d6e408e7 Mon Sep 17 00:00:00 2001 From: Vitaly Lipatov Date: Mon, 19 Oct 2026 23:36:01 +0300 Subject: [PATCH 1/2] Do not install docs/ as a top-level package setuptools package discovery treats docs/ and docs/source/ as namespace packages and installs docs/source/conf.py into site-packages/docs/. Exclude docs* next to tests*. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b1baa93..64e140a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,7 +101,7 @@ publish = [ version = {attr = "psqlextra._version.__version__"} [tool.setuptools.packages.find] -exclude = ["tests*"] +exclude = ["tests*", "docs*"] [tool.setuptools.package-data] psqlextra = ["py.typed"] From 0904172acd9dac787ea1650ce858a23f20bd71c4 Mon Sep 17 00:00:00 2001 From: Vitaly Lipatov Date: Sat, 24 Oct 2026 22:47:14 +0300 Subject: [PATCH 2/2] Restrict package discovery to psqlextra --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 64e140a..8e5c402 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,7 +101,7 @@ publish = [ version = {attr = "psqlextra._version.__version__"} [tool.setuptools.packages.find] -exclude = ["tests*", "docs*"] +include = ["psqlextra*"] [tool.setuptools.package-data] psqlextra = ["py.typed"]