python: Use NumPy 2.0+

Old versions of NumPy are increasingly difficult to install on newer
Python and OS versions. This changes the minimum version of NumPy to
2.0 (with a very broad range of allowed versions).
This commit is contained in:
Aarni Koskela 2026-02-09 14:13:50 +02:00
parent f5e7734ff2
commit 0b695d240d
7 changed files with 829 additions and 768 deletions

1585
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,7 @@ classifiers = [
[tool.poetry.dependencies]
python = ">=3.9"
numpy = "^1.25.0"
numpy = ">=2.0,<3.0"
sentencepiece = ">=0.1.98,<0.3.0"
transformers = ">=4.35.2,<5.0.0"
protobuf = ">=4.21.0,<5.0.0"

View File

@ -1,4 +1,4 @@
numpy~=1.26.4
numpy~=2.0
sentencepiece>=0.1.98,<0.3.0
transformers>=4.57.1,<5.0.0

View File

@ -1,3 +1,3 @@
numpy~=1.26.4
numpy~=2.0
PySide6~=6.9.0
gguf>=0.17.0

View File

@ -1,5 +1,5 @@
datasets~=3.2.0
matplotlib~=3.10.0
numpy~=1.26.4
numpy~=2.0
requests~=2.32.3
tqdm~=4.67.1

View File

@ -2,7 +2,7 @@ aiohttp~=3.9.3
pytest~=8.3.3
huggingface_hub>=0.34.0,<1.0
matplotlib~=3.10.0
numpy~=1.26.4
numpy~=2.0
openai~=2.14.0
pandas~=2.2.3
prometheus-client~=0.20.0

View File

@ -1,7 +1,7 @@
aiohttp~=3.9.3
pytest~=8.3.3
huggingface_hub>=0.34.0,<1.0
numpy~=1.26.4
numpy~=2.0
openai~=2.14.0
prometheus-client~=0.20.0
requests~=2.32.3