Skip to content

Commit 4fddc45

Browse files
authored
fix: numpy with python 3.13 support (#39)
* pin numpy for py 3.13 support Signed-off-by: Michele Dolfi <[email protected]> * python 3.13 is supported from numpy 2.1.0 Signed-off-by: Michele Dolfi <[email protected]> * activate 3.13 CI Signed-off-by: Michele Dolfi <[email protected]> * remove py 3.13 from CI tests. Pytorch is still missing compatibility Signed-off-by: Michele Dolfi <[email protected]> --------- Signed-off-by: Michele Dolfi <[email protected]>
1 parent 83baebe commit 4fddc45

File tree

2 files changed

+76
-6
lines changed

2 files changed

+76
-6
lines changed

poetry.lock

Lines changed: 72 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ torchvision = [
3030
{markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'", version = "^0"},
3131
{markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", version = "~0.17.2"}
3232
]
33-
numpy = "^1.24.4"
33+
numpy = [
34+
{ version = "^2.1.0", markers = 'python_version >= "3.13"' },
35+
{ version = "^1.24.4", markers = 'python_version < "3.13"' },
36+
]
3437
lxml = "^4.9.1"
3538
jsonlines = "^3.1.0"
3639
Pillow = "^10.0.0"

0 commit comments

Comments
 (0)