Accepting request 617163 from devel:languages:python

- update to version 2.9.0:
 * You may now pass in the database via a file descriptor rather than a file
   name when creating a new ``geoip2.database.Reader`` object using ``MODE_FD``.
   This will read the database from the file descriptor into memory. Pull
   request by nkinkade. GitHub #53.

OBS-URL: https://build.opensuse.org/request/show/617163
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2018-06-29 20:27:47 +00:00 committed by Git OBS Bridge
parent 85eb152e78
commit 349c0b318f
4 changed files with 18 additions and 15 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:762e5ea1400d40772249c0778328b6fc82b82503092ceb48c00a7500d7ce4a64
size 460415

3
geoip2-2.9.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7ffe9d258e71a42cf622ce6350d976de1d0312b9f2fbce3975c7d838b57ecf0
size 459342

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sun May 27 08:28:33 UTC 2018 - sebix+novell.com@sebix.at
- update to version 2.9.0:
* You may now pass in the database via a file descriptor rather than a file
name when creating a new ``geoip2.database.Reader`` object using ``MODE_FD``.
This will read the database from the file descriptor into memory. Pull
request by nkinkade. GitHub #53.
-------------------------------------------------------------------
Wed May 2 12:02:32 UTC 2018 - tchvatal@suse.com

View File

@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-geoip2
Version: 2.8.0
Version: 2.9.0
Release: 0
Summary: MaxMind GeoIP2 Python API
License: Apache-2.0
@ -28,20 +28,16 @@ URL: http://www.maxmind.com/
Source: https://files.pythonhosted.org/packages/source/g/geoip2/geoip2-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-maxminddb >= 1.2.1
Requires: python-requests >= 2.9
BuildArch: noarch
%if %{with test}
# SECTION test requirements
BuildRequires: %{python_module maxminddb >= 1.2.1}
BuildRequires: %{python_module requests >= 2.9}
%endif
# SECTION test requirements
BuildRequires: fdupes
%if %{with test}
BuildRequires: %{python_module requests-mock >= 0.5}
%endif
# /SECTION
Requires: python-maxminddb >= 1.4.0
Requires: python-requests >= 2.9
BuildArch: noarch
%ifpython2
Recommends: python2-ipaddress
%endif
@ -61,10 +57,8 @@ The API also works with MaxMind's free GeoLite2 databases.
%python_install
%python_expand %fdupes %{buildroot}%{$sitearch}
%if %{with test}
%check
%python_exec setup.py test
%endif
%files %{python_files}
%license LICENSE