From dcc3d3b5acf428ec619e7b710f4667dcdfb49126fc108c55738a5d6270334e15 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 29 Jun 2018 20:23:14 +0000 Subject: [PATCH] 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 --- maxminddb-1.3.0.tar.gz | 3 --- maxminddb-1.4.0.tar.gz | 3 +++ python-maxminddb.changes | 19 +++++++++++++++++++ python-maxminddb.spec | 25 +++++++++++-------------- 4 files changed, 33 insertions(+), 17 deletions(-) delete mode 100644 maxminddb-1.3.0.tar.gz create mode 100644 maxminddb-1.4.0.tar.gz diff --git a/maxminddb-1.3.0.tar.gz b/maxminddb-1.3.0.tar.gz deleted file mode 100644 index 56089bf..0000000 --- a/maxminddb-1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:972399b6d08b4cbb7889f2d2489266d18811c5ef6109cc52eb28de4102bbc4be -size 1428863 diff --git a/maxminddb-1.4.0.tar.gz b/maxminddb-1.4.0.tar.gz new file mode 100644 index 0000000..01ed046 --- /dev/null +++ b/maxminddb-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c10bc71b4a4d76ec90fa8587684f480bbd88a853b9d5e8abbee7683da0791eb +size 264476 diff --git a/python-maxminddb.changes b/python-maxminddb.changes index 6c41b94..5ae8639 100644 --- a/python-maxminddb.changes +++ b/python-maxminddb.changes @@ -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 diff --git a/python-maxminddb.spec b/python-maxminddb.spec index 153e2e5..263c310 100644 --- a/python-maxminddb.spec +++ b/python-maxminddb.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -13,28 +13,27 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-maxminddb -Version: 1.3.0 +Version: 1.4.0 Release: 0 -License: Apache-2.0 Summary: Reader for the MaxMind DB format -Url: http://www.maxmind.com/ +License: Apache-2.0 Group: Development/Languages/Python +Url: http://www.maxmind.com/ Source: https://files.pythonhosted.org/packages/source/m/maxminddb/maxminddb-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} -BuildRequires: python2-ipaddress -BuildRequires: libmaxminddb-devel BuildRequires: fdupes +BuildRequires: libmaxminddb-devel +BuildRequires: python-rpm-macros +BuildRequires: python2-ipaddress # SECTION test requirements -%if %{with test} +BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} -%endif # /SECTION %ifpython2 Requires: python2-ipaddress @@ -63,14 +62,12 @@ export CFLAGS="%{optflags}" %python_expand rm %buildroot%{$python_sitearch}/maxminddb/extension/maxminddb.c %python_expand %fdupes %buildroot%{$python_sitearch} -%if %{with test} %check %python_exec setup.py test -%endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst +%license LICENSE +%doc README.rst %{python_sitearch}/* %changelog