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! #1163
Conversation
ed7c385
to
cacc2e8
Compare
One good one to do to modernize the code base is to convert all uses of |
Actually, before doing that, it might be good to see what we can do about having flake8 catch that, and other modernizations, that we make. |
Another one to add is updating |
Other things coming to mind:
|
Have been looking for any plugins and haven't seen anything useful yet. Lots of py2 to py 2/3 support online. Doesn't really look like there are any good linters for conversion of py2/3 to py3. Looking at astropy, they suggested running coverage just with py2 and py3 separately to see what was only covered in either to remove dead code. Is that something that can easily be done here? |
Ok I've cleaned up setup.cfg and removed uses of |
Clarification on where these hacks exist (or what they look like) would be great |
I’ll look at the signature stuff. We should be able to look at codecov and see what it says about new uncovered lines with this PR to find other blocks of unneeded code (assuming it’s working). |
Found one thing in |
This pull request fixes 1 alert when merging c12386a into 7e506b8 - view on LGTM.com fixed alerts:
|
Fixed imports in grid.py and tools.py. Added errors to setup.py and init.py if Python 2 is detected to either fail to install or fail to import. Verified that the error message in setup.py is returned in |
4a55a03
to
5fe6f23
Compare
This pull request fixes 1 alert when merging 5fe6f23 into d39ddc3 - view on LGTM.com fixed alerts:
|
3ab9df1
to
ae563df
Compare
This pull request fixes 1 alert when merging ae563df into d39ddc3 - view on LGTM.com fixed alerts:
|
Power-cycling to hopefully get codecov to actually track results--really want to see if there are any newly uncovered lines after this. |
Drop use of 'object' inheritance
…format, remove future imports
This pull request fixes 1 alert when merging 602d30f into d39ddc3 - view on LGTM.com fixed alerts:
|
This pull request fixes 1 alert when merging 4ccb2c9 into d39ddc3 - view on LGTM.com fixed alerts:
|
Description Of Changes
What do you do when it's a Friday afternoon? Drop 2.7!
In all seriousness, according to our docs, we're dropping 2.7 in "Fall 2019". Given that meteorological (real) fall is here and astronomical fall is 8 days away, this is likely for sure going in 0.12. (Not sure when 0.11 will get out the door, but not sure if we should include this in that or not).
I'm sure I missed some stuff, so feel free to push commits to this, or review and comment if you have small items to address. There is one open item on #801 that I didn't fix yet, as the comment was vague and I didn't have time to look into it yet.
Whenever 2.7 is dropped, celebration is in order!
Checklist