Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mpld3 for openSUSE:Factory checked in at 2023-01-09 17:24:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mpld3 (Old) and /work/SRC/openSUSE:Factory/.python-mpld3.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mpld3" Mon Jan 9 17:24:17 2023 rev:4 rq:1057068 version:0.5.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mpld3/python-mpld3.changes 2022-05-31 15:48:45.452043004 +0200 +++ /work/SRC/openSUSE:Factory/.python-mpld3.new.32243/python-mpld3.changes 2023-01-09 17:24:19.635336593 +0100 @@ -1,0 +2,10 @@ +Sat Jan 7 20:43:25 UTC 2023 - Ben Greiner <[email protected]> + +- Update to 0.5.9 + * no release notes + * bumps some js versions, doc changes +- Remove bcond_without test: tests were run all along +- Fix failing test suite: + * Add mpld3-pr516-dasharray.patch gh#mpld3/mpld3#516 + +------------------------------------------------------------------- Old: ---- mpld3-0.5.8.tar.gz New: ---- mpld3-0.5.9.tar.gz mpld3-pr516-dasharray.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mpld3.spec ++++++ --- /var/tmp/diff_new_pack.lY8tF7/_old 2023-01-09 17:24:20.143339468 +0100 +++ /var/tmp/diff_new_pack.lY8tF7/_new 2023-01-09 17:24:20.147339490 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-mpld3 # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,37 +16,35 @@ # -# No numpy for py3.6 -%define skip_python36 1 -%define modname mpld3 -# Tests are not designed to be non-interactively run, see README.md -%bcond_without test Name: python-mpld3 -Version: 0.5.8 +Version: 0.5.9 Release: 0 Summary: D3 Viewer for Matplotlib License: BSD-3-Clause Group: Development/Languages/Python -URL: https://mpld3.github.com -Source0: https://files.pythonhosted.org/packages/source/m/mpld3/%{modname}-%{version}.tar.gz -# Originally from https://raw.githubusercontent.com/mpld3/mpld3/master/visualize_tests.py -Source1: visualize_tests.py -BuildRequires: %{python_module Jinja2 >= 2.7} -BuildRequires: %{python_module matplotlib >= 2.2} -BuildRequires: %{python_module pandas} +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 +BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module matplotlib} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Jinja2 >= 2.7 -Requires: python-matplotlib >= 2.2 -Requires: python-pandas +Requires: python-Jinja2 +Requires: python-matplotlib Recommends: jupyter-notebook BuildArch: noarch -%if %{with test} +# SECTION test BuildRequires: %{python_module diffimg} BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pandas} BuildRequires: %{python_module pytest} -%endif +# /SECTION %python_subpackages %description @@ -69,37 +67,32 @@ %prep %autosetup -p1 -n mpld3-%{version} - cp %{SOURCE1} . -chmod -x examples/*.py - # Fix a bunch of inappropriate exec perms chmod a-x notebooks/*.ipynb \ LICENSE \ *.md \ mpld3/js/*.js \ + examples/*.py \ mpld3.egg-info/* %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check export HIDE_PLOTS=True -# exclusions gh#mpld3/mpld3#505 -%pytest -k 'not (test_show or test_snapshots)' mpld3/tests/*.py -%endif +%pytest %files %{python_files} %license LICENSE %doc AUTHORS.md README.md -%{python_sitelib}/%{modname}/ -%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/mpld3/ +%{python_sitelib}/mpld3-%{version}.dist-info %files -n %{name}-doc %doc examples/ notebooks/ ++++++ mpld3-0.5.8.tar.gz -> mpld3-0.5.9.tar.gz ++++++ ++++ 50236 lines of diff (skipped) ++++++ mpld3-pr516-dasharray.patch ++++++ 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)
