SHA256
1
0
forked from pool/python-mpld3

- Update 0.5.8:

- add support for Python 3.10 collections.abc.Iterable
  - fix test_show
  - fix failing test
  - update mplexporter
  - remove unnecessary imports
  - Change to new dev version
  - Update RELEASING.md
- Removed upstreamed patch remove-nose.patch, because removal of
  nose was done.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-mpld3?expand=0&rev=6
This commit is contained in:
Matej Cepl 2022-05-30 22:31:15 +00:00 committed by Git OBS Bridge
parent 47b251e66f
commit 67f84ea697
5 changed files with 18 additions and 46 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c589db8b661aee25c93e198e2e18ed47b9a96951de41d96241345acec5f819ab
size 2325789

3
mpld3-0.5.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1a167dbef836dd7c66d8aa71c06a32d50bffa18725f304d93cb74fdb3545043b
size 2326011

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon May 30 22:22:31 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Update 0.5.8:
- add support for Python 3.10 collections.abc.Iterable
- fix test_show
- fix failing test
- update mplexporter
- remove unnecessary imports
- Change to new dev version
- Update RELEASING.md
- Removed upstreamed patch remove-nose.patch, because removal of
nose was done.
-------------------------------------------------------------------
Mon Feb 7 01:54:44 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@ -22,7 +22,7 @@
# Tests are not designed to be non-interactively run, see README.md
%bcond_without test
Name: python-mpld3
Version: 0.5.7
Version: 0.5.8
Release: 0
Summary: D3 Viewer for Matplotlib
License: BSD-3-Clause
@ -31,9 +31,6 @@ 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
# PATCH-FIX-UPSTREAM remove-nose.patch gh#mpld3/mpld3#505 mcepl@suse.com
# there are just few SkipTests which need to be imported from stdlib
Patch0: remove-nose.patch
BuildRequires: %{python_module Jinja2 >= 2.7}
BuildRequires: %{python_module matplotlib >= 2.2}
BuildRequires: %{python_module pandas}

View File

@ -1,39 +0,0 @@
---
mpld3/mplexporter/tests/test_basic.py | 2 +-
mpld3/test_plots/test_pandas_timeaxis.py | 2 +-
mpld3/tests/test_d3_snapshots.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--- a/mpld3/mplexporter/tests/test_basic.py
+++ b/mpld3/mplexporter/tests/test_basic.py
@@ -1,7 +1,7 @@
import matplotlib
import numpy as np
from distutils.version import LooseVersion
-from nose.plugins.skip import SkipTest
+from unittest import SkipTest
from numpy.testing import assert_warns
from ..exporter import Exporter
--- a/mpld3/test_plots/test_pandas_timeaxis.py
+++ b/mpld3/test_plots/test_pandas_timeaxis.py
@@ -7,7 +7,7 @@ def create_plot():
try:
import pandas as pd
except Exception:
- from nose import SkipTest
+ from unittest import SkipTest
raise SkipTest("pandas not installed")
df2_index = pd.date_range(start="2010-01-01", periods=100, freq='D')
df2 = pd.DataFrame({'a': range(100)}, index=df2_index)
--- a/mpld3/tests/test_d3_snapshots.py
+++ b/mpld3/tests/test_d3_snapshots.py
@@ -4,7 +4,7 @@ import glob
import matplotlib
from . import export
-from nose.plugins.skip import SkipTest
+from unittest import SkipTest
matplotlib.use('Agg')
TEST_PLOT_FILES = os.path.join(mpld3.BASE_PATH, 'mpld3/test_plots/*.py')