Skip to content

Commit 84019bc

Browse files
authored
chore: Update documentation build to use poetry / python 3.10 (#36)
1 parent 04951c6 commit 84019bc

File tree

4 files changed

+158
-44
lines changed

4 files changed

+158
-44
lines changed

doc/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

poetry.lock

Lines changed: 144 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ initial-content = """
2323

2424
[tool.poetry.dependencies]
2525
python = "^3.8"
26-
sphinx = ">=1.2.2, <1.6"
27-
sphinx_rtd_theme = ">=0.1.6, <1"
2826
lowdown = ">=0.1.0,<2"
2927
setuptools = ">=30.3.0"
3028
setuptools-scm = "^7.1.0"
@@ -43,6 +41,8 @@ wheel = "^0.41.2"
4341
black = "^23.7.0"
4442
pre-commit = "^3.4.0"
4543
twine = "^4.0.2"
44+
sphinx = "^7.0.6"
45+
sphinx_rtd_theme = ">=2.0.0,<3"
4646

4747
[tool.poetry.group.test.dependencies]
4848
pytest = "^7.4.1"
@@ -53,4 +53,3 @@ flaky = "^3.7.0"
5353
[build-system]
5454
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
5555
build-backend = "poetry_dynamic_versioning.backend"
56-

readthedocs.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.7"
6+
python: "3.10"
77

8-
python:
9-
install:
10-
- requirements: doc/requirements.txt
11-
- method: pip
12-
path: .
8+
jobs:
9+
post_create_environment:
10+
# Install poetry
11+
# https://python-poetry.org/docs/#installing-manually
12+
- pip install poetry
13+
post_install:
14+
# Install dependencies with 'docs' dependency group
15+
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
16+
# VIRTUAL_ENV needs to be set manually for now.
17+
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
18+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with dev

0 commit comments

Comments
 (0)