15
0
forked from pool/python-param

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
This commit is contained in:
2021-02-26 21:41:07 +00:00
committed by Git OBS Bridge
parent 496c00154f
commit d041e0ea25
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 26 20:32:36 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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 <steven.kowalik@suse.com>

View File

@@ -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 '