-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 py2 compat #2645
Remove py2 compat #2645
Conversation
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.
we could also ditch (or save for a later clean-up):
- our
__future__
imports - unicode literals (
u'something'
->'something'
)
Was I not ambition enough 😉? It's only January 3 after all. I was really trying not to over do it. Anyhow, I'm happy to include the future and unicode removals here. |
I never wrote py2 code myself so I don't think I'm of the "conservative" type, but I wonder if this PR will make it harder to provide bugfix cherry-picks on the hypothetical py2 compatible |
@fmaussion - you've articulated why I expected some friction here. I'm happy to hold off on this until we're sure 0.11 is clear of nasty bugs. @shoyer just went through the back-porting process so maybe he can comment on his appetite for dealing with this sort of thing. |
@shoyer - at this point, do you anticipate another bug-fix release for 0.11? If not, I'm now leaning toward merging this to avoid too many merge conflicts. |
What are our thoughts on merging this? I am sensitive that merge conflicts are growing |
I think we should issue a back-port bug fix (0.11.3) and then merge this asap. The two issues @shoyer referenced above have been merged so, as far as I understand, there is nothing blocking the bugfix release at this point. |
Let me try doing the backports now...
…On Thu, Jan 24, 2019 at 8:24 AM Joe Hamman ***@***.***> wrote:
I think we should issue a back-port bug fix (0.11.3) and then merge this
asap. The two issues @shoyer <https://github.com/shoyer> referenced above
have been merged so, as far as I understand, there is nothing blocking the
bugfix release at this point.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2645 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABKS1lue5vxFptUYqKc5r_iKZLZcFi7oks5vGd44gaJpZM4Znc68>
.
|
See #2704 for a PR with release notes for 0.11.3. But I agree, there should be nothing stopping this from being merged now. |
I'll sort out the conflicts today and get this merged ASAP. |
Also see #2574 |
I plan to merge this tomorrow unless I hear otherwise. |
I found a couple of minor issues, otherwise it looks good! |
thanks @jhamman ! |
commit 620b946 Author: Stephan Hoyer <shoyer@gmail.com> Date: Sun Jan 27 13:02:03 2019 -0800 Fix test failures / warnings for pandas 0.24 (#2720) * Fix test failures / warnings for pandas 0.24 Fixes GH2717 * Brief doc note * Comment on name order commit 882deac Author: Stephan Hoyer <shoyer@gmail.com> Date: Sun Jan 27 09:11:47 2019 -0800 DOC: refresh whats-new for 0.11.3 / 0.12.0 (#2718) commit 8ca8efe Author: Stephan Hoyer <shoyer@gmail.com> Date: Sat Jan 26 10:14:49 2019 -0800 Update environment for doc build (#2708) * Update environment for doc build We were pinning very old versions for most of these packages. This should fix the failures on ReadTheDocs. * Build fixes commit 2e99c7d Author: Stephan Hoyer <shoyer@gmail.com> Date: Fri Jan 25 13:52:17 2019 -0800 Print full environment fron conf.py (#2709) This should make it easier to debug the doc build environment. commit cc5015a Author: Stephan Hoyer <shoyer@gmail.com> Date: Fri Jan 25 11:55:07 2019 -0800 BUG: ensure indexes are reset when coords are modified (#2707) This was introduced by the recent indexes refactor, but never made it into a release. commit aabda43 Author: Joe Hamman <jhamman@ucar.edu> Date: Fri Jan 25 08:38:45 2019 -0800 Remove py2 compat (#2645) * strip out PY2 compat code from pycompat.py * isort * remove 2 unused imports * remove extra import * no more future * no unicode literals * no more ReprMixin * cleanup merge * remove deprecated imports from collections * 2 more cleanups from shoyer
commit 37a947a Author: Deepak Cherian <dcherian@users.noreply.github.com> Date: Wed Jan 30 09:20:57 2019 -0800 Refactor plot utils (#2670) * Refactor out utility functions. * facetgrid refactor 1. refactor out _easy_facetgrid 2. Combine map_dataarray_line with map_dataarray * flake8 * Refactor out colorbar making to plot.utils._add_colorbar * Refactor out cmap_params, cbar_kwargs processing * Back to map_dataarray_line * lint * small rename * review comment. * Move _infer_line_data back. commit fd2552a Author: Spencer Clark <spencerkclark@gmail.com> Date: Wed Jan 30 11:45:09 2019 -0500 Enable subtracting a scalar cftime.datetime object from a CFTimeIndex (#2672) * Enable subtracting a scalar cftime.datetime object from a CFTimeIndex * lint * Test cftime.datetime minus CFTimeIndex as well * Fix cftime minus CFTimeIndex commit e8bf4bf Author: Tom Nicholas <35968931+TomNicholas@users.noreply.github.com> Date: Wed Jan 30 02:02:22 2019 +0000 Bugfix for line plot axes (#2726) * Fixed logic for setting line data * Added tests to check line data matches values of correct coords * Recorded bugfix for line plots * Update doc/whats-new.rst Co-Authored-By: TomNicholas <35968931+TomNicholas@users.noreply.github.com> * Update doc/whats-new.rst Co-Authored-By: TomNicholas <35968931+TomNicholas@users.noreply.github.com> commit 620b946 Author: Stephan Hoyer <shoyer@gmail.com> Date: Sun Jan 27 13:02:03 2019 -0800 Fix test failures / warnings for pandas 0.24 (#2720) * Fix test failures / warnings for pandas 0.24 Fixes GH2717 * Brief doc note * Comment on name order commit 882deac Author: Stephan Hoyer <shoyer@gmail.com> Date: Sun Jan 27 09:11:47 2019 -0800 DOC: refresh whats-new for 0.11.3 / 0.12.0 (#2718) commit 8ca8efe Author: Stephan Hoyer <shoyer@gmail.com> Date: Sat Jan 26 10:14:49 2019 -0800 Update environment for doc build (#2708) * Update environment for doc build We were pinning very old versions for most of these packages. This should fix the failures on ReadTheDocs. * Build fixes commit 2e99c7d Author: Stephan Hoyer <shoyer@gmail.com> Date: Fri Jan 25 13:52:17 2019 -0800 Print full environment fron conf.py (#2709) This should make it easier to debug the doc build environment. commit cc5015a Author: Stephan Hoyer <shoyer@gmail.com> Date: Fri Jan 25 11:55:07 2019 -0800 BUG: ensure indexes are reset when coords are modified (#2707) This was introduced by the recent indexes refactor, but never made it into a release. commit aabda43 Author: Joe Hamman <jhamman@ucar.edu> Date: Fri Jan 25 08:38:45 2019 -0800 Remove py2 compat (#2645) * strip out PY2 compat code from pycompat.py * isort * remove 2 unused imports * remove extra import * no more future * no unicode literals * no more ReprMixin * cleanup merge * remove deprecated imports from collections * 2 more cleanups from shoyer
* upstream/master: Refactor plot utils (pydata#2670) Enable subtracting a scalar cftime.datetime object from a CFTimeIndex (pydata#2672) Bugfix for line plot axes (pydata#2726) Fix test failures / warnings for pandas 0.24 (pydata#2720) DOC: refresh whats-new for 0.11.3 / 0.12.0 (pydata#2718) Update environment for doc build (pydata#2708) Print full environment fron conf.py (pydata#2709) BUG: ensure indexes are reset when coords are modified (pydata#2707) Remove py2 compat (pydata#2645)
I was feeling particularly zealous today so I decided to see what it would take to strip out all the Python 2 compatibility code in xarray. I expect some will feel its too soon to merge this so I'm mostly putting this up for show-and-tell and to highlight some of the knots we've tied ourselves into over the years.
whats-new.rst
for all changes andapi.rst
for new API