From d041e0ea25fb593774bcf0bc04022e4ad8f2e1f90eddb5260f67e7b7a1d13e81 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 26 Feb 2021 21:41:07 +0000 Subject: [PATCH] Accepting request 875526 from home:bnavigator:branches:devel:languages:python - Don't test optional numpy with python36, but include optional jsonschema and (non python36) pandas for testing instead. OBS-URL: https://build.opensuse.org/request/show/875526 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=39 --- python-param.changes | 6 ++++++ python-param.spec | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-param.changes b/python-param.changes index a4102be..79d7338 100644 --- a/python-param.changes +++ b/python-param.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 26 20:32:36 UTC 2021 - Ben Greiner + +- Don't test optional numpy with python36, but include optional + jsonschema and (non python36) pandas for testing instead. + ------------------------------------------------------------------- Fri Jan 29 04:27:47 UTC 2021 - Steve Kowalik diff --git a/python-param.spec b/python-param.spec index 293152d..fcd99af 100644 --- a/python-param.spec +++ b/python-param.spec @@ -30,12 +30,16 @@ Source100: python-param-rpmlintrc # PATCH-FEATURE-UPSTREAM denose.patch gh#holoviz/param#423 mcepl@suse.com # Remove nose dependency Patch0: denose.patch -BuildRequires: %{python_module numpy} +BuildRequires: %{python_module jsonschema} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: %{python_module numpy if (%python-base without python36-base)} +BuildRequires: %{python_module pandas if (%python-base without python36-base)} Recommends: python-numpy +Recommends: python-pandas +Recommends: python-jsonschema BuildArch: noarch %python_subpackages @@ -66,7 +70,7 @@ echo '{"git_describe": "v%{version}", "version_string": "%{version}"}' > param/. %check # Exclusion documented in gh#holoviz/param#423 -%pytest -k 'not test_abstract_class' tests/*/*.py +%pytest -k 'not test_abstract_class' tests/*/*.py -ra %{python_expand # make sure the correct version is reported. Other packages depend on it. PYTHONPATH=%{buildroot}%{$python_sitelib} $python -c '