-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Drop support for EOL Python 2 #2919
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2919 +/- ##
===========================================
- Coverage 63.30% 52.55% -10.75%
===========================================
Files 466 249 -217
Lines 20893 15472 -5421
Branches 2901 0 -2901
===========================================
- Hits 13226 8132 -5094
- Misses 7301 7340 +39
+ Partials 366 0 -366 |
|
Thanks for taking the time doing this and submitting the pull request! Just a couple of early thoughts from my side after a first quick review:
|
|
I would say the first change should be to update the docs and disallow Python 2 installs by updating I believe that [wheel]
universal = 1Perhaps a guard in if sys.version_info < (3, 5):
sys.exit('streamlink is only supported on Python 3.5 and later')Once it is only possible to install It would be nice to target Python 3.6+, but I don't know if that will be popular :) |
|
Thanks for the comments! Yeah, it's a big one! PR #2920 is a minimal version of this, with the first commit from here, plus a few bits from the last commit here, plus @beardypig's suggestions. Then we can deal with fine-grained pyupgrade and the compat replacements separately.
I've found https://github.com/timothycrosley/isort/ great for taking the hassle out this. |
|
#3270 already has all compat imports removed. |
Fixes #2896.
Also upgrade syntax for Python 3 using https://github.com/asottile/pyupgrade.