Skip to content

Commit

Permalink
detect: pin numpy to prevent usage of 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jun 16, 2024
1 parent 14a9f95 commit dc88e0b
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 30 deletions.
4 changes: 2 additions & 2 deletions plugins/coreml/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/coreml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.63"
"version": "0.1.64"
}
1 change: 1 addition & 0 deletions plugins/coreml/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# must ensure numpy is pinned to prevent dependencies with an unpinned numpy from pulling numpy>=2.0.
numpy==1.26.4
coremltools==7.1
Pillow==10.3.0
4 changes: 2 additions & 2 deletions plugins/onnx/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/onnx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.100"
"version": "0.1.101"
}
2 changes: 1 addition & 1 deletion plugins/onnx/src/requirements.optional.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
opencv-python==4.9.0.80
opencv-python==4.10.0.82
4 changes: 3 additions & 1 deletion plugins/onnx/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# uncomment to require cuda 12, but most stuff is still targetting cuda 11.
# must ensure numpy is pinned to prevent dependencies with an unpinned numpy from pulling numpy>=2.0.
numpy==1.26.4# uncomment to require cuda 12, but most stuff is still targetting cuda 11.

# however, stuff targetted for cuda 11 can still run on cuda 12.
# --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
onnxruntime-gpu; 'linux' in sys_platform and platform_machine == 'x86_64'
Expand Down
4 changes: 2 additions & 2 deletions plugins/opencv/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/opencv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.0.90"
"version": "0.0.91"
}
16 changes: 4 additions & 12 deletions plugins/opencv/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# plugin
numpy>=1.16.2

# must ensure numpy is pinned to prevent dependencies with an unpinned numpy from pulling numpy>=2.0.
numpy==1.26.4
imutils>=0.5.0

# locked to version because 4.8.0.76 is broken.
# todo: check newer versions.
opencv-python==4.8.0.74

# pillow-simd is available on x64 linux
# pillow-simd confirmed not building with arm64 linux or apple silicon
Pillow>=5.4.1; 'linux' not in sys_platform or platform_machine != 'x86_64'
pillow-simd; 'linux' in sys_platform and platform_machine == 'x86_64'
opencv-python==4.10.0.82
Pillow==10.3.0
4 changes: 2 additions & 2 deletions plugins/openvino/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/openvino/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.102"
"version": "0.1.103"
}
2 changes: 1 addition & 1 deletion plugins/openvino/src/requirements.optional.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
opencv-python==4.9.0.80
opencv-python==4.10.0.82
2 changes: 2 additions & 0 deletions plugins/openvino/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# must ensure numpy is pinned to prevent dependencies with an unpinned numpy from pulling numpy>=2.0.
numpy==1.26.4
openvino==2024.1.0
Pillow==10.3.0
4 changes: 2 additions & 2 deletions plugins/tensorflow-lite/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/tensorflow-lite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.61"
"version": "0.1.62"
}
2 changes: 2 additions & 0 deletions plugins/tensorflow-lite/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
--extra-index-url https://google-coral.github.io/py-repo/
# must ensure numpy is pinned to prevent dependencies with an unpinned numpy from pulling numpy>=2.0.
numpy==1.26.4
pycoral~=2.0
tflite-runtime==2.5.0.post1
Pillow==10.3.0

0 comments on commit dc88e0b

Please sign in to comment.