Skip to content

Commit 0f5fc57

Browse files
Add Dependabot manifest and pin deps (#53)
* Add Dependabot manifest * Pin python deps * Unfold directories in dependabot config * Add contrib guide * Allow unsafe setuptools * Adding patchelf and cpu-only torch
1 parent 240a527 commit 0f5fc57

File tree

12 files changed

+1167
-24
lines changed

12 files changed

+1167
-24
lines changed

.github/actions/compile-models/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ runs:
3838
shell: bash
3939
run: |
4040
python3 -m pip install --upgrade pip
41-
python3 -m pip install -r ${{ github.action_path }}/requirements.txt
41+
python3 -m pip install --require-hashes -r ${{ github.action_path }}/requirements.txt
4242
4343
- name: Prepare OpenVINO environment
4444
if: ${{ inputs.compiler-type == 'MLIR' }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--extra-index-url https://download.pytorch.org/whl/cpu
2+
3+
# Core
4+
transformers>=4.51.1
5+
torch==2.6.0+cpu
6+
torchvision==0.21.0+cpu
7+
onnx>=1.17.0
8+
onnxruntime>=1.21.0
9+
onnxruntime-tools>=1.7.0
10+
11+
# Hugging Face Hub
12+
huggingface_hub>=0.30.2
13+
14+
# Utils
15+
pillow>=11.1.0
16+
requests>=2.32.3
17+
tqdm>=4.67.1
18+
accelerate>=1.6.0

.github/actions/compile-models/requirements.txt

Lines changed: 744 additions & 14 deletions
Large diffs are not rendered by default.

.github/actions/download-models/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ runs:
2222
shell: bash
2323
run: |
2424
python3 -m pip install --upgrade pip
25-
python3 -m pip install -r ${{ github.action_path }}/requirements.txt
25+
python3 -m pip install --require-hashes -r ${{ github.action_path }}/requirements.txt
2626
2727
- name: Run downloader script
2828
shell: bash
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
huggingface_hub>=0.30.2
2+
hf_xet>=1.0.2
3+
requests>=2.32.3

.github/actions/download-models/requirements.txt

Lines changed: 211 additions & 3 deletions
Large diffs are not rendered by default.

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
8+
- package-ecosystem: "pip"
9+
directory: "/.github"
10+
schedule:
11+
interval: "weekly"
12+
13+
- package-ecosystem: "pip"
14+
directory: "/.github/actions/compile-models"
15+
schedule:
16+
interval: "weekly"
17+
18+
- package-ecosystem: "pip"
19+
directory: "/.github/actions/download-models"
20+
schedule:
21+
interval: "weekly"
22+
23+
- package-ecosystem: "pip"
24+
directory: "/scripts"
25+
schedule:
26+
interval: "weekly"

.github/requirements-dev.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
setuptools>=70.1,<75.9
2+
wheel>=0.38.1
3+
build<1.3
4+
patchelf<=0.17.2.1; sys_platform == 'linux' and platform_machine == 'x86_64'

.github/requirements-dev.txt

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.13
3+
# by the following command:
4+
#
5+
# pip-compile --allow-unsafe --generate-hashes .github/requirements-dev.in
6+
#
7+
build==1.2.2.post1 \
8+
--hash=sha256:1d61c0887fa860c01971625baae8bdd338e517b836a2f70dd1f7aa3a6b2fc5b5 \
9+
--hash=sha256:b36993e92ca9375a219c99e606a122ff365a760a2d4bba0caa09bd5278b608b7
10+
# via -r .github/requirements-dev.in
11+
colorama==0.4.6 \
12+
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
13+
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
14+
# via build
15+
packaging==24.2 \
16+
--hash=sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759 \
17+
--hash=sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f
18+
# via build
19+
patchelf==0.17.2.1; \
20+
sys_platform == 'linux' and platform_machine == 'x86_64' \
21+
--hash=sha256:3c8d58f0e4c1929b1c7c45ba8da5a84a8f1aa6a82a46e1cfb2e44a4d40f350e5 \
22+
--hash=sha256:a6eb0dd452ce4127d0d5e1eb26515e39186fa609364274bc1b0b77539cfa7031 \
23+
--hash=sha256:a9e6ebb0874a11f7ed56d2380bfaa95f00612b23b15f896583da30c2059fcfa8 \
24+
--hash=sha256:ccb266a94edf016efe80151172c26cff8c2ec120a57a1665d257b0442784195d \
25+
--hash=sha256:d1a9bc0d4fd80c038523ebdc451a1cce75237cfcc52dbd1aca224578001d5927 \
26+
--hash=sha256:f47b5bdd6885cfb20abdd14c707d26eb6f499a7f52e911865548d4aa43385502 \
27+
--hash=sha256:fc329da0e8f628bd836dfb8eaf523547e342351fa8f739bf2b3fe4a6db5a297c
28+
# via -r .github/requirements-dev.in
29+
pyproject-hooks==1.2.0 \
30+
--hash=sha256:1e859bd5c40fae9448642dd871adf459e5e2084186e8d2c2a79a824c970da1f8 \
31+
--hash=sha256:9e5c6bfa8dcc30091c74b0cf803c81fdd29d94f01992a7707bc97babb1141913
32+
# via build
33+
wheel==0.45.1 \
34+
--hash=sha256:661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729 \
35+
--hash=sha256:708e7481cc80179af0e556bbf0cc00b8444c7321e2700b8d8580231d13017248
36+
# via -r .github/requirements-dev.in
37+
38+
# The following packages are considered to be unsafe in a requirements file:
39+
setuptools==75.8.2 \
40+
--hash=sha256:4880473a969e5f23f2a2be3646b2dfd84af9028716d398e46192f84bc36900d2 \
41+
--hash=sha256:558e47c15f1811c1fa7adbd0096669bf76c1d3f433f58324df69f3f5ecac4e8f
42+
# via -r .github/requirements-dev.in

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "CodeQL Advanced"
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- develop

0 commit comments

Comments
 (0)