File tree Expand file tree Collapse file tree 5 files changed +2
-11
lines changed Expand file tree Collapse file tree 5 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 16
16
- name : Install dependencies
17
17
run : |
18
18
python -m pip install --upgrade pip uv
19
- python -m uv pip install setuptools wheel twine mock
19
+ python -m uv pip install setuptools wheel twine
20
20
- name : Build and publish
21
21
env :
22
22
TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ WORKDIR /tmp/smp/
4
4
5
5
COPY ./requirements.txt /tmp/smp/requirements.txt
6
6
RUN pip install -r requirements.txt
7
- RUN pip install pytest mock
7
+ RUN pip install pytest
8
8
9
9
COPY . /tmp/smp/
10
10
RUN pip install .
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ docs = [
39
39
' sphinx-book-theme==1.1.2' ,
40
40
]
41
41
test = [
42
- ' mock' ,
43
42
' pytest' ,
44
43
' ruff==0.5.2' ,
45
44
]
Original file line number Diff line number Diff line change 1
- import sys
2
- import mock
3
1
import pytest
4
2
import torch
5
3
6
- # mock detection module
7
- sys .modules ["torchvision._C" ] = mock .Mock ()
8
4
import segmentation_models_pytorch as smp # noqa
9
5
10
6
Original file line number Diff line number Diff line change 1
- import sys
2
- import mock
3
1
import numpy as np
4
2
5
- # mock detection module
6
- sys .modules ["torchvision._C" ] = mock .Mock ()
7
3
import segmentation_models_pytorch as smp # noqa
8
4
9
5
You can’t perform that action at this time.
0 commit comments