diff --git a/mpl-patches.patch b/mpl-patches.patch new file mode 100644 index 0000000..fcff05c --- /dev/null +++ b/mpl-patches.patch @@ -0,0 +1,20 @@ +diff -ur mpld3-0.5.9.orig/mpld3/test_plots/test_patches.py mpld3-0.5.9/mpld3/test_plots/test_patches.py +--- mpld3-0.5.9.orig/mpld3/test_plots/test_patches.py 2023-12-22 15:11:45.594473647 +0100 ++++ mpld3-0.5.9/mpld3/test_plots/test_patches.py 2023-12-22 15:14:58.773431149 +0100 +@@ -15,14 +15,14 @@ + + p = [patches.Arrow(0.75, 0.75, 0.5, 0.5), + patches.Circle((1, 2), 0.4), +- patches.RegularPolygon((1, 3), 5, 0.4), ++ patches.RegularPolygon((1, 3), 5, radius=0.4), + patches.Rectangle((1.6, 0.75), 0.8, 0.5), + patches.CirclePolygon((2, 2), 0.4), + patches.Polygon([[1.75, 3], [2, 3.25], [2.25, 3], + [2, 2.75], [1.75, 3]]), + patches.Wedge((3, 1), 0.4, 0, 270), + patches.Ellipse((3, 2), 0.6, 0.4), +- patches.Arc((3, 3), 0.5, 0.5, 270, 90)] ++ patches.Arc((3, 3), 0.5, 0.5, angle=270, theta1=90)] + + for patch in p: + patch.set_facecolor(rcolor_1) diff --git a/python-mpld3.changes b/python-mpld3.changes index 802a931..188e9f5 100644 --- a/python-mpld3.changes +++ b/python-mpld3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 22 14:25:31 UTC 2023 - Ben Greiner + +- Add mpl-patches.patch gh#mpld3/mpld3#521 + ------------------------------------------------------------------- Sat Jan 7 20:43:25 UTC 2023 - Ben Greiner diff --git a/python-mpld3.spec b/python-mpld3.spec index 12b111c..087571d 100644 --- a/python-mpld3.spec +++ b/python-mpld3.spec @@ -28,6 +28,8 @@ Source0: https://files.pythonhosted.org/packages/source/m/mpld3/mpld3-%{v Source1: https://github.com/mpld3/mpld3/raw/v%{version}/visualize_tests.py # PATCH-FIX-UPSTREAM mpld3-pr516-dasharray.patch gh#mpld3/mpld3#516 Patch1: mpld3-pr516-dasharray.patch +# PATCH-FIX-UPSTREAM mpl-patches.patch gh#mpld3/mpld3#521 +Patch2: mpl-patches.patch BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module matplotlib} BuildRequires: %{python_module pip}