Modify numpy dependency for Python version compatibility

Updated numpy dependency to support Python 3.13 and above.
This commit is contained in:
Sermet Pekin 2025-10-21 09:54:01 +03:00 committed by GitHub
parent 29d53aa64d
commit 73d8ee9a3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,9 @@ dependencies = [
"datasets>=4.0.0",
"fastapi>=0.117.1",
"files-to-prompt>=0.6",
"numpy==1.26.4",
#"numpy==1.26.4", # this restriction was causing a failure for numpy on py3.13
"numpy>=2.3.0; python_version>='3.13'",
"numpy>=1.26.4; python_version<'3.13'",
"psutil>=7.1.0",
"regex>=2025.9.1",
"setuptools>=80.9.0",
@ -59,4 +61,4 @@ explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
explicit = true