Skip to content

Commit

Permalink
Move test/docs deps into extra dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Dec 19, 2023
1 parent 0a15670 commit da92d1e
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,8 @@ dependencies = [
"httpx>=0.24.1",
"python-box>=7.0.1",
]

[tool.pytest.ini_options]
addopts = "-v --keep-cluster --durations=10 --cov=kr8s --cov-report term-missing --cov-report xml:coverage.xml"
timeout = 300
xfail_strict = true
reruns = 3
reruns_delay = 1
asyncio_mode = "auto"

[tool.hatch.envs.test]
dependencies = [
[project.optional-dependencies]
test = [
"pytest>=7.2.2",
"pytest-asyncio>=0.20.3",
"pytest-kind@git+https://codeberg.org/hjacobs/pytest-kind.git",
Expand All @@ -43,12 +34,7 @@ dependencies = [
"kubernetes-asyncio>=24.2.3",
"kubernetes-validate>=1.28.0",
]

[tool.hatch.envs.test.scripts]
run = "pytest kr8s"

[tool.hatch.envs.docs]
dependencies = [
docs = [
"sphinx>=5.3.0",
"sphinx-autobuild>=2021.3.14",
"myst-parser>=1.0.0",
Expand All @@ -59,6 +45,24 @@ dependencies = [
"sphinx-autoapi>=2.1.0",
]

[tool.pytest.ini_options]
addopts = "-v --keep-cluster --durations=10 --cov=kr8s --cov-report term-missing --cov-report xml:coverage.xml"
timeout = 300
xfail_strict = true
reruns = 3
reruns_delay = 1
asyncio_mode = "auto"

[tool.hatch.envs.test]
features = ["test"]

[tool.hatch.envs.test.scripts]
default = "pytest kr8s"
run = "pytest kr8s"

[tool.hatch.envs.docs]
features = ["docs"]

[tool.hatch.envs.docs.scripts]
build = "sphinx-build docs/ docs/_build/"
rtd = "sphinx-build docs/ _readthedocs/html/"
Expand Down

0 comments on commit da92d1e

Please sign in to comment.