Documentation: Refactor Sphinx dependencies into setup.py

This commit is contained in:
Andreas Motl
2024-10-30 18:05:40 +01:00
committed by Andreas Motl
parent d93e3cd12c
commit c32e8c7468
5 changed files with 16 additions and 10 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
@@ -31,7 +31,7 @@ jobs:
- name: Install package and documentation dependencies
run: |
uv pip install --system '.[develop]' --requirement=docs/requirements.txt
uv pip install --system '.[develop,docs]'
- name: Run link checker
run: |
+4 -1
View File
@@ -14,7 +14,10 @@ build:
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- docs
sphinx:
configuration: docs/source/conf.py
+6 -1
View File
@@ -8,7 +8,7 @@ git clone https://github.com/kennethreitz/responder
cd responder
python3 -m venv .venv
source .venv/bin/activate
pip install --editable '.[graphql,develop,release,test]'
pip install --editable '.[graphql,develop,docs,release,test]'
```
Invoke linter and software tests.
@@ -20,3 +20,8 @@ Format code.
```shell
poe format
```
Documentation authoring.
```shell
poe docs-autobuild
```
-6
View File
@@ -1,6 +0,0 @@
alabaster<1.1
jinja2<3.2
markupsafe<4
readme-renderer<45
sphinx>=5,<9
sphinxcontrib-websupport<2.1
+4
View File
@@ -121,6 +121,10 @@ setup(
"ruff; python_version>='3.7'",
"validate-pyproject",
],
"docs": [
"alabaster<1.1",
"sphinx>=5,<9",
],
"graphql": ["graphene"],
"release": ["build", "twine"],
"test": ["pytest", "pytest-cov", "pytest-mock", "flask"],