diff --git a/pyproject.toml b/pyproject.toml index 938a0856f3e..6c1cab46500 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,6 +51,7 @@ classifiers = [ "Topic :: Text Processing :: Markup :: LaTeX", "Topic :: Utilities", ] +dynamic = ["version"] dependencies = [ "sphinxcontrib-applehelp>=1.0.7", "sphinxcontrib-devhelp>=1.0.6", @@ -70,7 +71,35 @@ dependencies = [ "tomli>=2; python_version < '3.11'", "colorama>=0.4.6; sys_platform == 'win32'", ] -dynamic = ["version"] + +[dependency-groups] +dev = [ + # docs + "sphinxcontrib-websupport", + + # lint + "flake8~6.0", + "ruff==0.6.8", + "mypy==1.11.1", + "sphinx-lint~0.9", + "types-colorama==0.4.15.20240311", + "types-defusedxml==0.7.0.20240218", + "types-docutils==0.21.0.20240724", + "types-Pillow==10.2.0.20240822", + "types-Pygments==2.18.0.20240506", + "types-requests==2.32.0.20240914", # align with requests + "types-urllib3==1.26.25.14", + "tomli~=2", # for mypy (Python<=3.10) + "pyright==1.1.382.post0", + "types-requests==2.30.0", # align with requests + + # test + "pytest~=8.0", + "defusedxml~=0.7.1", # for secure XML/HTML parsing + "cython~=3.0", + "setuptools~=70.0", # for Cython compilation + "typing_extensions~=4.9", # for typing_extensions.Unpack +] [project.scripts] sphinx-build = "sphinx.cmd.build:main" @@ -105,36 +134,6 @@ exclude = [ "doc/_build", ] -[tool.uv] -dev-dependencies = [ - # docs - "sphinxcontrib-websupport", - - # lint - "flake8>=6.0", - "ruff==0.6.8", - "mypy==1.11.1", - "sphinx-lint>=0.9", - "types-colorama==0.4.15.20240311", - "types-defusedxml==0.7.0.20240218", - "types-docutils==0.21.0.20240724", - "types-Pillow==10.2.0.20240822", - "types-Pygments==2.18.0.20240506", - "types-requests==2.32.0.20240914", # align with requests - "types-urllib3==1.26.25.14", - "tomli>=2", # for mypy (Python<=3.10) - "pyright==1.1.382.post0", - "types-requests>=2.30.0", # align with requests - "tomli>=2", # for mypy (Python<=3.10) - "pytest>=6.0", - - # test - "pytest>=8.0", - "defusedxml>=0.7.1", # for secure XML/HTML parsing - "cython>=3.0", - "setuptools>=70.0", # for Cython compilation - "typing_extensions>=4.9", # for typing_extensions.Unpack -] [tool.mypy] files = [