diff --git a/python-moss.spec b/python-moss.spec index 06ce7c9..e9cbaa2 100644 --- a/python-moss.spec +++ b/python-moss.spec @@ -1,6 +1,13 @@ %{?python_enable_dependency_generator} %global modname moss +# Don't fail here because upstream says +# Note that some of the statistical tests depend on randomly generated data +# and fail from time to time because of this. +# ignatenkobrain: I got it failing from time to time in COPR +# Disable tests forever due to: https://github.com/mwaskom/moss/issues/17 +%bcond_with check + Name: python-%{modname} Version: 0.5.0 Release: 1%{?dist} @@ -29,6 +36,7 @@ Summary: %{summary} Provides: bundled(PyMVPA) BuildRequires: python2-devel BuildRequires: python2-setuptools +%if %{with check} # install_requires BuildRequires: python2dist(matplotlib) BuildRequires: python2dist(munch) @@ -42,6 +50,7 @@ BuildRequires: python2dist(six) # tests_require BuildRequires: python2dist(nose) BuildRequires: python2dist(pytest) +%endif %description -n python2-%{modname} Moss is a library of functions, classes, and scripts to that may be useful for @@ -58,6 +67,7 @@ Summary: %{summary} Provides: bundled(PyMVPA) BuildRequires: python3-devel BuildRequires: python3-setuptools +%if %{with check} # install_requires BuildRequires: python3dist(matplotlib) BuildRequires: python3dist(munch) @@ -71,6 +81,7 @@ BuildRequires: python3dist(six) # tests_require BuildRequires: python3dist(nose) BuildRequires: python3dist(pytest) +%endif %description -n python3-%{modname} Moss is a library of functions, classes, and scripts to that may be useful for @@ -96,14 +107,11 @@ rm -vf licenses/BUNCH_LICENSE moss/external/bunch.py # Depends on 'freeview' utility rm -vf %{buildroot}%{_bindir}/recon_qc +%if %{with check} %check -# Don't fail here because upstream says -# Note that some of the statistical tests depend on randomly generated data -# and fail from time to time because of this. -# ignatenkobrain: I got it failing from time to time in COPR -# Disable one of tests for now due to: https://github.com/mwaskom/moss/issues/17 -PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v -k "not test_remove_by_group" -k "not test_smooth_bootstrap" -PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v -k "not test_remove_by_group" -k "not test_smooth_bootstrap" +PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v +%endif %files -n python2-%{modname} %license LICENSE licenses/*