Accepting request 885592 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/885592 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbval?expand=0&rev=8
This commit is contained in:
commit
c92e2c5122
32
nbval-filter-mpldeprecation.patch
Normal file
32
nbval-filter-mpldeprecation.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
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\"])"
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 14 13:53:04 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Add nbval-filter-mpldeprecation.patch for new Matplotlib 3.4
|
||||||
|
deprecation warnings -- gh#computationalmodelling/nbval#167
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 26 22:34:46 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
Fri Feb 26 22:34:46 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/computationalmodelling/nbval
|
URL: https://github.com/computationalmodelling/nbval
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/nbval/nbval-%{version}.tar.gz
|
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: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -77,7 +79,7 @@ Each cell is taken as a test, a cell that doesn't reproduce the
|
|||||||
expected output will fail.
|
expected output will fail.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n nbval-%{version}
|
%autosetup -p1 -n nbval-%{version}
|
||||||
sed -i 's/\r$//' README.md
|
sed -i 's/\r$//' README.md
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user