From c67904622d1527c7ca45fa1ff1b3fef5d2a84877 Mon Sep 17 00:00:00 2001 From: Greg Lucas Date: Mon, 23 Sep 2024 20:00:20 -0600 Subject: [PATCH] DOC/CI: Prepare for v0.24 release - Release notes - Add Python 3.13 tests and builds --- .github/workflows/ci-testing.yml | 2 +- .github/workflows/release.yml | 2 +- docs/make_projection.py | 5 +++-- docs/source/reference/projections.rst | 16 ++++++++++++++ docs/source/whatsnew/index.rst | 1 + docs/source/whatsnew/v0.24.rst | 30 +++++++++++++++++++++++++++ 6 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 docs/source/whatsnew/v0.24.rst diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml index 1ffff569a..7cd8ba281 100644 --- a/.github/workflows/ci-testing.yml +++ b/.github/workflows/ci-testing.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ['3.10', '3.11', '3.12'] + python-version: ['3.10', '3.11', '3.12', '3.13-dev'] use-network: [true] include: - os: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1272cf445..983c0c24e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -91,7 +91,7 @@ jobs: ) echo "include=$MATRIX" >> $GITHUB_OUTPUT env: - CIBW_BUILD: "cp310-* cp311-* cp312-*" + CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-*" # Skip 32 bit builds and musllinux due to lack of numpy wheels CIBW_SKIP: "*-win32 *_i686 *-musllinux*" CIBW_ARCHS_MACOS: x86_64 arm64 diff --git a/docs/make_projection.py b/docs/make_projection.py index c3bd31918..8f50fd559 100644 --- a/docs/make_projection.py +++ b/docs/make_projection.py @@ -79,7 +79,8 @@ def utm_plot(): COASTLINE_RESOLUTION = {ccrs.OSNI: '10m', ccrs.OSGB: '50m', - ccrs.EuroPP: '50m'} + ccrs.EuroPP: '50m', + ccrs.LambertZoneII: '10m'} PRJ_SORT_ORDER = {'PlateCarree': 1, @@ -91,7 +92,7 @@ def utm_plot(): 'Orthographic': 2, 'UTM': 2, 'AlbersEqualArea': 2, 'AzimuthalEquidistant': 2, 'Sinusoidal': 2, 'InterruptedGoodeHomolosine': 3, 'RotatedPole': 3, - 'OSGB': 4, 'EuroPP': 5, + 'OSGB': 4, 'LambertZoneII': 4.1, 'EuroPP': 5, 'Geostationary': 6, 'NearsidePerspective': 7, 'EckertI': 8.1, 'EckertII': 8.2, 'EckertIII': 8.3, 'EckertIV': 8.4, 'EckertV': 8.5, 'EckertVI': 8.6} diff --git a/docs/source/reference/projections.rst b/docs/source/reference/projections.rst index 35a0bd2db..0721d09b1 100644 --- a/docs/source/reference/projections.rst +++ b/docs/source/reference/projections.rst @@ -341,6 +341,22 @@ OSGB ax.gridlines() +LambertZoneII +------------- + +.. autoclass:: cartopy.crs.LambertZoneII + +.. plot:: + + import matplotlib.pyplot as plt + import cartopy.crs as ccrs + + plt.figure(figsize=(3.2687, 3)) + ax = plt.axes(projection=ccrs.LambertZoneII()) + ax.coastlines(resolution='10m') + ax.gridlines() + + EuroPP ------ diff --git a/docs/source/whatsnew/index.rst b/docs/source/whatsnew/index.rst index f2b29716e..2d9c108a7 100644 --- a/docs/source/whatsnew/index.rst +++ b/docs/source/whatsnew/index.rst @@ -14,6 +14,7 @@ Versions .. toctree:: :maxdepth: 2 + v0.24 v0.23 v0.22 v0.21 diff --git a/docs/source/whatsnew/v0.24.rst b/docs/source/whatsnew/v0.24.rst new file mode 100644 index 000000000..f5891cfdb --- /dev/null +++ b/docs/source/whatsnew/v0.24.rst @@ -0,0 +1,30 @@ +Version 0.24 (October 7, 2024) +============================== + +Python 3.13 and Numpy 2 are supported and the new minimum supported versions +of dependencies that have been updated are: + +* Python 3.10 +* Matplotlib 3.6 + +Features +-------- + +* Ryan May fixed some internal usages of PlateCarree coordinates to use geodetic lat/lon + coordinates of the proper ellipse, improving boundary handling for some projections. (:pull:`2378`) + +* Ruth Comer added more improvements to gridlines, including title adjustments to avoid overlaps. (:pull:`2393`) + +* Eric Matti fixed an issue with gouraud shading when using wrapped coordinates in a pcolormesh. (:pull:`2401`) + +* Raphael Quast added the ability to use multi-path geometries as boundaries of the maps. + This means that an Axes doesn't have to be fully connected anymore and can be separate + land masses and avoid the oceans if a user wants. (:pull:`2362`) + +* Thibault Hallouin added the Lambert Zone II (epsg:27572) projection, which is widely + used for maps of mainland France. (:pull:`2427`) + +Deprecations and Removals +------------------------- + +There are no new deprecations or removals in this release.