Skip to content

Commit d021b7a

Browse files
authored
Make typing-extensions a regular dependency (#1233)
Without this, installing `cluster_tools` from PyPI and then running `python slurm_example.py` results in the following error: ``` (connrecon) [mottales@vcl1062 connrecon]$ python slurm_example.py Traceback (most recent call last): File "/tungstenfs/scratch/gfriedri/mottales/code/connrecon/slurm_example.py", line 5, in <module> import cluster_tools File "/tungstenfs/scratch/gfriedri/mottales/code/connrecon/.pixi/envs/default/lib/python3.11/site-packages/cluster_tools/__init__.py", line 4, in <module> from cluster_tools.executor_protocol import Executor File "/tungstenfs/scratch/gfriedri/mottales/code/connrecon/.pixi/envs/default/lib/python3.11/site-packages/cluster_tools/executor_protocol.py", line 14, in <module> from typing_extensions import ParamSpec ModuleNotFoundError: No module named 'typing_extensions' ```
1 parent 006083f commit d021b7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cluster_tools/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ authors = [{name= "scalable minds", email="[email protected]"}]
66
readme = "README.md"
77
license = {text = "MIT"}
88
requires-python = ">=3.9"
9+
dependencies = [
10+
"typing-extensions ~=4.12.0",
11+
]
912

1013
[project.urls]
1114
Repository = "https://github.com/scalableminds/webknossos-libs"
@@ -19,7 +22,6 @@ all=["cluster_tools[kubernetes]", "cluster_tools[dask]"]
1922

2023
[tool.uv]
2124
dev-dependencies = [
22-
"typing-extensions ~=4.12.0",
2325
"icecream ~=2.1.1",
2426
"mypy ~=1.0.0",
2527
"pytest ~=8.3.3",

0 commit comments

Comments
 (0)