Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Remove `structlog` dependency (#1751)

Chen Qian2a788e849fe0
diff --git a/poetry.lock b/poetry.lock
index 09912eef8..a8ee6afa8 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -6504,23 +6504,6 @@ files = [
{file = "striprtf-0.0.26.tar.gz", hash = "sha256:fdb2bba7ac440072d1c41eab50d8d74ae88f60a8b6575c6e2c7805dc462093aa"},
]
-[[package]]
-name = "structlog"
-version = "24.4.0"
-description = "Structured Logging for Python"
-optional = false
-python-versions = ">=3.8"
-files = [
- {file = "structlog-24.4.0-py3-none-any.whl", hash = "sha256:597f61e80a91cc0749a9fd2a098ed76715a1c8a01f73e336b746504d1aad7610"},
- {file = "structlog-24.4.0.tar.gz", hash = "sha256:b27bfecede327a6d2da5fbc96bd859f114ecc398a6389d664f62085ee7ae6fc4"},
-]
-
-[package.extras]
-dev = ["freezegun (>=0.2.8)", "mypy (>=1.4)", "pretend", "pytest (>=6.0)", "pytest-asyncio (>=0.17)", "rich", "simplejson", "twisted"]
-docs = ["cogapp", "furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-mermaid", "sphinxext-opengraph", "twisted"]
-tests = ["freezegun (>=0.2.8)", "pretend", "pytest (>=6.0)", "pytest-asyncio (>=0.17)", "simplejson"]
-typing = ["mypy (>=1.4)", "rich", "twisted"]
-
[[package]]
name = "sympy"
version = "1.13.1"
@@ -7879,4 +7862,4 @@ weaviate = ["weaviate-client"]
[metadata]
lock-version = "2.0"
python-versions = ">=3.9,<3.13"
-content-hash = "03caefc8740625d260d1092ca69a1dfdb56d6fb7ae92603613b81d466a70ebf9"
+content-hash = "4c0c0eda720efe7fbc74f58ade43fcf01f61ee8295154dd74a1a70d6ddc30280"
diff --git a/pyproject.toml b/pyproject.toml
index 9fa15fe21..329bccfe6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -38,7 +38,6 @@ dependencies = [
"requests",
"optuna",
"pydantic~=2.0",
- "structlog",
"jinja2",
"magicattr~=0.1.6",
"litellm",
@@ -130,7 +129,6 @@ groq = { version = "^0.4.2", optional = true }
rich = "^13.7.1"
psycopg2 = { version = "^2.9.9", optional = true }
pgvector = { version = "^0.2.5", optional = true }
-structlog = "^24.1.0"
llama-index = {version = "^0.10.30", optional = true}
snowflake-snowpark-python = { version = "*",optional=true, python = ">=3.9,<3.12" }
jinja2 = "^3.1.3"
diff --git a/requirements.txt b/requirements.txt
index 1cdb62951..e454fcbb9 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -12,7 +12,6 @@ pandas
pydantic~=2.0
regex
requests
-structlog
tenacity>=8.2.3
tqdm
ujson