Skip to content

Commit

Permalink
fixed issue with readthedocs not working well with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
rwijtvliet committed Jul 5, 2024
1 parent daac7c8 commit 98266c6
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,27 @@ build:
tools:
python: "3.10"
jobs:
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
post_install:
- pip install poetry
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
post_install:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- poetry install --with docs
- poetry export -f requirements.txt --without-hashes --without-urls --with docs -o requirements.txt
- pip install -r requirements.txt
#- pip list
#post_create_environment:
# # 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
# post_install:
# # Install dependencies with 'docs' dependency group
# # https://python-poetry.org/docs/managing-dependencies/#dependency-groups
# - poetry install --with docs

sphinx:
configuration: docs/conf.py

submodules:
include: all

0 comments on commit 98266c6

Please sign in to comment.