Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Revert "Fix pyproject.toml's inclusion of package data"

Omar Khattab8fbcb7efa817
diff --git a/pyproject.toml b/pyproject.toml
index ab88d21b3..b8670483f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -50,11 +50,11 @@ dependencies = [
"cloudpickle",
]
-[tool.setuptools.packages.find]
-include = ["dspy*"]
-
[tool.setuptools]
-include-package-data = true
+packages = ["dspy"]
+
+[tool.setuptools.package-data]
+"dspy" = ["primitives/*.js"]
[project.optional-dependencies]
anthropic = ["anthropic>=0.18.0,<1.0.0"]
@@ -140,7 +140,10 @@ pgvector = { version = "^0.2.5", optional = true }
llama-index = { version = "^0.10.30", optional = true }
jinja2 = "^3.1.3"
magicattr = "^0.1.6"
-litellm = { version = ">=1.59.8,<2.0.0", extras = ["proxy"] }
+litellm = [
+ { version = ">=1.59.8,<2.0.0", markers = "sys_platform == 'win32'" },
+ { version = ">=1.59.8,<2.0.0", extras = ["proxy"], markers = "sys_platform != 'win32'" }
+]
diskcache = "^5.6.0"
json-repair = "^0.30.0"
tenacity = ">=8.2.3"
@@ -159,7 +162,10 @@ pre-commit = "^3.7.0"
ipykernel = "^6.29.4"
semver = "^3.0.2"
pillow = "^10.1.0"
-litellm = {version = ">=1.59.8,<2.0.0", extras = ["proxy"]}
+litellm = [
+ { version = ">=1.59.8,<2.0.0", markers = "sys_platform == 'win32'" },
+ { version = ">=1.59.8,<2.0.0", extras = ["proxy"], markers = "sys_platform != 'win32'" }
+]
datamodel-code-generator = "^0.26.3"
[tool.poetry.extras]
@@ -256,4 +262,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"]