From d66d57bce2566557274c3780c161eb46b9d479e952fa47fb36aed12c79626d5f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 2 Feb 2022 17:55:24 +0000 Subject: [PATCH] - Make the running the test suite conditional (default off). Seven hours of running it is just too much. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Cython?expand=0&rev=156 --- python-Cython.changes | 6 ++++++ python-Cython.spec | 3 +++ 2 files changed, 9 insertions(+) diff --git a/python-Cython.changes b/python-Cython.changes index d1e4fce..a4017f5 100644 --- a/python-Cython.changes +++ b/python-Cython.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 2 17:54:50 UTC 2022 - Matej Cepl + +- Make the running the test suite conditional (default + off). Seven hours of running it is just too much. + ------------------------------------------------------------------- Mon Jan 31 20:31:01 UTC 2022 - Matej Cepl diff --git a/python-Cython.spec b/python-Cython.spec index 981f566..e9be980 100644 --- a/python-Cython.spec +++ b/python-Cython.spec @@ -18,6 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python +%bcond_with test Name: python-Cython Version: 0.29.27 Release: 0 @@ -80,9 +81,11 @@ $python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/ } %check +%if %{with test} %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} PYTHONDONTWRITEBYTECODE=1 $python runtests.py -v } +%endif %post %python_install_alternative cython cythonize cygdb