-
Notifications
You must be signed in to change notification settings - Fork 457
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
Support Python 3.6 to 3.10 #371
Conversation
Drop support of Python < 3.6 - remove six + future deps + usage - update deps - remove encoding - remove (object)
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 great!
@@ -15,7 +17,6 @@ commands = | |||
{envbindir}/pytest | |||
|
|||
[testenv:lint] | |||
basepython = python3 |
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.
Please keep this line.
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.
This really is a no-op nowadays, since the only supported Python is v3.
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.
The tox docs aren't totally clear exactly how the default python is set. It says system python
. Not all systems have an executable under python
when Python 3 is installed, including my own system, but it still works for me to remove this line.
https://tox.wiki/en/latest/example/general.html#basepython-defaults-overriding
Ok, let's remove it for now.
There are quite many pylint warnings for |
Co-authored-by: Martin Hjelmare <[email protected]>
Co-authored-by: Martin Hjelmare <[email protected]>
Co-authored-by: Martin Hjelmare <[email protected]>
Co-authored-by: Martin Hjelmare <[email protected]>
There are some lint warnings left to either resolve or disable and then we need to run black again with the updated version. |
Thanks! ❤️ 🎉 |
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.
Just noting some things for a future clean up.
@@ -6,7 +6,7 @@ | |||
|
|||
|
|||
class AccountServiceTest(TestCase): | |||
""""Account service tests""" | |||
""" "Account service tests""" |
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.
Extra quote leftover.
@@ -6,7 +6,7 @@ | |||
|
|||
# pylint: disable=pointless-statement | |||
class DriveServiceTest(TestCase): | |||
""""Drive service tests""" | |||
""" "Drive service tests""" |
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.
As above.
@@ -5,7 +5,7 @@ | |||
|
|||
|
|||
class FindMyiPhoneServiceTest(TestCase): | |||
""""Find My iPhone service tests""" | |||
""" "Find My iPhone service tests""" |
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.
As above.
Fixed final comments in 8c7ba2a |
Rebase of #325. Looks like pushing to stale branches does not update the existing PR.
Breaking change
Proposed change
Drop support for Python versions which no longer have any upstream support. Improve forward compatibility up to Python 3.10.
This also should reduce dependency on older libraries, some of which are still pinned at old, insecure versions.
Type of change
Example of code:
n/a
Additional information
Fixes #289
Fixes #290
Closes #303
Closes #325
Checklist
If user exposed functionality or configuration variables are added/changed: