1
0

Accepting request 873829 from devel:languages:python:numeric

OBS-URL: https://build.opensuse.org/request/show/873829
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uncertainties?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2021-02-19 22:45:56 +00:00 committed by Git OBS Bridge
commit 7d5789c092
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>

View File

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