Skip to content

Commit

Permalink
fix: adapt readthedocs job for poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
meakbiyik committed Jul 21, 2024
1 parent 106c7c0 commit 4d5113c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ build:
jobs:
post_create_environment:
# Install poetry
# https://python-poetry.org/docs/#installing-manually
# https://github.com/readthedocs/readthedocs.org/issues/4912#issuecomment-1992286540
- 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
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install
# Switch to CPU-only PyTorch
- pip install torch --index-url https://download.pytorch.org/whl/cpu

Expand Down

0 comments on commit 4d5113c

Please sign in to comment.