Visitar URL original
update pyproject.toml and uv.lock. Only declare np upperbound when re… · DeepLabCut/DeepLabCut@f010715 · GitHub
Skip to content

Commit f010715

Browse files
committed
update pyproject.toml and uv.lock. Only declare np upperbound when required
1 parent 8163084 commit f010715

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

‎pyproject.toml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ docs = [
8181
]
8282
fmpose3d = [ "fmpose3d>=0.0.8" ]
8383
# Use only one of [tf, tf-cu11, tf-cu12, tf-latest]. Do not combine extras.
84+
# NumPy <2 is declared where TF itself does not. TF 2.15–2.18 cap NumPy themselves.
8485
tf = [
8586
"imgaug>=0.4",
86-
"numpy>=1.22.4,<2",
87+
# py<3.12 may resolve tensorflow 2.14.0 (no NumPy upper bound on PyPI).
88+
"numpy>=1.22.4,<2; python_version<'3.12'",
8789
"protobuf<7",
8890
"tensorflow>=2.12,<2.16; python_version<'3.12'",
8991
"tensorflow>=2.16.1,<2.18; python_version>='3.12'",
@@ -97,6 +99,7 @@ tf = [
9799
]
98100
tf-cu11 = [
99101
"imgaug>=0.4",
102+
# tensorflow==2.14 resolves to 2.14.0, which has no NumPy upper bound.
100103
"numpy>=1.22.4,<2",
101104
"protobuf<7",
102105
"tensorflow==2.14",
@@ -132,6 +135,8 @@ tf-latest = [
132135
# apple_mchips is kept for older systems, prefer [tf] in new projects.
133136
apple_mchips = [
134137
"imgaug>=0.4; platform_system=='Darwin'",
138+
# Same TF 2.14.0 hole as [tf] on py<3.12.
139+
"numpy>=1.22.4,<2; platform_system=='Darwin' and python_version<'3.12'",
135140
"protobuf<7; platform_system=='Darwin'",
136141
"tensorflow>=2.12,<2.15; platform_system=='Darwin' and python_version<'3.12'",
137142
"tensorflow>=2.15,<2.18; platform_system=='Darwin' and python_version>='3.12'",

‎uv.lock‎

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

0 commit comments

Comments
 (0)