File tree Expand file tree Collapse file tree 11 files changed +67
-45
lines changed Expand file tree Collapse file tree 11 files changed +67
-45
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,14 @@ updates:
5
5
schedule :
6
6
interval : " daily"
7
7
- package-ecosystem : " pip"
8
- directory : " /"
8
+ directory : " /requirements "
9
9
schedule :
10
10
interval : " daily"
11
- # Allow up to 2 open pull requests at a time
12
- open-pull-requests-limit : 2
13
- allow :
14
- - dependency-name : " timm"
15
- dependency-type : " all"
11
+ groups :
12
+ torch :
13
+ patterns :
14
+ - " torch"
15
+ - " torchvision"
16
+ ignore :
17
+ - dependency-name : " setuptools"
18
+ update-types : ["version-update:semver-patch"]
Original file line number Diff line number Diff line change 21
21
with :
22
22
python-version : " 3.11"
23
23
- name : Install dependencies
24
- run : |
25
- python -m pip install --upgrade pip uv
26
- python -m uv pip install ruff==0.5.2
24
+ run : python -m pip install -r requirements/test.txt
27
25
# Update output format to enable automatic inline annotations.
28
26
- name : Run Ruff Linter
29
27
run : ruff check --output-format=github
@@ -32,18 +30,26 @@ jobs:
32
30
33
31
test :
34
32
runs-on : ubuntu-latest
35
- needs : [style]
36
33
steps :
37
34
- uses : actions/checkout@v4
38
35
- name : Set up Python ${{ matrix.python-version }}
39
36
uses : actions/setup-python@v5
40
37
with :
41
- python-version : 3.9
38
+ python-version : " 3.11 "
42
39
- name : Install dependencies
43
- run : |
44
- python -m pip install --upgrade pip uv
45
- python -m uv pip install torch==2.3.1+cpu torchvision==0.18.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
46
- make install_dev
40
+ run : python -m pip install -r requirements/required.txt -r requirements/test.txt
47
41
- name : Test with pytest
48
- run : make test
42
+ run : pytest
49
43
44
+ minimum :
45
+ runs-on : ubuntu-latest
46
+ steps :
47
+ - uses : actions/checkout@v4
48
+ - name : Set up Python ${{ matrix.python-version }}
49
+ uses : actions/setup-python@v5
50
+ with :
51
+ python-version : " 3.9"
52
+ - name : Install dependencies
53
+ run : python -m pip install -r requirements/minimum.old -r requirements/test.txt
54
+ - name : Test with pytest
55
+ run : pytest
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ sphinx:
19
19
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20
20
python :
21
21
install :
22
- - requirements : docs/ requirements.txt
22
+ - requirements : requirements/docs .txt
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,30 +17,30 @@ classifiers = [
17
17
' Programming Language :: Python :: Implementation :: PyPy' ,
18
18
]
19
19
dependencies = [
20
- ' efficientnet-pytorch==0.7 .1' ,
21
- ' huggingface-hub>=0.24.6 ' ,
22
- ' numpy' ,
23
- ' pillow' ,
24
- ' pretrainedmodels== 0.7.4 ' ,
25
- ' six' ,
26
- ' timm== 0.9.7 ' ,
27
- ' torch' ,
28
- ' torchvision>=0.5 ' ,
29
- ' tqdm' ,
20
+ ' efficientnet-pytorch>=0.6 .1' ,
21
+ ' huggingface-hub>=0.24' ,
22
+ ' numpy>=1.19.3 ' ,
23
+ ' pillow>=8 ' ,
24
+ ' pretrainedmodels>= 0.7.1 ' ,
25
+ ' six>=1.5 ' ,
26
+ ' timm>= 0.9' ,
27
+ ' torch>=1.8 ' ,
28
+ ' torchvision>=0.9 ' ,
29
+ ' tqdm>=4.42.1 ' ,
30
30
]
31
31
dynamic = [' version' ]
32
32
33
33
[project .optional-dependencies ]
34
34
docs = [
35
35
' autodocsumm' ,
36
36
' huggingface-hub' ,
37
- ' six==1.15.0 ' ,
38
- ' sphinx<7 ' ,
39
- ' sphinx-book-theme==1.1.2 ' ,
37
+ ' six' ,
38
+ ' sphinx' ,
39
+ ' sphinx-book-theme' ,
40
40
]
41
41
test = [
42
42
' pytest' ,
43
- ' ruff==0.5.2 ' ,
43
+ ' ruff' ,
44
44
]
45
45
46
46
[project .urls ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ autodocsumm==0.2.13
2
+ huggingface-hub==0.24.6
3
+ six==1.16.0
4
+ sphinx==8.0.2
5
+ sphinx-book-theme==1.1.3
Original file line number Diff line number Diff line change
1
+ efficientnet-pytorch==0.6.1
2
+ huggingface-hub==0.24.0
3
+ numpy==1.19.3
4
+ pillow==8.0.0
5
+ pretrainedmodels==0.7.1
6
+ six==1.5.0
7
+ timm==0.9.0
8
+ torch==1.8.0
9
+ torchvision==0.9.0
10
+ tqdm==4.42.1
Original file line number Diff line number Diff line change
1
+ efficientnet-pytorch==0.7.1
2
+ huggingface_hub==0.24.6
3
+ numpy==2.1.1
4
+ pillow==10.4.0
5
+ pretrainedmodels==0.7.4
6
+ six==1.16.0
7
+ timm==1.0.9
8
+ torch==2.4.1
9
+ torchvision==0.19.1
10
+ tqdm==4.66.5
Original file line number Diff line number Diff line change
1
+ pytest==8.3.3
2
+ ruff==0.6.4
You can’t perform that action at this time.
0 commit comments