Remove support for Numpy 1.5#3100
Conversation
|
If anyone knows of specific hacks, you can list them here. For instance, we can remove anywhere that uses |
|
In any case anyone is working on a patch for this, I think all of the hacks starting on line 56 can be removed from here: https://github.com/astropy/astropy/blob/master/astropy/io/fits/py3compat.py#L56 But I need to double check that (against Numpy 1.6 at a minimum). |
|
Also there is an instance of |
|
I just grepped on |
|
Note that #2992 requires numpy > 1.6, so it needs to at the least remove the test in 1.5 before it can be merged. before this issue was created I pushed up a couple of commits that update the minimum numpy version, but I could roll that back to just removing the 1.5 test from travis (and then this issue would actually bump up the officially-listed minimum). I don't really mind either way, but I do really want to see #2992 merged ASAP, as it's blocking other critical work. |
|
Just FYI: I'm working on this (I've assigned myself, but just in case there's confusion). |
|
PR attached. There is one extra place to remove, but I didn't feel like I could quite navigate it: |
There was a problem hiding this comment.
Is this safe to remove since it's <=?
There was a problem hiding this comment.
Oops. Just missed this one. I'll reinstate.
|
I don't know if we've started a "What's New" page for 1.0, but this should definitely be in there too. Do we at least want to open an issue for that and start a checklist? |
|
@mdboom I'm not sure if anything really needs to be done for |
|
👍 from my perspective, nice! |
|
👍 from me too - I can rebase #2992 after this is merged - @mdboom addressed my concern about this delaying #2992 by just doing it all right now! Also @taldcroft - I'm not surprised you're happy with this: it's roughly a 7:1 ratio of lines removed to lines added. 😉 |
|
There have been no objections so I think this is fine to merge 👍 |
There was a problem hiding this comment.
With this line removed you can also remove the from distutils import version on line 8 of this file.
|
I've deleted the unused imports mentioned by @embray. |
cd94e27 to
857ecad
Compare
Remove support for Numpy 1.5
|
Thanks @mdboom ! |
This has been removed in astropy in astropy/astropy#3100
This has been removed in astropy in astropy/astropy#3100
Since there seems to be consensus on doing this, we should go through and update the minimum version and remove any backward-compatibility hacks that exist in various places.