-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Drop support for Python 3.6 #2332
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2332 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 25
Lines 2439 2452 +13
=========================================
+ Hits 2439 2452 +13
Continue to review full report at Codecov.
|
30a9909
to
0ba4421
Compare
Deleted my previous comment as I hadn't seen all the code, sorry. Barring the codecov issue, this looks good but it would be nice if our type experts @haikuginger and @hramezani could take a look as types are evolving rapidly. I think @haikuginger mentioned in the past that 3.6 made things more difficult type wise, and that RLock wasn't the only issue. And I guess mentioning @hugovk is always a good idea when you stop supporting a Python version :p |
0ba4421
to
364ac4e
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.
Looks sensible. I'm not intimately familiar with these details but let me know if you require my approval. :)
This looks correct in general; I'm just going to re-acquaint myself with why the |
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.
LGTM; this is exciting! Found the doc where threading
was made non-optional in 3.7.
I'll look into the |
I think we have urllib3/src/urllib3/_collections.py Line 112 in 8c905b0
|
I think we can remove |
There is an |
It is only writeable with OpenSSL 1.1.0 and higher.
There's another error message that changed on PyPy, that I still need to fix, but the |
CI is green again, we just need to address the comments from @hramezani now. |
@SethMichaelLarson @pquentin I can address them if you want. |
Yes, please do! You should be allowed to push to Seth's branch directly. I also noticed another change needed in |
@sethmlarson It seems I don't have permission to push. I've created a new PR #2336 |
Closing in favor of #2336 |
This PR only effects the v2.x development branch, v1.26.x will continue to support Python 3.6.
The reason for this PR is two-fold:
I think removing now is best to not impede development and if by some stroke of luck we complete all v2.0 deliverables in the Python 3.6 timeline we'll re-evaluate.