Skip to content

Commit

Permalink
Update .readthedocs.yml (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt authored Dec 19, 2024
1 parent e524ca0 commit 2f67aeb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/cthoyt/cookiecutter-snekpack",
"commit": "11d08a77559cd6c2e69a243d491d99522c5a6454",
"commit": "e3a8928186124d29d96565e16894fae924b067f9",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
21 changes: 10 additions & 11 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ version: 2

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
os: ubuntu-22.04
apt_packages:
- graphviz
tools:
python: "3.12"

python:
install:
- method: pip
path: .
extra_requirements:
- docs
- pandas
- flask
- fastapi
- rdflib
# adapted from uv recipe at https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-uv
# and comment at https://github.com/readthedocs/readthedocs.org/issues/11289#issuecomment-2103832834
commands:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- uv venv $READTHEDOCS_VIRTUALENV_PATH
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH UV_PREVIEW=1 uv pip install .[docs,pandas,flask,fastapi,rdflib]
- python -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs/source $READTHEDOCS_OUTPUT/html

0 comments on commit 2f67aeb

Please sign in to comment.