Accepting request 827063 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/827063
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-maxminddb?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2020-08-25 10:37:02 +00:00 committed by Git OBS Bridge
parent 19270e7b9b
commit 0a7b5dae71
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Aug 16 14:12:17 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Replace nose with pytest
-------------------------------------------------------------------
Tue Jul 28 18:51:50 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@ -35,7 +35,7 @@ BuildRequires: python-ipaddress
%endif
# SECTION test requirements
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
@ -48,6 +48,7 @@ subnets (IPv4 or IPv6).
%prep
%setup -q -n maxminddb-%{version}
sed -i '/nose/d' setup.py
%build
export CFLAGS="%{optflags}"
@ -58,7 +59,7 @@ export CFLAGS="%{optflags}"
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%python_exec setup.py test
%pytest_arch
%files %{python_files}
%license LICENSE