Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Fix pyproject.toml's inclusion of package data

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