Skip to content

Commit

Permalink
Merge pull request #919 from adamjstewart/deps/mock
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart authored Sep 6, 2024
2 parents 25a6bd2 + 38fea0e commit 966bb6d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip uv
python -m uv pip install setuptools wheel twine mock
python -m uv pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /tmp/smp/

COPY ./requirements.txt /tmp/smp/requirements.txt
RUN pip install -r requirements.txt
RUN pip install pytest mock
RUN pip install pytest

COPY . /tmp/smp/
RUN pip install .
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ docs = [
'sphinx-book-theme==1.1.2',
]
test = [
'mock',
'pytest',
'ruff==0.5.2',
]
Expand Down
4 changes: 0 additions & 4 deletions tests/test_models.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import sys
import mock
import pytest
import torch

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


Expand Down
4 changes: 0 additions & 4 deletions tests/test_preprocessing.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import sys
import mock
import numpy as np

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


Expand Down

0 comments on commit 966bb6d

Please sign in to comment.