Skip to content

Commit

Permalink
Restrict numpy to <2
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Jun 17, 2024
1 parent b209712 commit 31bc260
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pde/tools/resources/requirements_basic.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# These are the basic requirements for the package
matplotlib>=3.1
numba>=0.59
numpy>=1.22
numpy>=1.22,<2
scipy>=1.10
sympy>=1.9
tqdm>=4.66
2 changes: 1 addition & 1 deletion pde/tools/resources/requirements_full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ffmpeg-python>=0.2
h5py>=2.10
matplotlib>=3.1
numba>=0.59
numpy>=1.22
numpy>=1.22,<2
pandas>=2
py-modelrunner>=0.18
rocket-fft>=0.2.4
Expand Down
2 changes: 1 addition & 1 deletion pde/tools/resources/requirements_mpi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ matplotlib>=3.1
mpi4py>=3
numba>=0.59
numba-mpi>=0.22
numpy>=1.22
numpy>=1.22,<2
pandas>=2
scipy>=1.10
sympy>=1.9
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ classifiers = [
]

# Requirements for setuptools
dependencies = ["matplotlib>=3.1", "numba>=0.59", "numpy>=1.22", "scipy>=1.10", "sympy>=1.9", "tqdm>=4.66"]
dependencies = ["matplotlib>=3.1", "numba>=0.59", "numpy>=1.22,<2", "scipy>=1.10", "sympy>=1.9", "tqdm>=4.66"]

[project.optional-dependencies]
io = ["h5py>=2.10", "pandas>=2", "ffmpeg-python>=0.2"]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
matplotlib>=3.1
numba>=0.59
numpy>=1.22
numpy>=1.22,<2
scipy>=1.10
sympy>=1.9
tqdm>=4.66
2 changes: 1 addition & 1 deletion scripts/create_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def line(self, relation: str = ">=") -> str:
),
Requirement(
name="numpy",
version_min="1.22",
version_min="1.22,<2",
usage="Handling numerical data",
essential=True,
),
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements_full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ffmpeg-python>=0.2
h5py>=2.10
matplotlib>=3.1
numba>=0.59
numpy>=1.22
numpy>=1.22,<2
pandas>=2
py-modelrunner>=0.18
rocket-fft>=0.2.4
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements_min.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# These are the minimal requirements used to test compatibility
matplotlib~=3.1
numba~=0.59
numpy~=1.22
numpy~=1.22,<2
scipy~=1.10
sympy~=1.9
tqdm~=4.66
2 changes: 1 addition & 1 deletion tests/requirements_mpi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ matplotlib>=3.1
mpi4py>=3
numba>=0.59
numba-mpi>=0.22
numpy>=1.22
numpy>=1.22,<2
pandas>=2
scipy>=1.10
sympy>=1.9
Expand Down

0 comments on commit 31bc260

Please sign in to comment.