Skip to content

Commit

Permalink
Allow networkx 3.3 now that pydot issue has been fixed (networkx/netw…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Apr 15, 2024
1 parent 8dee29c commit 4b2ddac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions cubed/core/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,9 @@ def visualize(

del d["target"]

d["label"] = label.strip()
d["tooltip"] = tooltip.strip()
# quote strings with colons in them (https://github.com/pydot/pydot/issues/258)
d["label"] = '"' + label.strip() + '"'
d["tooltip"] = '"' + tooltip.strip() + '"'

if "name" in d: # pydot already has name
del d["name"]
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fsspec
lithops[aws] >= 2.7.0
modal-client
mypy_extensions # for rechunker
networkx < 2.8.3 # https://github.com/networkx/networkx/pull/5667
networkx != 2.8.3, != 2.8.4, != 2.8.5, != 2.8.6, != 2.8.7, != 2.8.8, != 3.0.*, != 3.1.*, != 3.2.*
numpy >= 1.22
pydot
pytest
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies = [
"donfig",
"fsspec",
"mypy_extensions", # for rechunker
"networkx < 2.8.3",
"networkx != 2.8.3, != 2.8.4, != 2.8.5, != 2.8.6, != 2.8.7, != 2.8.8, != 3.0.*, != 3.1.*, != 3.2.*",
"numpy >= 1.22",
"tenacity",
"toolz",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aiostream
array-api-compat
fsspec
mypy_extensions # for rechunker
networkx < 2.8.3
networkx != 2.8.3, != 2.8.4, != 2.8.5, != 2.8.6, != 2.8.7, != 2.8.8, != 3.0.*, != 3.1.*, != 3.2.*
numpy >= 1.22
tenacity
toolz
Expand Down

0 comments on commit 4b2ddac

Please sign in to comment.