Skip to content

Commit

Permalink
Use the PEP 735 [dependency-groups] table
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Oct 25, 2024
1 parent 63a4175 commit 928dd45
Showing 1 changed file with 36 additions and 20 deletions.
56 changes: 36 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 928dd45

Please sign in to comment.