diff --git a/0001-Removing-unused-urllib3-dependency-loosening-request.patch b/0001-Removing-unused-urllib3-dependency-loosening-request.patch index 7f857e0..61d403e 100644 --- a/0001-Removing-unused-urllib3-dependency-loosening-request.patch +++ b/0001-Removing-unused-urllib3-dependency-loosening-request.patch @@ -13,11 +13,11 @@ Subject: [PATCH] Removing unused urllib3 dependency, loosening requests setup.py | 5 +++++ 6 files changed, 46 insertions(+), 15 deletions(-) -diff --git a/README.rst b/README.rst -index a17082e..8969781 100644 ---- a/README.rst -+++ b/README.rst -@@ -19,6 +19,9 @@ To install the ``geoip2`` module, type: +Index: geoip2-4.6.0/README.rst +=================================================================== +--- geoip2-4.6.0.orig/README.rst ++++ geoip2-4.6.0/README.rst +@@ -17,6 +17,9 @@ To install the ``geoip2`` module, type: .. code-block:: bash $ pip install geoip2 @@ -27,11 +27,11 @@ index a17082e..8969781 100644 If you are not able to use pip, you may also use easy_install from the source directory: -diff --git a/geoip2/webservice.py b/geoip2/webservice.py -index 4b1fc15..6ab0e84 100644 ---- a/geoip2/webservice.py -+++ b/geoip2/webservice.py -@@ -27,12 +27,21 @@ +Index: geoip2-4.6.0/geoip2/webservice.py +=================================================================== +--- geoip2-4.6.0.orig/geoip2/webservice.py ++++ geoip2-4.6.0/geoip2/webservice.py +@@ -27,12 +27,21 @@ Requests to the web service are always m import ipaddress import json @@ -57,7 +57,7 @@ index 4b1fc15..6ab0e84 100644 import geoip2 import geoip2.models -@@ -48,13 +57,28 @@ +@@ -48,13 +57,28 @@ from geoip2.errors import ( from geoip2.models import City, Country, Insights from geoip2.types import IPAddress @@ -93,20 +93,20 @@ index 4b1fc15..6ab0e84 100644 class BaseClient: # pylint: disable=missing-class-docstring, too-few-public-methods -diff --git a/requirements.txt b/requirements.txt -index af2c6ff..9c772e4 100644 ---- a/requirements.txt -+++ b/requirements.txt +Index: geoip2-4.6.0/requirements.txt +=================================================================== +--- geoip2-4.6.0.orig/requirements.txt ++++ geoip2-4.6.0/requirements.txt @@ -1,4 +1 @@ -aiohttp>=3.6.2,<4.0.0 maxminddb>=2.2.0,<3.0.0 -requests>=2.24.0,<3.0.0 -urllib3>=1.25.2,<2.0.0 -diff --git a/setup.cfg b/setup.cfg -index 9d48adc..c77568d 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -22,8 +22,9 @@ +Index: geoip2-4.6.0/setup.cfg +=================================================================== +--- geoip2-4.6.0.orig/setup.cfg ++++ geoip2-4.6.0/setup.cfg +@@ -26,8 +26,9 @@ deps = pytest mocket commands = pytest tests @@ -117,11 +117,11 @@ index 9d48adc..c77568d 100644 tag_build = tag_date = 0 - -diff --git a/setup.py b/setup.py -index 2194e8f..14b6d99 100644 ---- a/setup.py -+++ b/setup.py -@@ -26,6 +26,11 @@ +Index: geoip2-4.6.0/setup.py +=================================================================== +--- geoip2-4.6.0.orig/setup.py ++++ geoip2-4.6.0/setup.py +@@ -26,6 +26,11 @@ setup( include_package_data=True, python_requires=">=3.6", install_requires=requirements, diff --git a/python-geoip2-4.5.0.tar.gz b/python-geoip2-4.5.0.tar.gz deleted file mode 100644 index b74c026..0000000 --- a/python-geoip2-4.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b542252e87eb40adc3a2fc0f4e84b514c4c5e04ed46923a3a74d509f25f3103a -size 353124 diff --git a/python-geoip2-4.6.0.tar.gz b/python-geoip2-4.6.0.tar.gz new file mode 100644 index 0000000..e79f354 --- /dev/null +++ b/python-geoip2-4.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0e80bce80b06bb38bd08bf4877d5a84e354e932095e6ccfb4d27bb598fa4f83 +size 355989 diff --git a/python-geoip2.changes b/python-geoip2.changes index fd3be09..e89ecee 100644 --- a/python-geoip2.changes +++ b/python-geoip2.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Jul 4 07:11:02 UTC 2022 - Paolo Stivanin + +- Update to version 4.6.0: + - The AddressNotFoundError class now has an ip_address attribute + with the lookup address and network property for the empty network + in the database containing the IP address. These are only available + when using a database, not the web service. +- Rebase 0001-Removing-unused-urllib3-dependency-loosening-request.patch + ------------------------------------------------------------------- Thu Nov 18 19:55:34 UTC 2021 - Sebastian Wagner diff --git a/python-geoip2.spec b/python-geoip2.spec index 7000979..353bee4 100644 --- a/python-geoip2.spec +++ b/python-geoip2.spec @@ -1,7 +1,7 @@ # # spec file for package python-geoip2 # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-geoip2 -Version: 4.5.0 +Version: 4.6.0 Release: 0 Summary: MaxMind GeoIP2 Python API License: Apache-2.0