Skip to content

Commit

Permalink
Update Numpy dependency and drop oldest-supported-numpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaksamsten committed Feb 19, 2024
1 parent 56a4308 commit 8e51fcb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 22 deletions.
25 changes: 6 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8e51fcb

Please sign in to comment.