-
Notifications
You must be signed in to change notification settings - Fork 367
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
MNT: Drop Python 3.4 from test matrix #926
Conversation
Conda-forge packages for 3.4 aren't updated any more. Move 3.5 to where 3.4 was used, use 3.6 for "latest everything".
So replacing 3.4 in the build matrix with 3.5 and conda packages means:
Is it ok just to update these? |
And no clue why running on 3.6 breaks 2 tests.... |
I personally don't think we should bother with 1.3.1, but I assume this is something that the Met Office has previously had need for. |
1.3.1 seems a little bit too conservative, 1.4.3 is 2 major versions behind the latest and that should satisfy most needs. |
These are the latest available for Python 3.5 from conda-forge.
Any idea what's up with the |
Need to install libgfortran 1.0 package--which unfortunately isn't an explicit dependence of scipy 0.16 in defaults. |
Well, hey! That last commit at least got Python 3.5 with old packages to pass... |
0ed05c7
to
8f30d3a
Compare
I think we kind of skipped testing with 1.4.3... |
I think these are remote images that might just need to be updated. |
I was just looking at that. We could also bump the tolerance for Matplotlib 2.x from 2 to 2.9. |
Holy crap! A green build! Somebody merge it before it breaks again! 😈 🎉 |
if MPL_VERSION >= '2': | ||
_STREAMPLOT_IMAGE = 'streamplot' | ||
elif MPL_VERSION >= '1.5': | ||
elif MPL_VERSION >= '1.4.3': | ||
_STREAMPLOT_IMAGE = 'streamplot_1.5' |
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.
Maybe should rename these two?
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.
Done here and in the other file named for 1.5 below.
.travis.yml
Outdated
else | ||
wget http://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O miniconda.sh; | ||
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; |
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.
Can you make these https
too?
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.
Done.
self._assert_bounds(polygon.bounds, 170, 0, 180, 10) | ||
polygon = multi_polygon[1] | ||
self._assert_bounds(polygon.bounds, -180, 0, -170, 10) | ||
poly1, poly2 = multi_polygon |
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 was sooo annoying.
There's no point in pinning to such an old version of miniconda which uses Python 3.4
Required for at least the old scipy.
Looks like some images were incorrectly matched to matplotlib >=1.5 when really it was 1.4.3 that was the version when things changed. Also update a threshold for a minor difference.
Matplotlib 2.1 now warns about axes() reusing existing instances, so take steps to prevent that.
I'm pretty sure 7 decimal places is sufficient.
These were relying on the order of polygons, which doesn't seem to be guaranteed by the wrapping process. It was essentially relying upon the order of popitem() from a dict, which changed with Python 3.6. This changes to try to identify the appropriate polygons before embarking on testing them.
For now, let's just get the test suite back to green on Travis.
Looks like some of the tiles changed a bit, so bump the tolerance up a bit more so that the test passes.
I'm getting failures when I run the tests locally: three related to ShapeReader, and a couple of image test failure when running with the latest available Matplotlib (2.1.0). I'll restart the Travis tests here. Edit: Never mind about the Matplotlib failure, I see that it's been pinned on purpose. |
See https://github.com/djkirkham/cartopy/tree/test_failures for fixes to the ShapeReader tests. Some of them are happening because the records are being received in a different order now and the tests were indexing a list. Another one is happening because the data has apparently been extended and changed slightly (river data). |
Conda-forge packages for 3.4 aren't updated any more. Move 3.5 to where
3.4 was used, use 3.6 for "latest everything".