Skip to content

Commit

Permalink
setting up docs installation via pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Feb 15, 2024
1 parent 786375a commit 67eeac3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ version: 2
build:
os: "ubuntu-20.04"
tools:
python: "3.11"
python: "3.12"

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: docs/rtd-requirements.txt
- method: pip
path: .
extra_requirements:
- docs
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ pytest = {version = "*", optional = true}
pytest-mock = {version = "*", optional = true}
ruff = {version = ">=0.2.0", optional = true}
sphinx = {version = "*", optional = true}
sphinx-rtd-theme = {version = "*", optional = true}
tox = {version = "*", optional = true}

[tool.poetry.extras]
Expand All @@ -193,10 +194,15 @@ dev = [
"pytest-mock",
"ruff",
"sphinx",
"sphinx-rtd-theme",
"tox",
]
test = [
"coverage",
"pytest",
"pytest-mock",
]
docs = [
"sphinx",
"sphinx-rtd-theme",
]

0 comments on commit 67eeac3

Please sign in to comment.