move doc dependencies to pyproject

This commit is contained in:
Ariel Rin 2023-10-07 20:45:39 +10:00
parent a4644028ae
commit efe0c6963b
No known key found for this signature in database
4 changed files with 14 additions and 22 deletions

View File

@ -23,4 +23,7 @@ formats: all
# Optionally set the version of Python and requirements required to build your docs # Optionally set the version of Python and requirements required to build your docs
python: python:
install: install:
- requirements: docs/requirements.txt - method: pip
path: .
extra_requirements:
- docs

View File

@ -1,20 +0,0 @@
# Docs Specific Packages
sphinx>=4.4.0,<5.0.0
sphinx_rtd_theme>=1.0.0,<2.0.0
recommonmark==0.7.1
Jinja2<3.1
docutils==0.16
sphinxcontrib-django2
sphinx-copybutton
# Autodoc dependencies
celery>=5.2.0,<6.0.0
celery_once>=3.0.1
django>=4.0.6,<4.1.0
django-bootstrap-form
django-celery-beat>=2.3.0
django-esi>=4.0.1
django-redis>=5.2.0,<6.0.0
django-sortedm2m
passlib
redis>=4.0.0,<5.0.0

View File

@ -62,6 +62,15 @@ test = [
"django-webtest", "django-webtest",
"requests-mock>=1.2.0", "requests-mock>=1.2.0",
] ]
docs = [
"sphinx>=4.4.0,<5.0.0",
"sphinx_rtd_theme>=1.0.0,<2.0.0",
"recommonmark==0.7.1",
"Jinja2<3.1",
"docutils==0.16",
"sphinxcontrib-django2",
"sphinx-copybutton"
]
[project.scripts] [project.scripts]
allianceauth = "allianceauth.bin.allianceauth:main" allianceauth = "allianceauth.bin.allianceauth:main"

View File

@ -28,7 +28,7 @@ commands =
description = invoke sphinx-build to build the HTML docs description = invoke sphinx-build to build the HTML docs
basepython = python3.11 basepython = python3.11
skip_install = True skip_install = True
deps = -r{toxinidir}/docs/requirements.txt deps = .[docs]
install_command = python -I -m pip install {opts} {packages} install_command = python -I -m pip install {opts} {packages}
commands = commands =
sphinx-build -T -E -b html -d "{toxworkdir}/docs_doctree" -D language=en docs "{toxworkdir}/docs_out" {posargs} sphinx-build -T -E -b html -d "{toxworkdir}/docs_doctree" -D language=en docs "{toxworkdir}/docs_out" {posargs}