Skip to content

Commit

Permalink
Fix RTD builds with poetry (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 authored Mar 14, 2024
1 parent 906b182 commit 6c62ce4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up python
id: setup-python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -60,6 +61,4 @@ jobs:
# build the docs
#------------------
- name: Build the docs
run: |
source .venv/bin/activate
make --directory=doc html
run: poetry run make --directory=doc html
7 changes: 4 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ build:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
- pip install poetry
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
- poetry self add "poetry-dynamic-versioning[plugin]"
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- poetry install --with docs,server
# VIRTUAL_ENV needs to be set manually for now.
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs,server
pre_build:
- ixmp4 server dump-schema -o doc/source/openapi-v1.json

Expand Down

0 comments on commit 6c62ce4

Please sign in to comment.