Skip to content

Commit 966bb6d

Browse files
authored
Merge pull request #919 from adamjstewart/deps/mock
2 parents 25a6bd2 + 38fea0e commit 966bb6d

File tree

5 files changed

+2
-11
lines changed

5 files changed

+2
-11
lines changed

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install dependencies
1717
run: |
1818
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
2020
- name: Build and publish
2121
env:
2222
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

docker/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /tmp/smp/
44

55
COPY ./requirements.txt /tmp/smp/requirements.txt
66
RUN pip install -r requirements.txt
7-
RUN pip install pytest mock
7+
RUN pip install pytest
88

99
COPY . /tmp/smp/
1010
RUN pip install .

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ docs = [
3939
'sphinx-book-theme==1.1.2',
4040
]
4141
test = [
42-
'mock',
4342
'pytest',
4443
'ruff==0.5.2',
4544
]

tests/test_models.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
import sys
2-
import mock
31
import pytest
42
import torch
53

6-
# mock detection module
7-
sys.modules["torchvision._C"] = mock.Mock()
84
import segmentation_models_pytorch as smp # noqa
95

106

tests/test_preprocessing.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import sys
2-
import mock
31
import numpy as np
42

5-
# mock detection module
6-
sys.modules["torchvision._C"] = mock.Mock()
73
import segmentation_models_pytorch as smp # noqa
84

95

0 commit comments

Comments
 (0)