Skip to content

Remove support for old Python versions #594

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

Merged
merged 12 commits into from
May 19, 2019
Merged

Conversation

felixdivo
Copy link
Collaborator

This removes support for Python < 3.6, both CPython and PyPy in the codebase and CI pipelines.

@felixdivo
Copy link
Collaborator Author

A nice side effect is the CI being a lot faster. ^^

@felixdivo
Copy link
Collaborator Author

felixdivo commented May 18, 2019

I have a question (@christiansandberg) regarding socketcan:

try:
    socket.CAN_BCM
except AttributeError:
    HAS_NATIVE_SUPPORT = False
else:
    HAS_NATIVE_SUPPORT = True

Can this be removed, since it will evaluate to HAS_NATIVE_SUPPORT = True anyways? Or can it be False even on Python 3.6+?

@codecov
Copy link

codecov bot commented May 18, 2019

Codecov Report

Merging #594 into develop will decrease coverage by 0.19%.
The diff coverage is 79.06%.

@@            Coverage Diff             @@
##           develop     #594     +/-   ##
==========================================
- Coverage    64.18%   63.98%   -0.2%     
==========================================
  Files           63       63             
  Lines         5685     5573    -112     
==========================================
- Hits          3649     3566     -83     
+ Misses        2036     2007     -29

@christiansandberg
Copy link
Collaborator

You can assume that native support is always available.

@felixdivo
Copy link
Collaborator Author

I'll open two more separate PRs: One for removing deprecated members and one for changing the calls to super() to the Python 3 syntax.

@felixdivo
Copy link
Collaborator Author

I tried to split the conversion in multiple parts but this one is the first and biggest one. The others are simpler. This PR is now done (apart from the reviews coming in 😅).

@christiansandberg The socketcan change was applied as well.

Copy link
Collaborator

@christiansandberg christiansandberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also remove the universal wheel part in setup.cfg to make it clearer that the wheel distribution is Python 3 only.

@felixdivo felixdivo force-pushed the remove-old-python-versions branch from 3693e5e to 174ff81 Compare May 19, 2019 01:16
Repository owner deleted a comment from codecov bot May 19, 2019
@felixdivo felixdivo merged commit 544f6c3 into develop May 19, 2019
@felixdivo felixdivo deleted the remove-old-python-versions branch May 19, 2019 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants