Skip to content

Commit

Permalink
Merge pull request #97 from ipums/readthedocs-fix
Browse files Browse the repository at this point in the history
update .readthedocs.yaml with correct support for poetry
  • Loading branch information
renae-r authored Jun 27, 2024
2 parents 2aa4615 + b5271af commit f1bd53f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
python: "3.9"
jobs:
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
- python -m pip install poetry
post_install:
# Install only dependencies including docs
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- poetry install --with docs
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py

0 comments on commit f1bd53f

Please sign in to comment.