From 0d3cb1b970f69dfa7ce120b229f2f462a0496f90 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Mon, 17 Jun 2024 13:44:57 +0100 Subject: [PATCH 1/2] fix(py3.13): `logger.warn` -> `logger.warning` --- neuroml/nml/generatedssupersuper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neuroml/nml/generatedssupersuper.py b/neuroml/nml/generatedssupersuper.py index dacfc20..b9559c3 100644 --- a/neuroml/nml/generatedssupersuper.py +++ b/neuroml/nml/generatedssupersuper.py @@ -98,7 +98,7 @@ def add(self, obj=None, hint=None, force=False, validate=True, **kwargs): if neuroml.build_time_validation.ENABLED and validate: self.validate() else: - logger.warn("Build time validation is disabled.") + logger.warning("Build time validation is disabled.") return obj @classmethod @@ -157,7 +157,7 @@ def component_factory(cls, component_type, validate=True, **kwargs): if neuroml.build_time_validation.ENABLED and validate: comp.validate() else: - logger.warn("Build time validation is disabled.") + logger.warning("Build time validation is disabled.") return comp def __add(self, obj, member, force=False): From 46bcd6f6c8b0b549121bf1fe803543724505433d Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Mon, 17 Jun 2024 13:48:48 +0100 Subject: [PATCH 2/2] feat: use `numpy<=2.0.0` until other libraries have caught up The one I know so far: - pytables: https://github.com/PyTables/PyTables/issues/1083 --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 0f1081a..3b0a038 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,7 +28,7 @@ install_requires = lxml six networkx - numpy + numpy<2.0.0 tables>=3.3.0 typing; python_version<"3.5" natsort @@ -53,7 +53,7 @@ dev = wheel generateds >= 2.20a; python_version >= '3.0' cython - numpy + numpy<2.0.0 networkx flake8 pytest