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 2.7 #328
Conversation
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 good, but we need some additional metadata to avoid causing Python 2.7 users pain.
Codecov Report
@@ Coverage Diff @@
## master #328 +/- ##
==========================================
- Coverage 98.16% 97.87% -0.29%
==========================================
Files 48 48
Lines 3928 3915 -13
Branches 262 259 -3
==========================================
- Hits 3856 3832 -24
- Misses 55 62 +7
- Partials 17 21 +4
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Blocked on #329 (Release Klein 20.4) |
* master: (26 commits) [requires.io] dependency update Fix #349: Update forms example to run correctly [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update Don't use "l" as a variable name. [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update [requires.io] dependency update mock 4 dropped Py2 hypothesis5 drops Py2 Update dependencies Don't have two tw192's ... # Conflicts: # .travis.yml # tox.ini
In case anyone noticed |
* master: [requires.io] dependency update [requires.io] dependency update
Most of patches are home-grown instead of from upstream, as upstream fixes are quite large and cannot be cleanly backported. Specifically, upstream moves test strategies from Klein to Hyperlink [1] and drop Python 2.x support [2,3]. The fix for Werkzeug 2.x in test_resource.py [3] is smaller, while it cannot be cleanly backported, either. [1] twisted/klein#393 [2] twisted/klein#328 [3] twisted/klein#355 [4] twisted/klein#499 git-svn-id: file:///srv/repos/svn-community/svn@965883 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Most of patches are home-grown instead of from upstream, as upstream fixes are quite large and cannot be cleanly backported. Specifically, upstream moves test strategies from Klein to Hyperlink [1] and drop Python 2.x support [2,3]. The fix for Werkzeug 2.x in test_resource.py [3] is smaller, while it cannot be cleanly backported, either. [1] twisted/klein#393 [2] twisted/klein#328 [3] twisted/klein#355 [4] twisted/klein#499 git-svn-id: file:///srv/repos/svn-community/svn@965883 9fca08f4-af9d-4005-b8df-a31f2cc04f65
The current plan (as of Jan 25 2020) is that the final release of Python will be 2.7.18 slated for mid-April 2020.
This PR removes support for Python 2.7 from CI, removes Python 2.7-specific code, and reformats for Python 3.5+ per
black
.Before we merge this, we should ship a release so that 2.7 users have the latest work already done with 2.7 support in place.