-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Support Docker 5.0 image #5657
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
Support Docker 5.0 image #5657
Conversation
f811cee
to
faf4128
Compare
faf4128
to
714cfd9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, I should test this locally.
Also, I'm a little worry about removing python 3.5, I think there were some users using it with the latest image bc of a problem with a package. Solutions could be using pypy3.5 (if it works) or downgrading the image version to stable or using a numbered version.
return 'python{}'.format(ver) | ||
|
||
# Allow to specify ``pypy3.5`` as Python interpreter | ||
return ver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note that we can do this better later #4343
Is there some code that runs in 3.5 but does not in 3.6 or 3.7? |
I was able to find this one #5250 (comment), not sure, I can remember some weird packages. Also, we should query the db to see the python_version of projects just in case. |
Marked as blocked since we need to update the builders with the new images, first. |
It's hard to create a good query because we are using a TextField on
So, project using What should be the path to follow here? I do see three different ones at the moment:
(*) we will have the same problem when deploying our 6.0 image, though. |
1 would be weird and unexpected from the user perspective. I'm +1 for 2, we could do the deprecation blog post this week. Do we need to release the image right now to fix something? If not, I guess it could wait, so we don't need to re-add 3.5 there. |
I just came up with another idea:
That way, we can keep those project building properly but also upgrade the Docker image. |
Python 3.5 was removed at #84 and we didn't have a good reason to do it. Then, when releasing the new Docker 5.0 image we realize that we will be breaking some projects that are pinning 3.5 in their config file: readthedocs/readthedocs.org#5657 So, we decided to re-add it to be able to deploy this image without breaking people's projects.
74d6fe6
to
1513a5f
Compare
I know we are re adding 3.5. But just to note that when you set |
Docker I'm merging this PR to go out in the next deploy. |
Changes on this PR:
4.0
asstable
and5.0
aslatest
for our Docker imagespypy3.5
as Python version (see pypy3.5 virtualenv does not support venv re-creation #5658)3.5
to use3.6
or3.7
since3.5
is not supported anymoreRequired by readthedocs/readthedocs-docker-images#103.