From 7fe5c3e5f9bd798290ddb184cc8258281fa616bcfc3373ffea5a57a0fee78c97 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 28 Sep 2021 17:16:23 +0000 Subject: [PATCH] Accepting request 921366 from devel:languages:python - update to version 2.2.0: - The return type for ``maxminddb.open_database()`` has been simplified to be just the ``Reader`` class as opposed to a union of that with the extension class. This is done by casting the extension to ``Reader``. The extension class has the same public API as the pure Python implementation. This simplifies type checking for users of this library. The ``Reader`` class is exposed as ``maxminddb.Reader``. Pull request by wouter bolsterlee. GitHub #88. - ``maxminddb.__all__`` is now set to define a public API. Pull request by wouter bolsterlee. GitHub #88. - Fix minor regression in ``repr`` output of ``maxminddb.reader.Metadata`` in 2.1.0. - update to version 2.1.0: - The C extension now correctly supports objects that implement the ``os.PathLike`` interface. - When opening a database fails due to an access issue, the correct ``OSError`` subclass will now be thrown. - The ``Metadata`` class object is now available from the C extension module as ``maxminddb.extension.Metadata`` rather than ``maxminddb.extension.extension``. - Type stubs have been added for ``maxminddb.extension``. OBS-URL: https://build.opensuse.org/request/show/921366 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-maxminddb?expand=0&rev=12 --- maxminddb-2.0.3.tar.gz | 3 --- maxminddb-2.2.0.tar.gz | 3 +++ python-maxminddb.changes | 29 +++++++++++++++++++++++++++++ python-maxminddb.spec | 2 +- 4 files changed, 33 insertions(+), 4 deletions(-) delete mode 100644 maxminddb-2.0.3.tar.gz create mode 100644 maxminddb-2.2.0.tar.gz diff --git a/maxminddb-2.0.3.tar.gz b/maxminddb-2.0.3.tar.gz deleted file mode 100644 index 2ba819c..0000000 --- a/maxminddb-2.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:47e86a084dd814fac88c99ea34ba3278a74bc9de5a25f4b815b608798747c7dc -size 286098 diff --git a/maxminddb-2.2.0.tar.gz b/maxminddb-2.2.0.tar.gz new file mode 100644 index 0000000..c197e1a --- /dev/null +++ b/maxminddb-2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e37707ec4fab115804670e0fb7aedb4b57075a8b6f80052bdc648d3c005184e5 +size 330865 diff --git a/python-maxminddb.changes b/python-maxminddb.changes index 2cbb4eb..ebba92b 100644 --- a/python-maxminddb.changes +++ b/python-maxminddb.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Fri Sep 24 19:46:34 UTC 2021 - Sebastian Wagner + +- update to version 2.2.0: + - The return type for ``maxminddb.open_database()`` has been simplified + to be just the ``Reader`` class as opposed to a union of that with + the extension class. This is done by casting the extension to + ``Reader``. The extension class has the same public API as the + pure Python implementation. This simplifies type checking for users of + this library. The ``Reader`` class is exposed as ``maxminddb.Reader``. + Pull request by wouter bolsterlee. GitHub #88. + - ``maxminddb.__all__`` is now set to define a public API. Pull request + by wouter bolsterlee. GitHub #88. + - Fix minor regression in ``repr`` output of ``maxminddb.reader.Metadata`` + in 2.1.0. + +------------------------------------------------------------------- +Sat Sep 18 20:19:51 UTC 2021 - Sebastian Wagner + +- update to version 2.1.0: + - The C extension now correctly supports objects that implement the + ``os.PathLike`` interface. + - When opening a database fails due to an access issue, the correct + ``OSError`` subclass will now be thrown. + - The ``Metadata`` class object is now available from the C extension + module as ``maxminddb.extension.Metadata`` rather than + ``maxminddb.extension.extension``. + - Type stubs have been added for ``maxminddb.extension``. + ------------------------------------------------------------------- Sat Jun 5 14:03:36 UTC 2021 - Sebastian Wagner diff --git a/python-maxminddb.spec b/python-maxminddb.spec index 7fd3188..9f5b9bf 100644 --- a/python-maxminddb.spec +++ b/python-maxminddb.spec @@ -18,7 +18,7 @@ %define skip_python2 1 Name: python-maxminddb -Version: 2.0.3 +Version: 2.2.0 Release: 0 Summary: Reader for the MaxMind DB format License: Apache-2.0