Skip to content

Commit 5d46da6

Browse files
fix: completely remove psutil and rapidfuzz dependencies
Address PR feedback from @aaronsteers to fully remove psutil and rapidfuzz rather than making them optional dependencies. These packages are unused and were marked as TODO for removal. Changes: - Remove psutil and rapidfuzz from optional dependencies - Remove 'system' extras group (no longer needed) - Update deptry comments to reflect complete removal - Keep google-cloud-secret-manager in dev extras as requested Co-Authored-By: AJ Steers <[email protected]>
1 parent 8bc5492 commit 5d46da6

File tree

2 files changed

+2
-40
lines changed

2 files changed

+2
-40
lines changed

poetry.lock

Lines changed: 2 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ unidecode = "^1.3.8" # IMPORTANT: DO NOT USE. Added to support source-google-sh
9292
dateparser = "^1.2.2"
9393
# Optional dependencies for WASM compatibility
9494
google-cloud-secret-manager = { version = "^2.17.0", optional = true }
95-
psutil = { version = "6.1.0", optional = true }
96-
rapidfuzz = { version = "^3.10.1", optional = true }
9795

9896
[tool.poetry.group.dev.dependencies]
9997
freezegun = "*"
@@ -122,7 +120,6 @@ file-based = ["avro", "fastavro", "pyarrow", "unstructured", "pdf2image", "pdfmi
122120
vector-db-based = ["langchain", "openai", "cohere", "tiktoken"]
123121
sql = ["sqlalchemy"]
124122
dev = ["pytest", "google-cloud-secret-manager"]
125-
system = ["psutil", "rapidfuzz"]
126123

127124
[tool.poetry.scripts]
128125

@@ -237,8 +234,6 @@ DEP002 = [
237234

238235
# TODO: Remove these dependencies if not needed:
239236
"avro", # Only imported in `unit_tests` code
240-
"psutil", # Now optional dependency in 'system' extra
241-
"rapidfuzz", # Now optional dependency in 'system' extra
242237
"cohere",
243238
"markdown",
244239
"openai",

0 commit comments

Comments
 (0)