Skip to content

Commit 61386dd

Browse files
committed
build: remove extra docs dependencies and use RTD build via Poetry
1 parent 98ca244 commit 61386dd

File tree

5 files changed

+117
-121
lines changed

5 files changed

+117
-121
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
key: venv-${{ hashFiles('poetry.lock') }}
5757

5858
- name: Install the project dependencies
59-
run: poetry install -E docs
59+
run: poetry install
6060

6161
- name: Run static analysis, linters and mypy
6262
run: poetry run poe check

.github/workflows/release.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ jobs:
4545
key: venv-${{ hashFiles('poetry.lock') }}
4646

4747
- name: Build
48-
run: |
49-
poetry install
50-
poetry build
48+
run: poetry build
5149

5250
- name: Get package version to create a new tag and release
5351
id: get-version

.readthedocs.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ version: 2
88
build:
99
os: ubuntu-lts-latest
1010
tools:
11-
python: "3.11"
11+
python: "3.12"
12+
13+
# https://docs.readthedocs.com/platform/stable/build-customization.html#install-dependencies-with-poetry~
14+
jobs:
15+
post_install:
16+
- pip install poetry
17+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
18+
1219

1320
# Build documentation in the docs/ directory with Sphinx
1421
sphinx:
@@ -18,11 +25,3 @@ sphinx:
1825
# Optionally build your docs in additional formats such as PDF and ePub
1926
formats:
2027
- pdf
21-
22-
# Optionally set the version of Python and requirements required to build your docs
23-
python:
24-
install:
25-
- method: pip
26-
path: .
27-
extra_requirements:
28-
- docs

0 commit comments

Comments
 (0)