Skip to content

Commit 46cea79

Browse files
committed
tests: Depend on Sphinx and Docutils for tests
1 parent 75a6086 commit 46cea79

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

duties.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -364,16 +364,6 @@ def test(ctx, match: str = ""):
364364
ctx: The context instance (passed automatically).
365365
match: A pytest expression to filter selected tests.
366366
"""
367-
try: # noqa: WPS229
368-
import sphinx # isort:skip # noqa: F401
369-
import docutils # isort:skip # noqa: F401
370-
except ImportError:
371-
py = f"{sys.version_info.major}.{sys.version_info.minor}"
372-
ctx.run(
373-
f"pip install sphinx docutils --no-deps -t __pypackages__/{py}/lib",
374-
title="Installing additional test dependencies",
375-
)
376-
377367
py_version = f"{sys.version_info.major}{sys.version_info.minor}"
378368
os.environ["COVERAGE_FILE"] = f".coverage.{py_version}"
379369
ctx.run(

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,14 @@ quality = [
9494
"curlylint>=0.13",
9595
]
9696
tests = [
97+
"docutils",
9798
"pygments>=2.10", # python 3.6
9899
"pytest>=6.2",
99100
"pytest-cov>=3.0",
100101
"pytest-randomly>=3.10",
101102
"pytest-sugar>=0.9",
102103
"pytest-xdist>=2.4",
104+
"sphinx",
103105
]
104106
typing = [
105107
"mypy>=0.910",

0 commit comments

Comments
 (0)