@@ -41,35 +41,40 @@ Source = "https://github.com/ipython/ipykernel"
4141Tracker = " https://github.com/ipython/ipykernel/issues"
4242
4343[project .optional-dependencies ]
44+ pyqt5 = [" pyqt5" ]
45+ pyside6 = [" pyside6" ]
46+
47+ [dependency-groups ]
4448docs = [
45- " sphinx " ,
46- " myst_parser" ,
47- " pydata_sphinx_theme" ,
48- " sphinxcontrib_github_alt " ,
49- " sphinxcontrib-spelling " ,
50- " sphinx-autodoc-typehints " ,
51- " intersphinx_registry " ,
52- " trio"
49+ " intersphinx_registry " ,
50+ " myst_parser" ,
51+ " pydata_sphinx_theme" ,
52+ " sphinx " ,
53+ " sphinxcontrib_github_alt " ,
54+ " sphinxcontrib-spelling " ,
55+ " sphinx-autodoc-typehints " ,
56+ " trio"
5357]
5458test = [
55- " pytest>=7.0,<10" ,
56- " pytest-cov" ,
5759 # 'pytest-xvfb; platform_system == "Linux"',
5860 " flaky" ,
5961 " ipyparallel" ,
60- " pre-commit" ,
6162 " psutil>=5.7" ,
63+ " pytest>=7.0,<10" ,
64+ " pytest-cov" ,
6265 " pytest-asyncio>=0.23.5" ,
6366 " pytest-timeout"
6467]
6568cov = [
66- " coverage[toml]" ,
67- " pytest-cov" ,
68- " matplotlib" ,
69- " trio" ,
69+ " coverage[toml]" ,
70+ " matplotlib" ,
71+ " pytest-cov" ,
72+ " trio" ,
73+ ]
74+ dev = [
75+ " pre-commit" ,
76+ {include-group = " test" },
7077]
71- pyqt5 = [" pyqt5" ]
72- pyside6 = [" pyside6" ]
7378
7479[tool .hatch .version ]
7580path = " ipykernel/_version.py"
@@ -84,20 +89,20 @@ path = "ipykernel/_version.py"
8489"./ipykernel_launcher.py" = " ipykernel_launcher.py"
8590
8691[tool .hatch .envs .docs ]
87- features = [" docs" ]
92+ dependency-groups = [" docs" ]
8893[tool .hatch .envs .docs .scripts ]
8994build = " make -C docs html SPHINXOPTS='-W'"
9095api = " sphinx-apidoc -o docs/api -f -E ipykernel tests ipykernel/datapub.py ipykernel/pickleutil.py ipykernel/serialize.py ipykernel/gui ipykernel/pylab ipykernel/utils.py"
9196
9297[tool .hatch .envs .test ]
93- features = [" test" ]
98+ dependency-groups = [" test" ]
9499[tool .hatch .envs .test .scripts ]
95100list = " python -m pip freeze"
96101test = " python -m pytest -vv {args}"
97102nowarn = " test -W default {args}"
98103
99104[tool .hatch .envs .cov ]
100- features = [" test" , " cov" ]
105+ dependency-groups = [" test" , " cov" ]
101106[tool .hatch .envs .cov .scripts ]
102107test = " python -m pytest -vv --cov ipykernel --cov-branch --cov-report term-missing:skip-covered {args}"
103108nowarn = " test -W default {args}"
0 commit comments