Skip to content

Commit

Permalink
[brief] Pin the minimum version of Numpy to 2.0.0.
Browse files Browse the repository at this point in the history
[detailed]
- With the release of PyTorch 2.4.1, we can now safely pin the numpy
  version across all platforms.
  • Loading branch information
marovira committed Sep 5, 2024
1 parent c3d427e commit 9aad1f5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ dependencies = [
"tqdm>=4.66.2",
"opencv-python>=4.10.0.84",
"tensorboard>=2.17.1",
"torch>=2.4.0",
"torchvision>=0.19.0",
"torch>=2.4.1",
"torchvision>=0.19.1",
"onnx>=1.16.1",
"onnxruntime>=1.19.0",
"matplotlib>=3.8.4",
"numpy<2.0.0; sys_platform=='win32'",
"numpy" # <- Pin this to >= 2.0.0 once torch 2.4.1 has been released.
"numpy>=2.0.0",
]

dynamic = ["version"]
Expand Down
7 changes: 3 additions & 4 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
build>=1.2.1
matplotlib>=3.8.4
mypy>=1.8.0
numpy
numpy<2.0.0; sys_platform=='win32'
numpy>=2.0.0
onnx>=1.16.1
onnxruntime>=1.19.0
opencv-python>=4.10.0.84
optuna>=3.6.1
pytest>=8.1.1
ruff>=0.3.4
tensorboard>=2.17.1
torch>=2.4.0
torchvision>=0.19.0
torch>=2.4.1
torchvision>=0.19.1
tqdm>=4.66.2
types-Pillow>=10.2.0.20240311
types-tqdm>=4.66.0.20240106
7 changes: 3 additions & 4 deletions requirements/default.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Generated via tools/generate_requirements.py and pre-commit hook.
# Do not edit this file; modify pyproject.toml instead.
matplotlib>=3.8.4
numpy
numpy<2.0.0; sys_platform=='win32'
numpy>=2.0.0
onnx>=1.16.1
onnxruntime>=1.19.0
opencv-python>=4.10.0.84
tensorboard>=2.17.1
torch>=2.4.0
torchvision>=0.19.0
torch>=2.4.1
torchvision>=0.19.1
tqdm>=4.66.2
7 changes: 3 additions & 4 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ build>=1.2.1
furo>=2024.5.6
matplotlib>=3.8.4
mypy>=1.8.0
numpy
numpy<2.0.0; sys_platform=='win32'
numpy>=2.0.0
onnx>=1.16.1
onnxruntime>=1.19.0
opencv-python>=4.10.0.84
Expand All @@ -16,8 +15,8 @@ ruff>=0.3.4
sphinx-autoapi>=3.1.1
sphinx>=7.3.7
tensorboard>=2.17.1
torch>=2.4.0
torchvision>=0.19.0
torch>=2.4.1
torchvision>=0.19.1
tqdm>=4.66.2
twine>=5.0.0
types-Pillow>=10.2.0.20240311
Expand Down
7 changes: 3 additions & 4 deletions requirements/tune.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Generated via tools/generate_requirements.py and pre-commit hook.
# Do not edit this file; modify pyproject.toml instead.
matplotlib>=3.8.4
numpy
numpy<2.0.0; sys_platform=='win32'
numpy>=2.0.0
onnx>=1.16.1
onnxruntime>=1.19.0
opencv-python>=4.10.0.84
optuna>=3.6.1
tensorboard>=2.17.1
torch>=2.4.0
torchvision>=0.19.0
torch>=2.4.1
torchvision>=0.19.1
tqdm>=4.66.2

0 comments on commit 9aad1f5

Please sign in to comment.