3 Commits

Author SHA256 Message Date
dcaf605f70 Accepting request 1276576 from Application:Geo
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1276576
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=23
2025-05-12 14:46:12 +00:00
e0f8924fa6 update requirements
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=37
2025-05-04 07:08:28 +00:00
760a1473c6 - update to version 5.0.0:
- BREAKING: The ``raw`` attribute on the model classes has been replaced
   with a ``to_dict()`` method. This can be used to get a representation of
   the object that is suitable for serialization.
 - BREAKING: The ``ip_address`` property on the model classes now always returns
   a ``ipaddress.IPv4Address`` or ``ipaddress.IPv6Address``.
 - BREAKING: The model and record classes now require all arguments other than
   ``locales`` and ``ip_address`` to be keyword arguments.
 - BREAKING: ``geoip2.mixins`` has been made internal. This normally would not
   have been used by external code.
 - IMPORTANT: Python 3.9 or greater is required. If you are using an older
   version, please use an earlier release.
 - ``metro_code`` on ``geoip2.record.Location`` has been deprecated. The
   code values are no longer being maintained.
 - The type hinting for the optional ``locales`` keyword argument now allows
   any sequence of strings rather than only list of strings.
- update to version 4.8.1:
 - ``setuptools`` was incorrectly listed as a runtime dependency. This has
   been removed. Pull request by Mathieu Dupuy. GitHub #174.

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=36
2025-05-04 06:59:46 +00:00
4 changed files with 36 additions and 10 deletions

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a75192de893ab499640060a95212441286a18593854e68378d55dbff1aaf9a2
size 175777

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Sun May 4 06:58:09 UTC 2025 - Sebastian Wagner <sebix@sebix.at>
- update to version 5.0.0:
- BREAKING: The ``raw`` attribute on the model classes has been replaced
with a ``to_dict()`` method. This can be used to get a representation of
the object that is suitable for serialization.
- BREAKING: The ``ip_address`` property on the model classes now always returns
a ``ipaddress.IPv4Address`` or ``ipaddress.IPv6Address``.
- BREAKING: The model and record classes now require all arguments other than
``locales`` and ``ip_address`` to be keyword arguments.
- BREAKING: ``geoip2.mixins`` has been made internal. This normally would not
have been used by external code.
- IMPORTANT: Python 3.9 or greater is required. If you are using an older
version, please use an earlier release.
- ``metro_code`` on ``geoip2.record.Location`` has been deprecated. The
code values are no longer being maintained.
- The type hinting for the optional ``locales`` keyword argument now allows
any sequence of strings rather than only list of strings.
- update to version 4.8.1:
- ``setuptools`` was incorrectly listed as a runtime dependency. This has
been removed. Pull request by Mathieu Dupuy. GitHub #174.
-------------------------------------------------------------------
Sun Jan 12 14:01:47 UTC 2025 - Sebastian Wagner <sebix@sebix.at>

View File

@@ -18,14 +18,14 @@
%{?sle15_python_module_pythons}
Name: python-geoip2
Version: 4.8.0
Version: 5.0.0
Release: 0
Summary: MaxMind GeoIP2 Python API
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/maxmind/GeoIP2-python
Source: https://files.pythonhosted.org/packages/source/g/geoip2/geoip2-%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
@@ -33,16 +33,19 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module aiohttp >= 3.6.2}
BuildRequires: %{python_module maxminddb >= 2.3.0}
BuildRequires: %{python_module maxminddb >= 2.5.1}
BuildRequires: %{python_module mocket >= 3.11.0}
BuildRequires: %{python_module pytest}
%if 0%{?suse_version} > 1600
# Leap has too old pytest-httpserver
BuildRequires: %{python_module pytest-httpserver >= 1.0.10}
%endif
BuildRequires: %{python_module python-magic >= 0.4.18}
BuildRequires: %{python_module requests >= 2.14.0}
BuildRequires: %{python_module requests >= 2.24.0}
# /SECTION
Requires: python-aiohttp >= 3.6.2
Requires: python-maxminddb >= 2.0.0
Requires: python-requests >= 2.14.0
Requires: python-setuptools
Requires: python-maxminddb >= 2.5.1
Requires: python-requests >= 2.24.0
BuildArch: noarch
%python_subpackages