From 82a59416d40c88edb92d89105225864344ffc02a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 13 Jul 2024 08:55:44 +0100 Subject: [PATCH] clarified the networkx/scipy deps --- requirements-dev.txt | 2 +- requirements.in | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index fa026f57d..92f5833d2 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -45,7 +45,7 @@ filelock==3.15.4 # via # -c requirements.txt # virtualenv -fonttools==4.53.0 +fonttools==4.53.1 # via matplotlib identify==2.5.36 # via pre-commit diff --git a/requirements.in b/requirements.in index c093c977d..0dc1f21e0 100644 --- a/requirements.in +++ b/requirements.in @@ -28,9 +28,19 @@ watchdog flake8 importlib_resources -# v3.3 no longer works on python 3.9 +# The proper depdendency is networkx[default], but this brings +# in matplotlib and a bunch of other deps +# https://github.com/networkx/networkx/blob/d7132daa8588f653eacac7a5bae1ee85a183fa43/pyproject.toml#L57 +# We really only need networkx itself and scipy for the repomap. +# Pin below v3.3 to retain python 3.9 compatibility. networkx<3.3 +# This is the one networkx dependency that we need. +# Including it here explicitly because we +# didn't specify networkx[default] above. +# Pin below 1.14 to retain python 3.9 compatibility. +scipy<1.14 + # v0.22.2 seems to break tree-sitter-languages? tree-sitter==0.21.3 @@ -39,5 +49,3 @@ tree-sitter==0.21.3 # Uses importlib-metadata importlib-metadata<8.0.0 -# To retain python 3.9 compatibility -scipy<1.14