-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
YML Configuration File Does Not Change Build Python Version #5905
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 @kb1lqc how are you building your project? The project that you are building should have the configuration file https://docs.readthedocs.io/en/stable/config-file/index.html (not the Read the Docs source code). Read the Docs defaults to 3.7. Also, the rtd core team doesn't give support for local installations, please see https://docs.readthedocs.io/en/stable/open-source-philosophy.html |
Also, the Read the Docs code is the one that has the restriction of python 3.6. The projects that are build with read the docs can use any other python version (but your local environment should have those python versions) |
@stsewd Thanks for the response. I am commenting that it appears the configuration file does nothing and isn't read. I followed the instructions at https://docs.readthedocs.io/en/stable/config-file/index.html and the build still tries to use Python 3.7 even though I'm clearly specifying 3.6. |
By build do you mean docker build or RTD build? |
Oh @stsewd that configuration file needs to be in the project your importing not in the git repo of |
If you want to build with other python version, you should have those installed, you can use
Feel free to update the guide to mention the other python versions. |
@stsewd yes the original question was a misunderstanding of the readthedocs.yml though I do believe the installation instructions are broken as following them and building one of the sample projects (readthedocs.org) simply breaks because Python 3.7 isn't available. |
Opened #5908 |
Details
A local Docker image built with the following Dockerfile results in builds that fail.
The
.readthedocs.yml
file that is copied onto the server includes a simple:Finally, the
local_settings.py
file that is copied includes:I have confirmed that the two files are placed correctly with
.readthedocs.yml
in the root folder of the git repository andlocal_settings.py
in readthedocs/settings/.Expected Result
I expect the build to work and force Python 3.6 to work since #5335 clearly states to do this as a workaround the the Python 3.7 issues the current Read The Docs release has. This clearly appears not to be working as the build still tries to use Python 3.7.
Actual Result
python3.7 -mvirtualenv --no-site-packages --no-download
The text was updated successfully, but these errors were encountered: