diff --git a/pyproject.toml b/pyproject.toml
index 33a2332b57f8fae3c03721f8c472e82ea8f5b52e..e2aae6492699d1a48ce4254f7db0fb9d5896b050 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -139,8 +139,8 @@ ignore-patterns = ["(.*_pb2.*py$)"]
 [tool.pylint.format]
 max-line-length = 79
 
-[tool.setuptools]
-packages = ["declearn"]
+[tool.setuptools.packages.find]
+include = ["declearn", "declearn.*"]
 
 [tool.setuptools.package-data]
 declearn = ["py.typed"]