-
Notifications
You must be signed in to change notification settings - Fork 9
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
Remove python2 support #64
Conversation
This PR is parked until #63 is merged and released, then this branch will need to be rebased. |
Codecov Report
@@ Coverage Diff @@
## master #64 +/- ##
=======================================
Coverage 85.37% 85.38%
=======================================
Files 13 13
Lines 834 814 -20
=======================================
- Hits 712 695 -17
+ Misses 122 119 -3
Continue to review full report at Codecov.
|
As we don't have Black formatter running, this at least provides some of the functionality without breaking any existing formatting.
Turns out I hadn't saved the file before previous commit...
4cec9e1
to
878ebac
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 like we also have some Python version checks in softioc/extension.c
; these can also go.
@Araneidae I've made all the changes requested, and CI is now passing. Please let me know if this is good to merge. It seems the previous error is a transient problem with codecov that disappeared on re-runs. |
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.
Couple more tweaks, then we're there.
Looks good to me. |
This PR standardises Python 3.6 as the lowest supported version of Python, dropping support for Python 2.7.
3.6 was chosen as that's where our CI runs tests, although it wasn't declared as such in the setup.cfg until I edited it. If this should actually be Python3.7 we should also remove 3.6 from CI.
I have removed all references to 2.7, mostly by removing all Python version checking code, and done some fairly trivial refactoring where appropriate.
This also adds some auto-formatting of whitespace/newlines on save to VSCode, as we don't use an autoformatter.
Closes #61