From 934beea3115fc6bd89870e7df408a2995342ad5c Mon Sep 17 00:00:00 2001 From: TomuHirata Date: Thu, 27 Feb 2025 16:37:23 +0900 Subject: [PATCH 1/2] fix pyproject.toml Signed-off-by: TomuHirata --- pyproject.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 08a20c8e8a..e90a3d7485 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=40.8.0", "wheel"] +requires = ["setuptools==62.3.0", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -51,10 +51,12 @@ dependencies = [ ] [tool.setuptools.packages.find] -include = ["dspy*"] +where = ["."] +include = ["dspy", "dspy.*"] +exclude = ["tests", "tests.*"] -[tool.setuptools] -include-package-data = true +[tool.setuptools.package-data] +dspy = ["primitives/*.js"] [project.optional-dependencies] anthropic = ["anthropic>=0.18.0,<1.0.0"] @@ -262,4 +264,4 @@ line-ending = "auto" [tool.ruff.lint.per-file-ignores] "**/{tests,testing,docs}/*" = ["ALL"] -"**__init__.py" = ["ALL"] \ No newline at end of file +"**__init__.py" = ["ALL"] From 8f4280ceb09b65a9561c8eeaf35a2f3a3c468d42 Mon Sep 17 00:00:00 2001 From: TomuHirata Date: Thu, 27 Feb 2025 16:40:45 +0900 Subject: [PATCH 2/2] revert unused changes Signed-off-by: TomuHirata --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e90a3d7485..f1842a02f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools==62.3.0", "wheel"] +requires = ["setuptools>=40.8.0", "wheel"] build-backend = "setuptools.build_meta" [project] @@ -264,4 +264,4 @@ line-ending = "auto" [tool.ruff.lint.per-file-ignores] "**/{tests,testing,docs}/*" = ["ALL"] -"**__init__.py" = ["ALL"] +"**__init__.py" = ["ALL"] \ No newline at end of file