Skip to content

Commit

Permalink
fix: readthedocs failure with poetry 1.8 (#2744)
Browse files Browse the repository at this point in the history
* chore: set poetry to 1.8.0

* build: debug readthedocs config

* build: update readthedocs config to use poetry export

* build: remove bad command

* build: poetry export add -o flag

* build: add pip install .
  • Loading branch information
edmondchuc authored Mar 20, 2024
1 parent 3b85b43 commit 7554bd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ build:
# the readthedocs environment.
- pip install -r devtools/requirements-poetry.in
post_install:
- poetry config virtualenvs.create false
- poetry install --only=main --only=docs --extras=html
- poetry env info
- poetry export --only=main --only=docs --extras=html -o requirements.txt
- pip install --no-cache-dir -r requirements.txt
- pip install .
- python -c "from rdflib import Graph; print(Graph)"

sphinx:
fail_on_warning: true
2 changes: 1 addition & 1 deletion devtools/requirements-poetry.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Fixing this here as readthedocs can't use the compiled requirements-poetry.txt
# due to conflicts.
poetry==1.7.1
poetry==1.8.0

0 comments on commit 7554bd8

Please sign in to comment.