Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-nbval for openSUSE:Factory 
checked in at 2021-04-15 16:58:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nbval (Old)
 and      /work/SRC/openSUSE:Factory/.python-nbval.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nbval"

Thu Apr 15 16:58:01 2021 rev:8 rq:885592 version:0.9.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nbval/python-nbval.changes        
2021-03-02 12:46:10.992393200 +0100
+++ /work/SRC/openSUSE:Factory/.python-nbval.new.12324/python-nbval.changes     
2021-04-15 16:58:43.798798921 +0200
@@ -1,0 +2,6 @@
+Wed Apr 14 13:53:04 UTC 2021 - Ben Greiner <[email protected]>
+
+-  Add nbval-filter-mpldeprecation.patch for new Matplotlib 3.4
+   deprecation warnings -- gh#computationalmodelling/nbval#167
+
+-------------------------------------------------------------------

New:
----
  nbval-filter-mpldeprecation.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-nbval.spec ++++++
--- /var/tmp/diff_new_pack.JuwnTo/_old  2021-04-15 16:58:44.202799560 +0200
+++ /var/tmp/diff_new_pack.JuwnTo/_new  2021-04-15 16:58:44.206799566 +0200
@@ -26,6 +26,8 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/computationalmodelling/nbval
 Source:         
https://files.pythonhosted.org/packages/source/n/nbval/nbval-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM nbval-filter-mpldeprecation.patch -- 
gh#computationalmodelling/nbval#167
+Patch0:         nbval-filter-mpldeprecation.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -77,7 +79,7 @@
 expected output will fail.
 
 %prep
-%setup -q -n nbval-%{version}
+%autosetup -p1 -n nbval-%{version}
 sed -i 's/\r$//' README.md
 
 %build

++++++ nbval-filter-mpldeprecation.patch ++++++
Index: nbval-0.9.6/tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb
===================================================================
--- nbval-0.9.6.orig/tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb
+++ nbval-0.9.6/tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb
@@ -37,6 +37,9 @@
     }
    ],
    "source": [
+    "import warnings\n",
+    "from matplotlib import MatplotlibDeprecationWarning\n",
+    "warnings.filterwarnings(\"ignore\", 
category=MatplotlibDeprecationWarning)\n",
     "x**2 + y**3"
    ]
   }
Index: nbval-0.9.6/tests/latex-example.ipynb
===================================================================
--- nbval-0.9.6.orig/tests/latex-example.ipynb
+++ nbval-0.9.6/tests/latex-example.ipynb
@@ -15,6 +15,13 @@
    },
    "outputs": [],
    "source": [
+    "try:\n",
+    "    import warnings\n",
+    "    from matplotlib import MatplotlibDeprecationWarning\n",
+    "    warnings.filterwarnings(\"ignore\", 
category=MatplotlibDeprecationWarning)\n",
+    "except ImportError:\n",
+    "    # no matplotlib, no problem\n",
+    "    pass\n",
     "import sympy\n",
     "sympy.init_printing()\n",
     "x, y = sympy.symbols([\"x\", \"y\"])"

Reply via email to