| 1 |
[build-system] |
| 2 |
build-backend = "hatchling.build" |
| 3 |
requires = [ |
| 4 |
"babel", |
| 5 |
"hatchling", |
| 6 |
] |
| 7 |
|
| 8 |
[project] |
| 9 |
name = "python-docs-theme" |
| 10 |
description = "The Sphinx theme for the CPython docs and related projects" |
| 11 |
readme = "README.md" |
| 12 |
license = "PSF-2.0" |
| 13 |
license-files = [ "LICENSE" ] |
| 14 |
authors = [ { name = "Python Docs Sphinx Theme maintainers" } ] |
| 15 |
requires-python = ">=3.12" |
| 16 |
classifiers = [ |
| 17 |
"Development Status :: 5 - Production/Stable", |
| 18 |
"Framework :: Sphinx :: Theme", |
| 19 |
"Intended Audience :: Developers", |
| 20 |
"Operating System :: OS Independent", |
| 21 |
"Programming Language :: Python", |
| 22 |
"Programming Language :: Python :: 3 :: Only", |
| 23 |
"Programming Language :: Python :: 3.12", |
| 24 |
"Programming Language :: Python :: 3.13", |
| 25 |
"Programming Language :: Python :: 3.14", |
| 26 |
"Programming Language :: Python :: 3.15", |
| 27 |
"Topic :: Documentation", |
| 28 |
"Topic :: Software Development :: Documentation", |
| 29 |
] |
| 30 |
dynamic = [ "version" ] |
| 31 |
dependencies = [ |
| 32 |
"sphinx>=7.3", |
| 33 |
] |
| 34 |
urls."Issue tracker" = "https://github.com/python/python-docs-theme/issues" |
| 35 |
urls.Code = "https://github.com/python/python-docs-theme" |
| 36 |
urls.Download = "https://pypi.org/project/python-docs-theme/" |
| 37 |
urls.Homepage = "https://github.com/python/python-docs-theme/" |
| 38 |
entry-points."sphinx.html_themes".python_docs_theme = "python_docs_theme" |
| 39 |
|
| 40 |
[tool.hatch] |
| 41 |
version.path = "python_docs_theme/__init__.py" |
| 42 |
build.artifacts = [ "python_docs_theme/locale/**/*.mo" ] |
| 43 |
build.hooks.custom.path = "babel_runner.py" |
| 44 |
build.targets.wheel.packages = [ "python_docs_theme" ] |
| 45 |
build.targets.wheel.exclude = [ "python_docs_theme/locale/**/*.po" ] |
| 46 |
|
| 47 |
[tool.ruff] |
| 48 |
fix = true |
| 49 |
lint.select = [ |
| 50 |
"C4", # flake8-comprehensions |
| 51 |
"E", # pycodestyle errors |
| 52 |
"F", # pyflakes errors |
| 53 |
"I", # isort |
| 54 |
"ISC", # flake8-implicit-str-concat |
| 55 |
"LOG", # flake8-logging |
| 56 |
"PGH", # pygrep-hooks |
| 57 |
"PYI", # flake8-pyi |
| 58 |
"RUF022", # unsorted-dunder-all |
| 59 |
"RUF100", # unused noqa (yesqa) |
| 60 |
"UP", # pyupgrade |
| 61 |
"W", # pycodestyle warnings |
| 62 |
"YTT", # flake8-2020 |
| 63 |
] |
| 64 |
lint.ignore = [ |
| 65 |
"E203", # Whitespace before ':' |
| 66 |
"E221", # Multiple spaces before operator |
| 67 |
"E226", # Missing whitespace around arithmetic operator |
| 68 |
"E241", # Multiple spaces after ',' |
| 69 |
] |
| 70 |
lint.isort.required-imports = [ "from __future__ import annotations" ] |
| 71 |
|
| 72 |
[tool.pyproject-fmt] |
| 73 |
max_supported_python = "3.15" |