From 7acdab65c07994696417a6f710d0ad6efafbb0f9d2f25583985bd3d4856410c0 Mon Sep 17 00:00:00 2001 From: Paolo Stivanin Date: Thu, 10 Dec 2020 07:43:01 +0000 Subject: [PATCH] Accepting request 854405 from home:bnavigator:branches:Application:Geo - replace deprecated setup.py test call by pyunittest macro so that pip does not try to download stuff OBS-URL: https://build.opensuse.org/request/show/854405 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=14 --- python-geoip2.changes | 6 ++++++ python-geoip2.spec | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-geoip2.changes b/python-geoip2.changes index 95f469f..2534db3 100644 --- a/python-geoip2.changes +++ b/python-geoip2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 10 01:27:35 UTC 2020 - Benjamin Greiner + +- replace deprecated setup.py test call by pyunittest macro so that + pip does not try to download stuff + ------------------------------------------------------------------- Wed Nov 4 15:56:32 UTC 2020 - Paolo Stivanin diff --git a/python-geoip2.spec b/python-geoip2.spec index 951f00b..f3bbd55 100644 --- a/python-geoip2.spec +++ b/python-geoip2.spec @@ -62,11 +62,12 @@ The API also works with MaxMind's free GeoLite2 databases. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest tests/*_test.py -v %files %{python_files} %license LICENSE %doc README.rst HISTORY.rst -%{python_sitelib}/* +%{python_sitelib}/geoip2 +%{python_sitelib}/geoip2-%{version}*-info %changelog