From 1d5879cf4acce282962de904eac7997ca7fd138b67ee1fc98544b324ff1b7cd6 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 10 Aug 2020 06:09:18 +0000 Subject: [PATCH] Accepting request 824548 from home:sebix:branches:Application:Geo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Depends on the maxminddb Update, which is already in Factory and soon in Tumbleweed. - update to version 4.0.2: - Added ``py.typed`` file per PEP 561. Reported by Árni Már Jónsson. - update to version 4.0.1: - Re-release to fix bad reStructuredText in ``README.md``. No substantive changes. - update to version 4.0.0: - IMPORTANT: Python 2.7 and 3.5 support has been dropped. Python 3.6 or greater is required. - Asyncio support has been added for web service requests. To make async requests, use ``geoip.webservice.AsyncClient``. - ``geoip.webservice.Client`` now provides a ``close()`` method and associated context managers to be used in ``with`` statements. - Type hints have been added. - The attributes ``postal_code`` and ``postal_confidence`` have been removed from ``geoip2.record.Location``. These would previously always be ``None``. - ``user_id`` is no longer supported as a named argument for the constructor on ``geoip2.webservice.Client``. Use ``account_id`` or a positional parameter instead. - For both ``Client`` and ``AsyncClient`` requests, the default timeout is now 60 seconds. OBS-URL: https://build.opensuse.org/request/show/824548 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=10 --- python-geoip2-3.0.0.tar.gz | 3 --- python-geoip2-4.0.2.tar.gz | 3 +++ python-geoip2.changes | 28 ++++++++++++++++++++++++++++ python-geoip2.spec | 15 +++++++++------ 4 files changed, 40 insertions(+), 9 deletions(-) delete mode 100644 python-geoip2-3.0.0.tar.gz create mode 100644 python-geoip2-4.0.2.tar.gz diff --git a/python-geoip2-3.0.0.tar.gz b/python-geoip2-3.0.0.tar.gz deleted file mode 100644 index 31e3446..0000000 --- a/python-geoip2-3.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5869e987bc54c0d707264fec4710661332cc38d2dca5a7f9bb5362d0308e2ce0 -size 293503 diff --git a/python-geoip2-4.0.2.tar.gz b/python-geoip2-4.0.2.tar.gz new file mode 100644 index 0000000..483cfd5 --- /dev/null +++ b/python-geoip2-4.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4afb5d899eac08444e461239c8afb165c90234adc0b5dc952792d9da74c9091b +size 299778 diff --git a/python-geoip2.changes b/python-geoip2.changes index eedacb3..ab74c0a 100644 --- a/python-geoip2.changes +++ b/python-geoip2.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Tue Jul 28 18:55:20 UTC 2020 - Sebastian Wagner + +- update to version 4.0.2: + - Added ``py.typed`` file per PEP 561. Reported by Árni Már Jónsson. + +------------------------------------------------------------------- +Thu Jul 23 20:21:35 UTC 2020 - Sebastian Wagner + +- update to version 4.0.1: + - Re-release to fix bad reStructuredText in ``README.md``. No substantive + changes. +- update to version 4.0.0: + - IMPORTANT: Python 2.7 and 3.5 support has been dropped. Python 3.6 or greater + is required. + - Asyncio support has been added for web service requests. To make async + requests, use ``geoip.webservice.AsyncClient``. + - ``geoip.webservice.Client`` now provides a ``close()`` method and associated + context managers to be used in ``with`` statements. + - Type hints have been added. + - The attributes ``postal_code`` and ``postal_confidence`` have been removed + from ``geoip2.record.Location``. These would previously always be ``None``. + - ``user_id`` is no longer supported as a named argument for the constructor + on ``geoip2.webservice.Client``. Use ``account_id`` or a positional + parameter instead. + - For both ``Client`` and ``AsyncClient`` requests, the default timeout is + now 60 seconds. + ------------------------------------------------------------------- Thu Apr 16 17:45:00 UTC 2020 - Marcus Rueckert diff --git a/python-geoip2.spec b/python-geoip2.spec index 6da2dca..e90375d 100644 --- a/python-geoip2.spec +++ b/python-geoip2.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-geoip2 -Version: 3.0.0 +Version: 4.0.2 Release: 0 Summary: MaxMind GeoIP2 Python API License: Apache-2.0 @@ -31,12 +31,15 @@ BuildRequires: %{python_module urllib3 >= 1.25.2} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module maxminddb >= 1.5.2} -BuildRequires: %{python_module requests >= 2.22.0} -BuildRequires: %{python_module requests-mock >= 0.5} +BuildRequires: %{python_module aiohttp >= 3.6.2} +BuildRequires: %{python_module maxminddb >= 2.0.0} +BuildRequires: %{python_module mocket >= 3.8.6} +BuildRequires: %{python_module python-magic >= 0.4.18} +BuildRequires: %{python_module requests >= 2.24.0} # /SECTION -Requires: python-maxminddb >= 1.5.2 -Requires: python-requests >= 2.22.0 +Requires: python-aiohttp >= 3.6.2 +Requires: python-maxminddb >= 2.0.0 +Requires: python-requests >= 2.24.0 Requires: python-urllib3 >= 1.25.2 BuildArch: noarch %ifpython2