1
0

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

- Don't install and test numpy for python36. With NumPy 1.20, TW
  no longer provides a python36-numpy

OBS-URL: https://build.opensuse.org/request/show/873812
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-uncertainties?expand=0&rev=21
This commit is contained in:
Matej Cepl 2021-02-19 16:04:11 +00:00 committed by Git OBS Bridge
parent 41857e81fa
commit 106726e2f7
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Feb 19 15:17:25 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Don't install and test numpy for python36. With NumPy 1.20, TW
no longer provides a python36-numpy
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 9 20:05:34 UTC 2021 - Arun Persaud <arun@gmx.de> Sat Jan 9 20:05:34 UTC 2021 - Arun Persaud <arun@gmx.de>

View File

@ -26,13 +26,13 @@ Group: Development/Languages/Python
URL: https://github.com/lebigot/uncertainties/ URL: https://github.com/lebigot/uncertainties/
Source: https://files.pythonhosted.org/packages/source/u/uncertainties/uncertainties-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/u/uncertainties/uncertainties-%{version}.tar.gz
BuildRequires: %{python_module future} BuildRequires: %{python_module future}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testsuite} BuildRequires: %{python_module testsuite}
BuildRequires: %{python_module tools} BuildRequires: %{python_module tools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
Requires: python-future Requires: python-future
BuildArch: noarch BuildArch: noarch
%if 0%{?suse_version} %if 0%{?suse_version}
@ -58,12 +58,14 @@ sed -i -e '/^#!\//, 1d' uncertainties/lib1to2/test_1to2.py
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest # no python36-numpy
python36_ignore="--ignore uncertainties/unumpy"
%pytest ${$python_ignore}
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc README.rst %doc README.rst
%{python_sitelib}/uncertainties/ %{python_sitelib}/uncertainties/
%{python_sitelib}/uncertainties-%{version}-py*.egg-info %{python_sitelib}/uncertainties-%{version}*-info
%changelog %changelog