Add Python 3.11 support #9441
Labels
area: code health
area: pkging
area: testing
priority: high
Issues that should be included in the current milestone if at all possible.
Milestone
Python 3.11 is out and I think we should support it. People on faster moving OSes will try to run Certbot on Python 3.11 if they haven't already.
I described the main difficulty in resolving this in Mattermost where I said:
We could block adding Python 3.11 support on #8818, however, that's a ton of work and like I said feels especially icky due to us maintaining two branches right now.
Alternatively, to fix pylint, we need to update our pinnings here to say we only want to support Python>=3.7.2. This is because all newer versions of pylint do this (which you can see here for pylint 2.14.0 which is the next oldest version of pylint) and poetry complains that it's impossible to upgrade pylint and satisfy our dependency for Python >= 3.7.0.
If we go this route, we could also go through the process of deprecating and dropping support for Python<3.7.2 or Python<3.8 (although Python 3.7 is supported by the Python team until July 2023) in Certbot itself like we did for Python 3.6 at #9160 and #9216 respectively, but I don't think it's worth it. pylint is only an optionally required test dependency of ours and I think we can realistically get by saying that we only support Python>=3.7.2 when generating our pinnings and still claim support for Python>=3.7.0 in Certbot. We're certainly not in the practice of testing against all patch versions of Python and have instead just focused on the major and minor version number.
What do people think? I'd like to get a +1 from someone before we start implementing something here.
The text was updated successfully, but these errors were encountered: