-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.readthedocs.yaml
More file actions
21 lines (20 loc) · 799 Bytes
/
Copy path.readthedocs.yaml
File metadata and controls
21 lines (20 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: 2
build:
os: ubuntu-22.04
tools: {python: "3.11"}
jobs:
post_checkout:
- git fetch --unshallow
pre_create_environment:
- asdf plugin add poetry
- asdf install poetry latest
- asdf global poetry latest
- poetry config virtualenvs.create false
post_install:
# Ideally we could run `poetry install --only main -E "pytorch docs"`, However,
# for some reason the sphinx build call is unable to find anything it installed.
# So for now just export as requirements.txt and install them that way.
- poetry self add poetry-plugin-export
- poetry export -f requirements.txt --output requirements.txt --without-hashes --without dev -E "pytorch docs"
- pip install -r requirements.txt
- pip install . --no-deps