From 8e51fcbcbdc40f2dbdc04f3c1e4d9e5266ee4e84 Mon Sep 17 00:00:00 2001 From: Isak Samsten Date: Mon, 19 Feb 2024 16:16:31 +0100 Subject: [PATCH] Update Numpy dependency and drop oldest-supported-numpy. --- pyproject.toml | 25 ++++++------------------- requirements.txt | 6 +++--- 2 files changed, 9 insertions(+), 22 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 18088e1b0b..dfafcaa0f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,11 +5,10 @@ readme = "README.md" description = "Time series learning with Python." dynamic = ["version"] license = { file = "LICENSE" } -requires-python = ">=3.8" +requires-python = ">=3.9" dependencies = [ - "numpy>=1.19.2; platform_python_implementation == 'PyPy'", - "numpy>=1.17.3; platform_python_implementation != 'PyPy'", - "scipy>=1.5.0", + "numpy>=1.19.5", + "scipy>=1.6.0", "scikit-learn>=1.3" ] classifiers = [ @@ -61,23 +60,11 @@ where = ["src"] requires = [ "setuptools>=61.0", "wheel", - "cython>=3.0.0", + "cython>=3.0.8", "setuptools_scm[toml]>=6.2", - - # use oldest-supported-numpy which provides the oldest numpy version with - # wheels on PyPI - # - # see: https://github.com/scipy/oldest-supported-numpy/blob/main/setup.cfg - "oldest-supported-numpy; python_version!='3.10' or platform_system!='Windows' or platform_python_implementation=='PyPy'", - - # For CPython 3.10 under Windows, SciPy requires NumPy 1.22.3 while the - # oldest supported NumPy is defined as 1.21.6. We therefore need to force - # it for this specific configuration. For details, see - # https://github.com/scipy/scipy/blob/c58b608c83d30800aceee6a4dab5c3464cb1de7d/pyproject.toml#L38-L41 - "numpy==1.22.3; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'", - + "numpy>=1.25", "scikit-learn>=1.3", - "scipy>=1.5.0", + "scipy>=1.6.0", ] build-backend = "setuptools.build_meta" diff --git a/requirements.txt b/requirements.txt index b2fa65a160..200459b72d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Cython>=0.29.24 -numpy>=1.21.0 +Cython>=3.0.8 +numpy>=1.25.0 scikit-learn>=1.3 -scipy>=1.3.2 +scipy>=1.6.0