Accepting request 1045057 from home:bnavigator:branches:devel:languages:python:numeric

- Skip a failing test -- gh#pydata/bottleneck#423
- Add rpmlintrc

OBS-URL: https://build.opensuse.org/request/show/1045057
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-Bottleneck?expand=0&rev=13
This commit is contained in:
Matej Cepl 2022-12-24 00:49:07 +00:00 committed by Git OBS Bridge
parent 8ec098824b
commit 40b1e8b96e
3 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Dec 23 17:21:43 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Skip a failing test -- gh#pydata/bottleneck#423
- Add rpmlintrc
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Aug 14 15:00:35 UTC 2022 - Arun Persaud <arun@gmx.de> Sun Aug 14 15:00:35 UTC 2022 - Arun Persaud <arun@gmx.de>

View File

@ -0,0 +1,2 @@
# Required for testing the installed module
addFilter("devel-file-in-non-devel-package.*bottleneck/tests/data/template_test")

View File

@ -16,9 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
%define skip_python36 1
Name: python-Bottleneck Name: python-Bottleneck
Version: 1.3.5 Version: 1.3.5
Release: 0 Release: 0
@ -26,6 +24,7 @@ Summary: A collection of fast NumPy array functions
License: BSD-2-Clause AND BSD-3-Clause License: BSD-2-Clause AND BSD-3-Clause
URL: https://github.com/pydata/bottleneck URL: https://github.com/pydata/bottleneck
Source0: https://files.pythonhosted.org/packages/source/B/Bottleneck/Bottleneck-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/B/Bottleneck/Bottleneck-%{version}.tar.gz
Source99: python-Bottleneck.rpmlintrc
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel >= 1.16.0} BuildRequires: %{python_module numpy-devel >= 1.16.0}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
@ -50,12 +49,14 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
%pytest_arch %{buildroot}%{$python_sitearch}/bottleneck/tests/ # https://github.com/pydata/bottleneck/issues/423
donttest="(move_test and test_move)"
%pytest_arch --pyargs bottleneck -k "not ($donttest)"
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst RELEASE.rst %doc README.rst RELEASE.rst
%{python_sitearch}/bottleneck/ %{python_sitearch}/bottleneck/
%{python_sitearch}/Bottleneck-%{version}-py*.egg-info %{python_sitearch}/Bottleneck-%{version}*-info
%changelog %changelog