Skip to content

Commit 440bcff

Browse files
Merge pull request #2146 from VWS-Python/numpy-pin-windows
Pin numpy on windows to avoid https://github.com/pytorch/pytorch/issu…
2 parents 7d17637 + 60860db commit 440bcff

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pyproject.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ dynamic = [
3737
]
3838
dependencies = [
3939
"flask",
40+
# Pin numpy to avoid:
41+
# https://github.com/pytorch/pytorch/issues/128860
42+
# When we remove this, also remove the deptry ignore.
43+
"numpy<2.0.0; sys_platform=='win32'",
4044
"pillow",
4145
"piq",
4246
"pydantic-settings",
@@ -305,10 +309,13 @@ pep621_dev_dependency_groups = [
305309
]
306310

307311
[tool.deptry.per_rule_ignores]
308-
# tzdata is needed on Windows for zoneinfo to work.
309-
# See https://docs.python.org/3/library/zoneinfo.html#data-sources.
310312
DEP002 = [
313+
# tzdata is needed on Windows for zoneinfo to work.
314+
# See https://docs.python.org/3/library/zoneinfo.html#data-sources.
311315
"tzdata",
316+
# numpy is pinned to avoid:
317+
# https://github.com/pytorch/pytorch/issues/128860.
318+
"numpy",
312319
]
313320

314321
[tool.pyproject-fmt]

0 commit comments

Comments
 (0)