-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the PEP 735 [dependency-groups] table
- Loading branch information
Showing
1 changed file
with
36 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,42 +76,58 @@ dependencies = [ | |
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
docs = [] | ||
lint = [] | ||
test = [] | ||
|
||
[[project.authors]] | ||
name = "Georg Brandl" | ||
email = "[email protected]" | ||
|
||
[project.scripts] | ||
sphinx-build = "sphinx.cmd.build:main" | ||
sphinx-quickstart = "sphinx.cmd.quickstart:main" | ||
sphinx-apidoc = "sphinx.ext.apidoc:main" | ||
sphinx-autogen = "sphinx.ext.autosummary.generate:main" | ||
|
||
[dependency-groups] | ||
all = [ | ||
{ include-group = "docs" }, | ||
{ include-group = "lint" }, | ||
{ include-group = "test" }, | ||
{ include-group = "types" }, | ||
] | ||
docs = [ | ||
"sphinxcontrib-websupport", | ||
] | ||
lint = [ | ||
"flake8>=6.0", | ||
"ruff==0.7.0", | ||
"mypy==1.13.0", | ||
"sphinx-lint>=0.9", | ||
] | ||
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 test_restify_Unpack | ||
] | ||
types = [ | ||
"mypy==1.13.0", | ||
"pyright==1.1.386", | ||
"pytest>=8.0", # for mypy | ||
{ include-group = "type-stubs" }, | ||
] | ||
type-stubs = [ | ||
"types-colorama==0.4.15.20240311", | ||
"types-defusedxml==0.7.0.20240218", | ||
"types-docutils==0.21.0.20241005", | ||
"types-Pillow==10.2.0.20240822", | ||
"types-Pygments==2.18.0.20240506", | ||
"types-requests==2.32.0.20241016", # align with requests | ||
"types-urllib3==1.26.25.14", | ||
"pyright==1.1.386", | ||
"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 | ||
] | ||
|
||
[[project.authors]] | ||
name = "Georg Brandl" | ||
email = "[email protected]" | ||
|
||
[project.scripts] | ||
sphinx-build = "sphinx.cmd.build:main" | ||
sphinx-quickstart = "sphinx.cmd.quickstart:main" | ||
sphinx-apidoc = "sphinx.ext.apidoc:main" | ||
sphinx-autogen = "sphinx.ext.autosummary.generate:main" | ||
|
||
[tool.flit.module] | ||
name = "sphinx" | ||
|
||
|