Compare commits

...
Sign in to create a new pull request.

18 commits

Author SHA1 Message Date
Python Maint
87594fc045 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:57:27 +02:00
Python Maint
e9295fafc0 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:25:45 +02:00
Jerry James
20e8b0730d
Stop building for 32-bit x86 2025-08-11 08:44:13 -06:00
Packit
2ec6011486 Update to 0.25.0 upstream release
- Resolves: rhbz#2385945

Commit authored by Packit automation (https://packit.dev/)
2025-08-01 16:25:45 -04:00
Fedora Release Engineering
8241eb8dea Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 07:07:28 +00:00
Python Maint
16f5d2534e Rebuilt for Python 3.14 2025-06-18 21:31:53 +02:00
Fedora Release Engineering
db1263d5f0 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 12:45:16 +00:00
Packit
f2000c0cba Update to 0.24.1 upstream release
- Resolves: rhbz#2317031

Commit authored by Packit automation (https://packit.dev/)
2024-10-08 23:29:03 +00:00
Elliott Sales de Andrade
f46a01eada Update to latest version (#2317031) 2024-10-08 18:47:03 -04:00
Elliott Sales de Andrade
a04112c2b7 Configure Packit for release automation 2024-10-08 16:56:06 -04:00
Fedora Release Engineering
6a7aca5e10 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 10:14:01 +00:00
Elliott Sales de Andrade
f963ea5e0b Correct license tag 2024-06-25 20:44:46 -04:00
Elliott Sales de Andrade
ac90935ea5 Update to latest version (#2274386) 2024-06-25 19:06:23 -04:00
Python Maint
919282549a Rebuilt for Python 3.13 2024-06-19 18:28:32 +02:00
Fedora Release Engineering
3550949e23 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 02:17:21 +00:00
Fedora Release Engineering
87e78b5ae7 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 00:01:16 +00:00
Elliott Sales de Andrade
feb2384c05 Fix tests with Matplotlib 3.8.0 2023-09-13 23:46:37 -04:00
Elliott Sales de Andrade
138595d962 Drop speedups on i686 2023-08-11 01:02:10 -04:00
7 changed files with 121 additions and 43 deletions

4
.gitignore vendored
View file

@ -15,3 +15,7 @@
/Cartopy-0.21.0.tar.gz
/Cartopy-0.21.1.tar.gz
/Cartopy-0.22.0.tar.gz
/Cartopy-0.23.0.tar.gz
/cartopy-0.24.0.tar.gz
/cartopy-0.24.1.tar.gz
/cartopy-0.25.0.tar.gz

20
.packit.yaml Normal file
View file

@ -0,0 +1,20 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
---
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
rawhide:
fast_forward_merge_into:
- fedora-branched
- job: koji_build
trigger: commit
allowed_committers:
- all_admins
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-all

View file

@ -0,0 +1,26 @@
From e3a61e272d5ab58a2b8f13c6ad05d1136d3a5ecc Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Thu, 25 Apr 2024 16:35:29 -0400
Subject: [PATCH 1/2] Reduce numpy build dependency
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index f0172aac..4e012ede 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -9,7 +9,7 @@ requires = [
# Note that building against numpy 1.x works fine too - users and
# redistributors can do this by installing the numpy version they like and
# disabling build isolation.
- "numpy>=2.0.0",
+ "numpy>=1.23",
"setuptools_scm >= 8.0.0",
]
build-backend = "setuptools.build_meta"
--
2.50.0

View file

@ -1,53 +1,69 @@
From 09d403da6d8134a35bba90b7554cfe502877de57 Mon Sep 17 00:00:00 2001
From d3d4e7a80ded257b3094d837e5133b199989b460 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Mon, 26 Feb 2018 02:42:50 -0500
Subject: [PATCH] Increase tolerance for new FreeType.
Subject: [PATCH 2/2] Increase tolerance for new FreeType
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
lib/cartopy/tests/mpl/test_examples.py | 2 +-
lib/cartopy/tests/mpl/test_gridliner.py | 11 +++++++----
lib/cartopy/tests/mpl/test_gridliner.py | 19 +++++++------------
lib/cartopy/tests/mpl/test_mpl_integration.py | 2 +-
lib/cartopy/tests/mpl/test_ticks.py | 14 +++++++++-----
4 files changed, 18 insertions(+), 11 deletions(-)
4 files changed, 18 insertions(+), 19 deletions(-)
diff --git a/lib/cartopy/tests/mpl/test_examples.py b/lib/cartopy/tests/mpl/test_examples.py
index 76f76d29..5eaeef08 100644
index a7f64ac9..404d3d83 100644
--- a/lib/cartopy/tests/mpl/test_examples.py
+++ b/lib/cartopy/tests/mpl/test_examples.py
@@ -34,7 +34,7 @@ def test_global_map():
@@ -37,7 +37,7 @@ def test_global_map():
@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(
filename='contour_label.png',
- tolerance=3.9 if MPL_VERSION.release[:2] >= (3, 8) else 0.5)
+ tolerance=10.4)
- filename='contour_label.png', tolerance=3.9 if _MPL_38 else 0.5)
+ filename='contour_label.png', tolerance=11.2 if _MPL_38 else 0.5)
def test_contour_label():
from cartopy.tests.mpl.test_caching import sample_data
fig = plt.figure()
diff --git a/lib/cartopy/tests/mpl/test_gridliner.py b/lib/cartopy/tests/mpl/test_gridliner.py
index 120295c4..f855e0a0 100644
index 66144070..3ff88139 100644
--- a/lib/cartopy/tests/mpl/test_gridliner.py
+++ b/lib/cartopy/tests/mpl/test_gridliner.py
@@ -126,6 +126,9 @@ def test_gridliner_specified_lines():
# of text objects. A new testing strategy is needed for this kind of test.
grid_label_tol = 3.9
@@ -130,15 +130,10 @@ def test_gridliner_specified_lines():
assert gl.ylocator.tick_values(None, None).tolist() == parallels
+# Force higher tolerance due to new FreeType on Fedora.
+grid_label_tol = 15.2
+
-# The tolerance on these tests are particularly high because of the high number
-# of text objects. A new testing strategy is needed for this kind of test.
-grid_label_tol = 3.9
-
-
@pytest.mark.skipif(geos_version == (3, 9, 0), reason="GEOS intersection bug")
@pytest.mark.natural_earth
@@ -207,7 +210,7 @@ def test_grid_labels():
@pytest.mark.mpl_image_compare(filename='gridliner_labels.png',
- tolerance=grid_label_tol)
+ tolerance=15.2)
def test_grid_labels():
fig = plt.figure(figsize=(10, 10))
@@ -211,7 +206,7 @@ def test_grid_labels():
@pytest.mark.skipif(geos_version == (3, 9, 0), reason="GEOS intersection bug")
@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='gridliner_labels_tight.png',
- tolerance=2.92)
- tolerance=2.9)
+ tolerance=47.1)
def test_grid_labels_tight():
# Ensure tight layout accounts for gridlines
fig = plt.figure(figsize=(7, 5))
@@ -251,7 +254,7 @@ def test_grid_labels_tight():
@@ -259,7 +254,7 @@ def test_grid_labels_tight():
@pytest.mark.mpl_image_compare(
filename='gridliner_constrained_adjust_datalim.png',
- tolerance=grid_label_tol)
+ tolerance=46.5)
def test_gridliner_constrained_adjust_datalim():
fig = plt.figure(figsize=(8, 4), layout="constrained")
@@ -293,7 +288,7 @@ def test_gridliner_constrained_adjust_datalim():
@pytest.mark.skipif(geos_version == (3, 9, 0), reason="GEOS intersection bug")
@pytest.mark.natural_earth
@pytest.mark.parametrize('proj', TEST_PROJS)
@ -56,7 +72,7 @@ index 120295c4..f855e0a0 100644
def test_grid_labels_inline(proj):
fig = plt.figure()
if isinstance(proj, tuple):
@@ -267,7 +270,7 @@ def test_grid_labels_inline(proj):
@@ -309,7 +304,7 @@ def test_grid_labels_inline(proj):
@pytest.mark.skipif(geos_version == (3, 9, 0), reason="GEOS intersection bug")
@pytest.mark.natural_earth
@pytest.mark.parametrize('proj', TEST_PROJS)
@ -65,8 +81,8 @@ index 120295c4..f855e0a0 100644
def test_grid_labels_inline_usa(proj):
top = 49.3457868 # north lat
left = -124.7844079 # west long
@@ -291,7 +294,7 @@ def test_grid_labels_inline_usa(proj):
@@ -334,7 +329,7 @@ def test_grid_labels_inline_usa(proj):
@pytest.mark.natural_earth
@pytest.mark.skipif(geos_version == (3, 9, 0), reason="GEOS intersection bug")
@pytest.mark.mpl_image_compare(filename='gridliner_labels_bbox_style.png',
- tolerance=grid_label_tol)
@ -74,11 +90,20 @@ index 120295c4..f855e0a0 100644
def test_gridliner_labels_bbox_style():
top = 49.3457868 # north lat
left = -124.7844079 # west long
@@ -521,7 +516,7 @@ def test_gridliner_save_tight_bbox():
@pytest.mark.natural_earth
@pytest.mark.mpl_image_compare(filename='gridliner_labels_title_adjust.png',
- tolerance=grid_label_tol)
+ tolerance=61.3)
def test_gridliner_title_adjust():
# Test that title do not overlap labels
projs = [ccrs.Mercator(), ccrs.AlbersEqualArea(), ccrs.LambertConformal(),
diff --git a/lib/cartopy/tests/mpl/test_mpl_integration.py b/lib/cartopy/tests/mpl/test_mpl_integration.py
index 8a60b6d9..ab84bae9 100644
index f1aeccdf..78866085 100644
--- a/lib/cartopy/tests/mpl/test_mpl_integration.py
+++ b/lib/cartopy/tests/mpl/test_mpl_integration.py
@@ -980,7 +980,7 @@ def test_streamplot():
@@ -1016,7 +1016,7 @@ def test_streamplot():
@pytest.mark.natural_earth
@ -88,10 +113,10 @@ index 8a60b6d9..ab84bae9 100644
""" test a variety of annotate options on multiple projections
diff --git a/lib/cartopy/tests/mpl/test_ticks.py b/lib/cartopy/tests/mpl/test_ticks.py
index bb54b631..e9ef89fc 100644
index f75ad2d2..bc0ba0b7 100644
--- a/lib/cartopy/tests/mpl/test_ticks.py
+++ b/lib/cartopy/tests/mpl/test_ticks.py
@@ -11,7 +11,8 @@ from cartopy.mpl.ticker import LatitudeFormatter, LongitudeFormatter
@@ -10,7 +10,8 @@ from cartopy.mpl.ticker import LatitudeFormatter, LongitudeFormatter
@pytest.mark.natural_earth
@ -101,7 +126,7 @@ index bb54b631..e9ef89fc 100644
def test_set_xticks_no_transform():
ax = plt.axes(projection=ccrs.PlateCarree())
ax.coastlines('110m')
@@ -22,7 +23,8 @@ def test_set_xticks_no_transform():
@@ -21,7 +22,8 @@ def test_set_xticks_no_transform():
@pytest.mark.natural_earth
@ -111,7 +136,7 @@ index bb54b631..e9ef89fc 100644
def test_set_xticks_cylindrical():
ax = plt.axes(projection=ccrs.Mercator(min_latitude=-85, max_latitude=85))
ax.coastlines('110m')
@@ -41,7 +43,8 @@ def test_set_xticks_non_cylindrical():
@@ -40,7 +42,8 @@ def test_set_xticks_non_cylindrical():
@pytest.mark.natural_earth
@ -121,7 +146,7 @@ index bb54b631..e9ef89fc 100644
def test_set_yticks_no_transform():
ax = plt.axes(projection=ccrs.PlateCarree())
ax.coastlines('110m')
@@ -52,7 +55,8 @@ def test_set_yticks_no_transform():
@@ -51,7 +54,8 @@ def test_set_yticks_no_transform():
@pytest.mark.natural_earth
@ -131,7 +156,7 @@ index bb54b631..e9ef89fc 100644
def test_set_yticks_cylindrical():
ax = plt.axes(projection=ccrs.Mercator(min_latitude=-85, max_latitude=85))
ax.coastlines('110m')
@@ -73,7 +77,7 @@ def test_set_yticks_non_cylindrical():
@@ -72,7 +76,7 @@ def test_set_yticks_non_cylindrical():
@pytest.mark.natural_earth
@ -141,5 +166,5 @@ index bb54b631..e9ef89fc 100644
fig = plt.figure(figsize=(10, 10))
projections = (ccrs.PlateCarree(),
--
2.41.0
2.50.0

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.11.0.

View file

@ -1,22 +1,26 @@
%global srcname cartopy
%global Srcname Cartopy
# Some tests use the network.
%bcond_with network
Name: python-%{srcname}
Version: 0.22.0
Version: 0.25.0
Release: %autorelease
Summary: Cartographic Python library with Matplotlib visualisations
License: LGPL-3.0-only
License: BSD-3-Clause
URL: https://scitools.org.uk/cartopy/docs/latest/
Source0: %pypi_source %{Srcname}
Source0: %pypi_source %{srcname}
# Set location of Fedora-provided pre-existing data.
Source1: siteconfig.py
# Fedora specific.
Patch: 0001-Reduce-numpy-build-dependency.patch
# Might not go upstream in current form.
Patch: 0001-Increase-tolerance-for-new-FreeType.patch
Patch: 0002-Increase-tolerance-for-new-FreeType.patch
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
BuildRequires: gcc-c++
BuildRequires: proj-data-uk
@ -66,10 +70,9 @@ Data files for %{srcname}.
%prep
%autosetup -n %{Srcname}-%{version} -p1
%autosetup -n %{srcname}-%{version} -p1
cp -a %SOURCE1 lib/cartopy/
sed -i -e 's/oldest-supported-numpy/numpy/g' pyproject.toml
sed -i -e 's/, "pytest-cov", "coveralls"//g' pyproject.toml
# Remove generated Cython sources
@ -87,7 +90,7 @@ export FORCE_CYTHON=1 SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%install
%pyproject_install
%pyproject_save_files %{srcname}
%pyproject_save_files -l %{srcname}
mkdir -p %{buildroot}%{_datadir}/cartopy/shapefiles/natural_earth/
for theme in physical cultural; do
@ -95,8 +98,6 @@ for theme in physical cultural; do
%{buildroot}%{_datadir}/cartopy/shapefiles/natural_earth/${theme}
done
mv %{buildroot}%{_bindir}/feature_download %{buildroot}%{_bindir}/cartopy_feature_download
%check
MPLBACKEND=Agg \
@ -110,7 +111,6 @@ MPLBACKEND=Agg \
%files -n python-%{srcname}-common
%doc README.md
%license COPYING COPYING.LESSER lib/cartopy/data/LICENSE
%{_datadir}/cartopy/
%files -n python3-%{srcname} -f %{pyproject_files}

View file

@ -1 +1 @@
SHA512 (Cartopy-0.22.0.tar.gz) = fed45427e8bbd4c98c9abcee80f9148bf7dd5dc310adddb78384681da6ed9583c8daaed293ef3a27fdf3f72257f8ead7532c85d2b5e4fdf8119483625fb7a585
SHA512 (cartopy-0.25.0.tar.gz) = 6e0576f87dbd154d7dec3c2bbec520d1602874e6b416ca6e461745ceb319dc0f38a53267ad0b1f73bcd0d81674151324c07b7a799fb0a3ad590d1a27c98b3ae7