setup.cfg: tests: try to remove more dependencies

This commit is contained in:
Saugat Pachhai (सौगात)
2022-03-31 13:36:43 +05:45
committed by Saugat Pachhai
parent dc0bc0c535
commit 565a813e2a
4 changed files with 9 additions and 18 deletions
+1
View File
@@ -30,6 +30,7 @@ jobs:
- name: Install requirements
run: |
pip install --upgrade pip setuptools wheel
pip install collective.checkdocs==0.2
pip install ".[dev]" pre-commit
- name: Check README
run: python setup.py checkdocs
+1 -1
View File
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=48", "wheel", "setuptools_scm[toml]>=6.3.1"]
requires = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1", "setuptools_scm_git_archive==1.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
+4 -7
View File
@@ -121,7 +121,6 @@ webdhfs_kerberos = requests-kerberos==0.14.0
terraform = tpi[ssh]>=2.1.0
tests =
%(terraform)s
wheel==0.37.1
dvc_ssh==0.0.1a0
# Test requirements
pytest==7.1.1
@@ -135,9 +134,6 @@ tests =
mock==4.0.3
pytest-timeout==2.1.0
filelock==3.6.0
dvclive[image]==0.6.0
collective.checkdocs==0.2
pydocstyle==6.1.1
# pylint requirements
pylint==2.12.2
# we use this to suppress pytest-related false positives in our tests.
@@ -147,11 +143,12 @@ tests =
pylint-plugin-utils==0.7
# type-checking
mypy==0.942
types-requests==2.27.15
types-tabulate==0.8.6
types-toml==0.10.4
types-requests>=2.27.15
types-tabulate>=0.8.6
types-toml>=0.10.4
# optional dependencies
pywin32>=225; sys_platform == 'win32'
dvclive[image]==0.6.0
[options.packages.find]
exclude =
+3 -10
View File
@@ -8,6 +8,9 @@ from funcy import first
from dvc import stage as stage_module
from dvc.render.match import get_files
pytest.importorskip("dvclive", reason="no dvclive")
LIVE_SCRIPT = dedent(
"""
from dvclive import Live
@@ -60,11 +63,6 @@ LIVE_CHECKPOINT_SCRIPT = dedent(
@pytest.fixture
def live_stage(tmp_dir, scm, dvc, mocker):
try:
import dvclive # noqa, pylint:disable=unused-import
except ImportError:
pytest.skip("no dvclive")
mocker.patch("dvc.stage.run.Monitor.AWAIT", 0.01)
def make(
@@ -156,11 +154,6 @@ def test_live_html(tmp_dir, dvc, live_stage, html):
@pytest.fixture
def live_checkpoint_stage(tmp_dir, scm, dvc, mocker):
try:
import dvclive # noqa, pylint:disable=unused-import
except ImportError:
pytest.skip("no dvclive")
mocker.patch("dvc.stage.run.Monitor.AWAIT", 0.01)
def make(live=None, live_no_cache=None):