Accepting request 617160 from devel:languages:python
- update to version 1.4.0: * IMPORTANT: Previously, the pure Python reader would allow `ipaddress.IPv4Address` and `ipaddress.IPv6Address` objects when calling `.get()`. This would fail with the C extension. The fact that these objects worked at all was an implementation detail and has varied with different releases. This release makes the pure Python implementation consistent with the extension. A `TypeError` will now be thrown if you attempt to use these types with either the pure Python implementation or the extension. The IP address passed to `.get()` should be a string type. * Fix issue where incorrect size was used when unpacking some types with the pure Python reader. Reported by Lee Symes. GitHub #30. * You may now pass in the database via a file descriptor rather than a file name when creating a new ``maxminddb.Reader`` object using ``MODE_FD``. This will read the database from the file descriptor into memory. Pull request by nkinkade. GitHub #33. OBS-URL: https://build.opensuse.org/request/show/617160 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-maxminddb?expand=0&rev=2
This commit is contained in:
parent
b45b308b52
commit
dcc3d3b5ac
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:972399b6d08b4cbb7889f2d2489266d18811c5ef6109cc52eb28de4102bbc4be
|
|
||||||
size 1428863
|
|
3
maxminddb-1.4.0.tar.gz
Normal file
3
maxminddb-1.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5c10bc71b4a4d76ec90fa8587684f480bbd88a853b9d5e8abbee7683da0791eb
|
||||||
|
size 264476
|
@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 27 08:30:23 UTC 2018 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
- update to version 1.4.0:
|
||||||
|
* IMPORTANT: Previously, the pure Python reader would allow
|
||||||
|
`ipaddress.IPv4Address` and `ipaddress.IPv6Address` objects when calling
|
||||||
|
`.get()`. This would fail with the C extension. The fact that these objects
|
||||||
|
worked at all was an implementation detail and has varied with different
|
||||||
|
releases. This release makes the pure Python implementation consistent
|
||||||
|
with the extension. A `TypeError` will now be thrown if you attempt to
|
||||||
|
use these types with either the pure Python implementation or the
|
||||||
|
extension. The IP address passed to `.get()` should be a string type.
|
||||||
|
* Fix issue where incorrect size was used when unpacking some types with the
|
||||||
|
pure Python reader. Reported by Lee Symes. GitHub #30.
|
||||||
|
* You may now pass in the database via a file descriptor rather than a file
|
||||||
|
name when creating a new ``maxminddb.Reader`` object using ``MODE_FD``.
|
||||||
|
This will read the database from the file descriptor into memory. Pull
|
||||||
|
request by nkinkade. GitHub #33.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 25 15:52:15 UTC 2017 - sebix+novell.com@sebix.at
|
Thu May 25 15:52:15 UTC 2017 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-maxminddb
|
# spec file for package python-maxminddb
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -13,28 +13,27 @@
|
|||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
|
||||||
Name: python-maxminddb
|
Name: python-maxminddb
|
||||||
Version: 1.3.0
|
Version: 1.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
License: Apache-2.0
|
|
||||||
Summary: Reader for the MaxMind DB format
|
Summary: Reader for the MaxMind DB format
|
||||||
Url: http://www.maxmind.com/
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Url: http://www.maxmind.com/
|
||||||
Source: https://files.pythonhosted.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python2-ipaddress
|
|
||||||
BuildRequires: libmaxminddb-devel
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: libmaxminddb-devel
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: python2-ipaddress
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
%if %{with test}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
%endif
|
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: python2-ipaddress
|
Requires: python2-ipaddress
|
||||||
@ -63,14 +62,12 @@ export CFLAGS="%{optflags}"
|
|||||||
%python_expand rm %buildroot%{$python_sitearch}/maxminddb/extension/maxminddb.c
|
%python_expand rm %buildroot%{$python_sitearch}/maxminddb/extension/maxminddb.c
|
||||||
%python_expand %fdupes %buildroot%{$python_sitearch}
|
%python_expand %fdupes %buildroot%{$python_sitearch}
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
%python_exec setup.py test
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE
|
||||||
%doc LICENSE README.rst
|
%doc README.rst
|
||||||
%{python_sitearch}/*
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user