From 1342925b35a7d53b87186b7f29da4363d1f9bb0a Mon Sep 17 00:00:00 2001 From: "rafael.lyra" Date: Wed, 17 Jun 2026 08:50:54 -0300 Subject: [PATCH 1/2] Update numpy dependencies on mathphys This was needed to be able to install the package with python=12 and setuptools=82. --- pyproject.toml | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5a06ade..89086ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=44"] +requires = ["setuptools>=82"] build-backend = "setuptools.build_meta" [project] @@ -14,7 +14,7 @@ maintainers = [ description = "LNLS Math and Physics Utilities" readme = "README.md" dynamic = ["version", "dependencies"] -requires-python = ">=3.4" +requires-python = ">=3.12" classifiers = [ "Intended Audience :: Science/Research", "Programming Language :: Python", diff --git a/requirements.txt b/requirements.txt index 5fb8af6..dba542d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ importlib-metadata -numpy>=1.18,<=1.23 +numpy>=1.26.0 matplotlib>=3.1.2 h5py>=3.1.0 From a972f9243858419a5ef76f691c0f5d5af4e3b575 Mon Sep 17 00:00:00 2001 From: "rafael.lyra" Date: Wed, 17 Jun 2026 08:51:06 -0300 Subject: [PATCH 2/2] Update numpy namespaces Update numpy namespace v2 breaking changes. --- mathphys/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mathphys/functions.py b/mathphys/functions.py index 29f9daa..c5cb1e8 100644 --- a/mathphys/functions.py +++ b/mathphys/functions.py @@ -350,7 +350,7 @@ def flatten(x): # ------------------------- HELPER METHODS ------------------------------------ _BUILTINTYPES = (int, float, complex, str, bytes, bool) _BUILTINNAMES = {typ.__name__ for typ in _BUILTINTYPES} -_NPTYPES = (_np.int_, _np.float_, _np.complex_, _np.bool_) +_NPTYPES = (_np.int_, _np.float64, _np.complex128, _np.bool_) def _save_recursive_hdf5(fil, path, obj, compress):