| |
@@ -41,7 +41,7 @@
|
| |
|
| |
Name: python-matplotlib
|
| |
Version: 2.2.2
|
| |
- Release: 1%{?rctag:.%{rctag}}%{?dist}
|
| |
+ Release: 2%{?rctag:.%{rctag}}%{?dist}
|
| |
Summary: Python 2D plotting library
|
| |
# qt4_editor backend is MIT
|
| |
License: Python and MIT
|
| |
@@ -221,6 +221,14 @@
|
| |
%description -n python2-matplotlib-wx
|
| |
%{summary}
|
| |
|
| |
+ %package -n python2-matplotlib-test-data
|
| |
+ Summary: Test data for python2-matplotlib
|
| |
+ Requires: python2-matplotlib%{?_isa} = %{version}-%{release}
|
| |
+ %{?python_provide:%python_provide python2-matplotlib-test-data}
|
| |
+
|
| |
+ %description -n python2-matplotlib-test-data
|
| |
+ %{summary}
|
| |
+
|
| |
%package -n python2-matplotlib-doc
|
| |
Summary: Documentation files for python-matplotlib
|
| |
%if %{with_html}
|
| |
@@ -353,6 +361,15 @@
|
| |
%description -n python3-matplotlib-tk
|
| |
%{summary}
|
| |
|
| |
+ %package -n python3-matplotlib-test-data
|
| |
+ Summary: Test data for python3-matplotlib
|
| |
+ Requires: python3-matplotlib%{?_isa} = %{version}-%{release}
|
| |
+ %{?python_provide:%python_provide python3-matplotlib-test-data}
|
| |
+
|
| |
+ %description -n python3-matplotlib-test-data
|
| |
+ %{summary}
|
| |
+
|
| |
+
|
| |
%prep
|
| |
%autosetup -n matplotlib-%{version}%{?rctag} -N
|
| |
%patch0001 -p1
|
| |
@@ -453,6 +470,7 @@
|
| |
MPLCONFIGDIR=$PWD \
|
| |
MATPLOTLIBDATA=%{buildroot}%{_datadir}/matplotlib/mpl-data \
|
| |
PYTHONPATH=%{buildroot}%{python2_sitearch} \
|
| |
+ PYTHONDONTWRITEBYTECODE=1 \
|
| |
xvfb-run -a -s "-screen 0 640x480x24" \
|
| |
%{__python2} -m pytest --pyargs matplotlib -ra -n $(getconf _NPROCESSORS_ONLN) \
|
| |
-m 'not network' \
|
| |
@@ -461,6 +479,7 @@
|
| |
MPLCONFIGDIR=$PWD \
|
| |
MATPLOTLIBDATA=%{buildroot}%{_datadir}/matplotlib/mpl-data \
|
| |
PYTHONPATH=%{buildroot}%{python3_sitearch} \
|
| |
+ PYTHONDONTWRITEBYTECODE=1 \
|
| |
xvfb-run -a -s "-screen 0 640x480x24" \
|
| |
%{__python3} tests.py -ra -n $(getconf _NPROCESSORS_ONLN) \
|
| |
-m 'not network' \
|
| |
@@ -501,6 +520,10 @@
|
| |
%exclude %{_pkgdocdir}/*
|
| |
%exclude %{_pkgdocdir}/*/*
|
| |
|
| |
+ %files -n python2-matplotlib-test-data
|
| |
+ %{python2_sitearch}/matplotlib/tests/baseline_images/
|
| |
+ %{python2_sitearch}/mpl_toolkits/tests/baseline_images/
|
| |
+
|
| |
%files -n python2-matplotlib-qt4
|
| |
%{python2_sitearch}/matplotlib/backends/backend_qt4.*
|
| |
%{python2_sitearch}/matplotlib/backends/backend_qt4agg.*
|
| |
@@ -557,6 +580,10 @@
|
| |
%exclude %{python3_sitearch}/matplotlib/backends/_tkagg.*
|
| |
%exclude %{_pkgdocdir}/*/
|
| |
|
| |
+ %files -n python3-matplotlib-test-data
|
| |
+ %{python3_sitearch}/matplotlib/tests/baseline_images/
|
| |
+ %{python3_sitearch}/mpl_toolkits/tests/baseline_images/
|
| |
+
|
| |
%files -n python3-matplotlib-qt4
|
| |
%{python3_sitearch}/matplotlib/backends/backend_qt4.*
|
| |
%{python3_sitearch}/matplotlib/backends/__pycache__/backend_qt4.*
|
| |
@@ -581,6 +608,10 @@
|
| |
%{python3_sitearch}/matplotlib/backends/_tkagg.*
|
| |
|
| |
%changelog
|
| |
+ * Tue Apr 17 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.2-2
|
| |
+ - Remove bytecode produced by pytest
|
| |
+ - Add python?-matplotlib-test-data subpackages
|
| |
+
|
| |
* Sat Mar 31 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.2-1
|
| |
- Update to latest release
|
| |
- Run tests in parallel
|
| |
I need these to run tests from mplcairo (an externally provided backend), though they're really mostly just smoke-tests at the moment. Also, make sure that pytest does not create its own bytecode files because they encode the builddir path and break things on an installed system.
I would also like to point out that the Xvfb bug is fixed, so builds on Rawhide should work again.