Skip to content

Commit c2dc75c

Browse files
committed
Switch from development extras to dependency-groups
1 parent 2ae7fcc commit c2dc75c

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed

.readthedocs.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ build:
88
tools:
99
python: "3.13"
1010

11-
python:
12-
install:
13-
- method: pip
14-
path: .
15-
extra_requirements:
16-
- docs
11+
jobs:
12+
install:
13+
- pip install . --group 'docs'

pyproject.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
requires = ["setuptools>=61.2"]
33
build-backend = "setuptools.build_meta"
44

5+
[dependency-groups]
6+
dev = [
7+
"pytest<9",
8+
'click-type-test==1.1.0;python_version>="3.10"',
9+
"coverage<8",
10+
"identify>=2.6.9",
11+
"pytest-xdist<4",
12+
"responses==0.25.7",
13+
]
14+
docs = [
15+
"sphinx<9",
16+
"sphinx-issues<6",
17+
"furo==2025.7.19",
18+
]
19+
520
[project]
621
name = "check-jsonschema"
722
version = "0.33.3"
@@ -32,21 +47,6 @@ content-type = "text/markdown"
3247
[project.urls]
3348
Homepage = "https://github.com/python-jsonschema/check-jsonschema"
3449

35-
[project.optional-dependencies]
36-
dev = [
37-
"pytest<9",
38-
'click-type-test==1.1.0;python_version>="3.10"',
39-
"coverage<8",
40-
"identify>=2.6.9",
41-
"pytest-xdist<4",
42-
"responses==0.25.7",
43-
]
44-
docs = [
45-
"sphinx<9",
46-
"sphinx-issues<6",
47-
"furo==2025.7.19",
48-
]
49-
5050
[project.scripts]
5151
check-jsonschema = "check_jsonschema:main"
5252

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ labels =
1717
[testenv]
1818
description = "run tests with pytest"
1919
usedevelop = true
20-
extras = dev
20+
dependency_groups = dev
2121
deps =
2222
# attrs v23.2.0 is needed for mindeps because jsonschema==4.18.0
2323
# is uses `hash=True` which was deprecated after this version
@@ -73,7 +73,7 @@ commands = pyright src/ {posargs}
7373
[testenv:docs]
7474
description = "build docs with sphinx"
7575
basepython = python3.10
76-
extras = docs
76+
dependency_groups = docs
7777
allowlist_externals = rm
7878
changedir = docs/
7979
# clean the build dir before rebuilding

0 commit comments

Comments
 (0)