Accepting request 1009358 from home:jayvdb:branches:devel:languages:python:numeric

- Allow numpy 1.23

OBS-URL: https://build.opensuse.org/request/show/1009358
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=57
This commit is contained in:
Markéta Machová 2022-10-10 12:53:04 +00:00 committed by Git OBS Bridge
parent bf674995ad
commit 33fa80968e
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 10 10:07:52 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
- Allow numpy 1.23
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 3 12:02:05 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com> Mon Oct 3 12:02:05 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -21,7 +21,7 @@
%define plainpython python %define plainpython python
# upper bound is exclusive: min-numpy_ver <= numpy < max_numpy_ver # upper bound is exclusive: min-numpy_ver <= numpy < max_numpy_ver
%define min_numpy_ver 1.18 %define min_numpy_ver 1.18
%define max_numpy_ver 1.23 %define max_numpy_ver 1.24
%global flavor @BUILD_FLAVOR@%{nil} %global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test" %if "%{flavor}" == "test"
%define psuffix -test %define psuffix -test
@ -136,8 +136,8 @@ sed 's|^%{buildroot}|%%exclude |' devel-files0-%{$python_bin_suffix}.files > dev
%check %check
%if %{with test} %if %{with test}
# test the installed package, not the source without compiled modules # test the installed package, not the source without compiled modules
mkdir emtpytestdir mkdir emptytestdir
pushd emtpytestdir pushd emptytestdir
%{python_expand # numbatests: check specific tests with `osc build -M test --define="numbatests <testnames>"` %{python_expand # numbatests: check specific tests with `osc build -M test --define="numbatests <testnames>"`
%{_bindir}/numba-%{$python_bin_suffix} -s %{_bindir}/numba-%{$python_bin_suffix} -s
$python -m numba.runtests -v -b --exclude-tags='long_running' -m %{_smp_build_ncpus} -- %{?!numbatests:numba.tests}%{?numbatests} $python -m numba.runtests -v -b --exclude-tags='long_running' -m %{_smp_build_ncpus} -- %{?!numbatests:numba.tests}%{?numbatests}
@ -160,7 +160,7 @@ popd
%{python_sitearch}/numba/ %{python_sitearch}/numba/
%{python_sitearch}/numba-%{version}-py*.egg-info %{python_sitearch}/numba-%{version}-py*.egg-info
%files %{python_files devel} -f devel-files-%{python_bin_suffix}.files %files %{python_files devel} -f devel-files-%{python_bin_suffix}.files
%license LICENSE %license LICENSE
%endif %endif