Accepting request 864153 from home:bnavigator:branches:devel:languages:python:numeric
- Fix macro expansion for pytest call OBS-URL: https://build.opensuse.org/request/show/864153 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-gsw?expand=0&rev=13
This commit is contained in:
parent
5f8dbfdbab
commit
a41539b573
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 17 23:33:01 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Fix macro expansion for pytest call
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 12 15:59:32 UTC 2020 - Marketa Machova <mmachova@suse.com>
|
Thu Nov 12 15:59:32 UTC 2020 - Marketa Machova <mmachova@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-gsw
|
# spec file for package python-gsw
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,9 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
# Note: this package is python3-only. There is a python2-compatible
|
|
||||||
# version in the python2-gsw package.
|
|
||||||
# Tests are not included in the source tarball
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-gsw
|
Name: python-gsw
|
||||||
@ -31,7 +28,7 @@ Summary: Gibbs Seawater Oceanographic Package of TEOS-10
|
|||||||
License: MIT AND BSD-3-Clause
|
License: MIT AND BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/TEOS-10/GSW-python
|
URL: https://github.com/TEOS-10/GSW-python
|
||||||
# gh#TEOS-10/GSW-Python#39
|
# gh#TEOS-10/GSW-Python#39 -- Tests are not included in the source tarball
|
||||||
Source0: https://github.com/TEOS-10/GSW-Python/archive/v%{version}.tar.gz
|
Source0: https://github.com/TEOS-10/GSW-Python/archive/v%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel >= 3.5}
|
BuildRequires: %{python_module devel >= 3.5}
|
||||||
BuildRequires: %{python_module numpy-devel}
|
BuildRequires: %{python_module numpy-devel}
|
||||||
@ -62,15 +59,12 @@ export CFLAGS
|
|||||||
%python_install
|
%python_install
|
||||||
%{python_expand %fdupes %{buildroot}%{$python_sitearch}}
|
%{python_expand %fdupes %{buildroot}%{$python_sitearch}}
|
||||||
|
|
||||||
# gh#TEOS-10/GSW-Python#40
|
|
||||||
%check
|
%check
|
||||||
%{python_expand export PYTHONPATH=%{buildroot}%{python_sitearch}
|
|
||||||
%ifarch aarch64
|
%ifarch aarch64
|
||||||
py.test-%{$python_bin_suffix} -v -k 'not test_check_function[cfcf72]'
|
# gh#TEOS-10/GSW-Python#40 note that the failure moved from 72 to 68
|
||||||
%else
|
donttest+=" or (test_check_function and cfcf68)"
|
||||||
py.test-%{$python_bin_suffix} -v
|
|
||||||
%endif
|
%endif
|
||||||
}
|
%pytest_arch ${donttest:+-k "not (${donttest:4})"}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
Loading…
x
Reference in New Issue
Block a user