Skip to content

Commit 222ad50

Browse files
fix: Clean up runtime dependencies
Removed (unused in main package): - setuptools: Uses importlib.metadata.entry_points (stdlib) - urllib3: Only urllib.parse (stdlib) is used Moved to optional [viz] extra: - matplotlib: Only for Diagram.draw() - ipython: Only for Diagram.make_svg() in Jupyter Moved to test dependencies: - faker: Only used in test fixtures - matplotlib, ipython: Needed for diagram tests Install with visualization: pip install datajoint[viz] Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3a1c2db commit 222ad50

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@ dependencies = [
1111
"pymysql>=0.7.2",
1212
"deepdiff",
1313
"pyparsing",
14-
"ipython",
1514
"pandas",
1615
"tqdm",
1716
"networkx",
1817
"pydot",
1918
"fsspec>=2023.1.0",
20-
"matplotlib",
21-
"faker",
22-
"urllib3",
23-
"setuptools",
2419
"pydantic-settings>=2.0.0",
2520
]
2621

@@ -88,6 +83,9 @@ test = [
8883
"pytest",
8984
"pytest-cov",
9085
"requests",
86+
"faker",
87+
"matplotlib",
88+
"ipython",
9189
"graphviz",
9290
"testcontainers[mysql,minio]>=4.0",
9391
"polars>=0.20.0",
@@ -100,10 +98,14 @@ gcs = ["gcsfs>=2023.1.0"]
10098
azure = ["adlfs>=2023.1.0"]
10199
polars = ["polars>=0.20.0"]
102100
arrow = ["pyarrow>=14.0.0"]
101+
viz = ["matplotlib", "ipython"]
103102
test = [
104103
"pytest",
105104
"pytest-cov",
106105
"requests",
106+
"faker",
107+
"matplotlib",
108+
"ipython",
107109
"s3fs>=2023.1.0",
108110
"testcontainers[mysql,minio]>=4.0",
109111
"polars>=0.20.0",

0 commit comments

Comments
 (0)