From 38f04f3eae2a94fdd8217eac02c90cafb8bf94e1 Mon Sep 17 00:00:00 2001 From: Ben Clifford Date: Sun, 5 Jan 2025 18:20:54 +0000 Subject: [PATCH] Upgrade networkx to support Numpy 2 to support Python 3.13 This is a piece of PR #3646 to support Python 3.13 networkx 3.2 is the first version to support numpy 2. Later versions do not support Python 3.9. --- setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index bed98934e7..f5aadb1e2e 100755 --- a/setup.py +++ b/setup.py @@ -11,8 +11,13 @@ 'sqlalchemy>=1.4,<2' ], 'visualization' : [ - 'pydot', - 'networkx>=2.5,<2.6', + # this pydot bound is copied from networkx's pyproject.toml, + # version 3.2 (aa2de1adecea09f7b86ff6093b212ca86f22b3ef), + # because networkx[extra] installs quite a lot of extra stuff + # that needs more OS dependencies in addition to pydot. + 'pydot>=1.4.2', + + 'networkx>=3.2,<3.3', 'Flask>=1.0.2', 'flask_sqlalchemy', 'pandas<2.2',