5 Commits

Author SHA256 Message Date
b7b8d516ad Accepting request 1330346 from Application:Geo
Update to version 5.2.0

OBS-URL: https://build.opensuse.org/request/show/1330346
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=24
2026-02-02 13:55:19 +00:00
435050cfbe Update to version 5.2.0 and handle upstream switch to uv-build
This depends on https://build.opensuse.org/requests/1329866.

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=39
2026-01-29 20:05:04 +00:00
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
5 changed files with 96 additions and 14 deletions

View File

@@ -0,0 +1,26 @@
--- a/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
+++ b/pyproject.toml 2026-01-29 19:40:59.478833382 +0100
@@ -43,19 +43,11 @@
]
[build-system]
-requires = ["uv_build>=0.7.19,<0.8.0"]
-build-backend = "uv_build"
+requires = ["setuptools"]
+build-backend = "setuptools.build_meta"
-[tool.uv.build-backend]
-source-include = [
- "HISTORY.rst",
- "README.rst",
- "LICENSE",
- "docs/html",
- "examples/*.py",
- "tests/*.py",
- "tests/data/test-data/*.mmdb"
-]
+[tool.setuptools.package-data]
+geoip2 = ["py.typed"]
[project.urls]
Homepage = "https://www.maxmind.com/"

Binary file not shown.

View File

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

View File

@@ -1,3 +1,50 @@
-------------------------------------------------------------------
Thu Jan 29 18:42:21 UTC 2026 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Require uv-build on Tumbleweed
- Add pyproject-setuptools.patch to switch back to setuptools on distributions
without uv-build
-------------------------------------------------------------------
Thu Jan 29 18:04:59 UTC 2026 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Update to version 5.2.0:
* maxminddb has been upgraded to 3.0.0. This includes free-threading support.
* Setuptools has been replaced with the uv build backend for building the package.
* A new anonymizer object has been added to geoip2.models.Insights.
* A new ip_risk_snapshot property has been added to geoip2.records.Traits.
* The following properties on geoip2.records.Traits have been deprecated:
is_anonymous, is_anonymous_vpn, is_hosting_provider, is_public_proxy,
is_residential_proxy, and is_tor_exit_node.
- From 5.1.0:
* Support for the GeoIP Anonymous Plus database has been added.
* Reorganized module documentation to improve language-server support.
- From 5.0.1:
* Allow ip_address in the Traits record to be None again.
-------------------------------------------------------------------
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> Sun Jan 12 14:01:47 UTC 2025 - Sebastian Wagner <sebix@sebix.at>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-geoip2 # spec file for package python-geoip2
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2026 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,31 +18,40 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-geoip2 Name: python-geoip2
Version: 4.8.0 Version: 5.2.0
Release: 0 Release: 0
Summary: MaxMind GeoIP2 Python API Summary: MaxMind GeoIP2 Python API
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/maxmind/GeoIP2-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 Source: https://files.pythonhosted.org/packages/source/g/geoip2/geoip2-%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8} %if 0%{?suse_version} <= 1600
BuildRequires: %{python_module pip} # partial reversion of 83825a8 ("Switch to uv build")
Patch0: pyproject-setuptools.patch
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
%else
BuildRequires: %{python_module uv-build}
%endif
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module aiohttp >= 3.6.2} BuildRequires: %{python_module aiohttp >= 3.6.2}
BuildRequires: %{python_module maxminddb >= 2.3.0} BuildRequires: %{python_module maxminddb >= 3.0.0}
BuildRequires: %{python_module mocket >= 3.11.0} BuildRequires: %{python_module mocket >= 3.11.0}
BuildRequires: %{python_module pytest} 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 python-magic >= 0.4.18}
BuildRequires: %{python_module requests >= 2.14.0} BuildRequires: %{python_module requests >= 2.24.0}
# /SECTION # /SECTION
Requires: python-aiohttp >= 3.6.2 Requires: python-aiohttp >= 3.6.2
Requires: python-maxminddb >= 2.0.0 Requires: python-maxminddb >= 3.0.0
Requires: python-requests >= 2.14.0 Requires: python-requests >= 2.24.0
Requires: python-setuptools
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -51,7 +60,7 @@ This package provides an API for the GeoIP2 web services and databases.
The API also works with MaxMind's free GeoLite2 databases. The API also works with MaxMind's free GeoLite2 databases.
%prep %prep
%setup -q -n geoip2-%{version} %autosetup -n geoip2-%{version} -p 1
%build %build
%pyproject_wheel %pyproject_wheel
@@ -68,6 +77,6 @@ rm -v tests/webservice_test.py
%license LICENSE %license LICENSE
%doc README.rst HISTORY.rst %doc README.rst HISTORY.rst
%{python_sitelib}/geoip2 %{python_sitelib}/geoip2
%{python_sitelib}/geoip2-%{version}*-info %{python_sitelib}/geoip2-%{version}.dist-info
%changelog %changelog