From 79d9ecad2832914b4f17ca2b7330fa47c1da7abf Mon Sep 17 00:00:00 2001
From: polslinux <>
Date: Jul 05 2022 10:33:01 +0000
Subject: Update python-geoip2 to version 4.6.0 / rev 17 via SR 986549
https://build.opensuse.org/request/show/986549
by user polslinux + dimstar_suse
- 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
---
diff --git a/.files b/.files
index 79728ab..dd7ec2e 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index cf819d0..c9ce465 100644
--- a/.rev
+++ b/.rev
@@ -148,4 +148,18 @@
Automatic submission by obs-autosubmit933992
+
+ e440408143b2ddde12a9416e1df34fe7
+ 4.6.0
+
+ dimstar_suse
+ - 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
+
+ 986549
+
diff --git a/0001-Removing-unused-urllib3-dependency-loosening-request.patch b/0001-Removing-unused-urllib3-dependency-loosening-request.patch
index d181bb3..d382961 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 120000
index dd31cb1..0000000
--- a/python-geoip2-4.5.0.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafybeig6cuhrcwx5fexxrclc5ib2ctvqr5sq3a5uei5wy3go37wihlc5u4
\ No newline at end of file
diff --git a/python-geoip2-4.6.0.tar.gz b/python-geoip2-4.6.0.tar.gz
new file mode 120000
index 0000000..43b7b72
--- /dev/null
+++ b/python-geoip2-4.6.0.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafybeifiwy6qf73w4hqgg2hgrwqs6m4b3bxxl2pemuhrbtxjvi772nz774
\ No newline at end of file
diff --git a/python-geoip2.changes b/python-geoip2.changes
index 76f4833..b47a6e0 100644
--- a/python-geoip2.changes
+++ b/python-geoip2.changes
@@ -1,4 +1,14 @@
-------------------------------------------------------------------
+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
- update to version 4.5.0:
diff --git a/python-geoip2.spec b/python-geoip2.spec
index af0e88b..d077420 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