From a8021729b01c5fadb23d840db7d02bc3e17bf93c915e4b9d0fb6edb537dfa5dc Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 25 Mar 2024 17:46:45 +0000 Subject: [PATCH] - update to 0.5.19: * Avoid MPL API removals * allow old and new dasharray * new maintainer * remove sklearn - drop mpld3-pr516-dasharray.patch, mpl-patches.patch: upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-mpld3?expand=0&rev=12 --- mpl-patches.patch | 20 -------------------- mpld3-0.5.10.tar.gz | 3 +++ mpld3-0.5.9.tar.gz | 3 --- mpld3-pr516-dasharray.patch | 13 ------------- python-mpld3.changes | 10 ++++++++++ python-mpld3.spec | 14 +++++--------- 6 files changed, 18 insertions(+), 45 deletions(-) delete mode 100644 mpl-patches.patch create mode 100644 mpld3-0.5.10.tar.gz delete mode 100644 mpld3-0.5.9.tar.gz delete mode 100644 mpld3-pr516-dasharray.patch diff --git a/mpl-patches.patch b/mpl-patches.patch deleted file mode 100644 index fcff05c..0000000 --- a/mpl-patches.patch +++ /dev/null @@ -1,20 +0,0 @@ -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/mpld3-0.5.10.tar.gz b/mpld3-0.5.10.tar.gz new file mode 100644 index 0000000..d1ded6e --- /dev/null +++ b/mpld3-0.5.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a478eb404fa5212505c59133cf272cd9a94105872e605597720e7f84de38fbc7 +size 1027709 diff --git a/mpld3-0.5.9.tar.gz b/mpld3-0.5.9.tar.gz deleted file mode 100644 index 414da1f..0000000 --- a/mpld3-0.5.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8d228b2911132fd0154e2a49543b7f97247f9851cfe468c6b616f452c676158 -size 1026083 diff --git a/mpld3-pr516-dasharray.patch b/mpld3-pr516-dasharray.patch deleted file mode 100644 index 42f21b2..0000000 --- a/mpld3-pr516-dasharray.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: mpld3-0.5.9/mpld3/tests/test_elements.py -=================================================================== ---- mpld3-0.5.9.orig/mpld3/tests/test_elements.py -+++ mpld3-0.5.9/mpld3/tests/test_elements.py -@@ -22,7 +22,7 @@ def test_line(): - assert_equal(line['alpha'], 0.3) - assert_equal(line['color'], "#000000") - assert_equal(line['coordinates'], 'data') -- assert_equal(line['dasharray'], '7.4,3.2') -+ assert line['dasharray'] in ['7.4,3.2', '6,6'] - assert_equal(line['zorder'], 10) - assert_equal(line['linewidth'], 2) - diff --git a/python-mpld3.changes b/python-mpld3.changes index 188e9f5..1408d3e 100644 --- a/python-mpld3.changes +++ b/python-mpld3.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Mar 25 17:36:55 UTC 2024 - Dirk Müller + +- update to 0.5.19: + * Avoid MPL API removals + * allow old and new dasharray + * new maintainer + * remove sklearn +- drop mpld3-pr516-dasharray.patch, mpl-patches.patch: upstream + ------------------------------------------------------------------- Fri Dec 22 14:25:31 UTC 2023 - Ben Greiner diff --git a/python-mpld3.spec b/python-mpld3.spec index 087571d..b09461f 100644 --- a/python-mpld3.spec +++ b/python-mpld3.spec @@ -1,7 +1,7 @@ # # spec file for package python-mpld3 # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-mpld3 -Version: 0.5.9 +Version: 0.5.10 Release: 0 Summary: D3 Viewer for Matplotlib License: BSD-3-Clause @@ -26,10 +26,6 @@ URL: https://mpld3.github.io # SourceRepository: https://github.com/mpld3/mpld3 Source0: https://files.pythonhosted.org/packages/source/m/mpld3/mpld3-%{version}.tar.gz 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} @@ -37,14 +33,14 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Jinja2 +Requires: python-Jinja2 >= 2.11.3 Requires: python-matplotlib Recommends: jupyter-notebook BuildArch: noarch # SECTION test BuildRequires: %{python_module diffimg} -BuildRequires: %{python_module numpy} -BuildRequires: %{python_module pandas} +BuildRequires: %{python_module numpy >= 1.26.2} +BuildRequires: %{python_module pandas >= 2.1.4} BuildRequires: %{python_module pytest} # /SECTION %python_subpackages