-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Incorrect Sphinx version used during RTD build #9869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @sethfischer It seems there is a built-in What happens if you move these to
(I think we should upgrade the guide if this is indeed the case) |
Thanks @benjaoming. Moving version: 2
build:
os: ubuntu-20.04
tools:
nodejs: "19"
python: "3.9"
jobs:
post_create_environment:
- pip install poetry
- poetry config virtualenvs.create false
post_install:
- poetry install
- npm clean-install
- make npm-build
sphinx:
configuration: docs/conf.py |
@sethfischer thanks so much for sharing the configuration! @humitos can you confirm that this is also a good setup and if we should use this approach in the example from the documentation? |
I don't have too much experience with Poetry, but it seems that using |
Great! Thanks for looking @humitos 👍 @sethfischer if you are interested in contributing to the docs, you are most welcome 👍 Otherwise, I'll give it a look during the week. |
@benjaoming Sure! I'll submit a pull request. |
Move `poetry install` from `post_create_environment` to `post_install`. This ensures the Sphinx version installed from `poetry.lock` is used to build the docs, rather than the default version of Sphinx. Closes: readthedocs#9869
Move `poetry install` from `post_create_environment` to `post_install`. This ensures the Sphinx version installed from `poetry.lock` is used to build the docs, rather than the default version of Sphinx. Closes: #9869
Details
Expected Result
Build 19088114 is expected to use Sphinx 5.3.0.
Actual Result
Build 19088114 uses Sphinx 6.1.1.
Further information
rtd-build-19088114.txt
Build 19088114 uses Poetry to install dependencies with a
build.jobs.post_create_environment
user-defined job, in a manner recommended by RTD.As expected
poetry install
installs Sphinx 5.3.0. This is confirmed withpoetry show sphinx
inbuild.jobs.post_create_environment
.However, when the following is run by RTD:
The output shows that Sphinx 6.1.1 is being used:
.readthedocs.yaml
:The text was updated successfully, but these errors were encountered: