diff --git a/.readthedocs.yml b/.readthedocs.yml index 0818c2f44..7cc878efc 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,9 +8,6 @@ build: tools: python: "3.13" -python: - install: - - method: pip - path: . - extra_requirements: - - docs + jobs: + install: + - pip install . --group 'docs' diff --git a/pyproject.toml b/pyproject.toml index b1351f05c..4e1b5453f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,21 @@ requires = ["setuptools>=61.2"] build-backend = "setuptools.build_meta" +[dependency-groups] +dev = [ + "pytest<9", + 'click-type-test==1.1.0;python_version>="3.10"', + "coverage<8", + "identify>=2.6.9", + "pytest-xdist<4", + "responses==0.25.7", +] +docs = [ + "sphinx<9", + "sphinx-issues<6", + "furo==2025.7.19", +] + [project] name = "check-jsonschema" version = "0.33.3" @@ -32,21 +47,6 @@ content-type = "text/markdown" [project.urls] Homepage = "https://github.com/python-jsonschema/check-jsonschema" -[project.optional-dependencies] -dev = [ - "pytest<9", - 'click-type-test==1.1.0;python_version>="3.10"', - "coverage<8", - "identify>=2.6.9", - "pytest-xdist<4", - "responses==0.25.7", -] -docs = [ - "sphinx<9", - "sphinx-issues<6", - "furo==2025.7.19", -] - [project.scripts] check-jsonschema = "check_jsonschema:main" diff --git a/tox.ini b/tox.ini index 115d46171..edd6ecfed 100644 --- a/tox.ini +++ b/tox.ini @@ -17,7 +17,7 @@ labels = [testenv] description = "run tests with pytest" usedevelop = true -extras = dev +dependency_groups = dev deps = # attrs v23.2.0 is needed for mindeps because jsonschema==4.18.0 # is uses `hash=True` which was deprecated after this version @@ -73,7 +73,7 @@ commands = pyright src/ {posargs} [testenv:docs] description = "build docs with sphinx" basepython = python3.10 -extras = docs +dependency_groups = docs allowlist_externals = rm changedir = docs/ # clean the build dir before rebuilding