-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Pinning of sphinx version not working #5350
Comments
Hi! Checking the output of your builds, I don't see that It seems that your project is pointing to the Pointing to the right reqs file will solve your issue. |
Thanks for taking a look @humitos . It is in fact pointing to both, using .readthedocs.yml, like so: https://github.com/duetosymmetry/qnm/blob/master/.readthedocs.yml |
Guessing if you switch the order, so you install the docs requirements last, it should work. |
The current order should work, I guess something in how we call the sphinx command. |
Found the problem, when It would take precedence over the other sphinx version, not sure why. I don't think that's the way it should work. |
Thanks for tracking down the issue, @stsewd! I didn't want the build process to waste time installing numpy/scipy/etc. Do you recommend that I remove |
If you really need to use that sphinx version, probably you can just remove I'm still tracking how to fix this. |
Hmm, looks like a bug from the sphinx release, virtualenv or pip :/, I tried installing I'm investigating more, but doesn't look like a rtd bug |
Thanks for investigating. I turned off system_packages for now and got everything to build as expected. I also had to pin the version of recommonmark (maybe it should be mentioned in the rtd docs alongside the recommendation of pinning the version of sphinx — if the goal is reproducibility, then one should pin the versions of all dependencies used to build the docs) |
Ok, it's a problem with |
I don't think so. The libraries that we install at system level are now compiled by default and do not take too much time to get installed. In fact, I think we should deprecate the |
Details
Expected Result
Attempted to pin version of sphinx to >=1.8.4 in
docs/requirements.txt
. This is higher than the version of sphinx that is used by default (1.7.9).Actual Result
pip did indeed install sphinx==1.8.4, but sitewide default version sphinx==1.7.9 was used for sphinx-build.
I don't understand the discrepancy. I tried to get the desired version of sphinx via
docs/requirements.txt
, and various settings in.readthedocs.yml
. If there is something I did not configure correctly, can you please point me in the right direction? Or, if this requires enabling USE_SPHINX_LATEST, can you please enable it for my project?The text was updated successfully, but these errors were encountered: