1
0
forked from pool/python-geoip2

3 Commits

Author SHA256 Message Date
91ebce5454 Accepting request 1238834 from Application:Geo
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1238834
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=22
2025-01-21 20:09:34 +00:00
372a4c00c1 add wheel as dep for 15.6
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=34
2025-01-12 14:36:42 +00:00
23708aafe0 - update to version 4.8.0:
- The ``is_anycast`` attribute was added to ``geoip2.record.Traits``.
   This returns ``True`` if the IP address belongs to an
   `anycast network <https://en.wikipedia.org/wiki/Anycast>`_.
   This is available for the GeoIP2 Country, City Plus, and Insights web services
   and the GeoIP2 Country, City, and Enterprise databases.

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=33
2025-01-12 14:10:51 +00:00
4 changed files with 22 additions and 9 deletions

Binary file not shown.

BIN
python-geoip2-4.8.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sun Jan 12 14:01:47 UTC 2025 - Sebastian Wagner <sebix@sebix.at>
- update to version 4.8.0:
- The ``is_anycast`` attribute was added to ``geoip2.record.Traits``.
This returns ``True`` if the IP address belongs to an
`anycast network <https://en.wikipedia.org/wiki/Anycast>`_.
This is available for the GeoIP2 Country, City Plus, and Insights web services
and the GeoIP2 Country, City, and Enterprise databases.
-------------------------------------------------------------------
Sun Nov 26 10:29:23 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-geoip2
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,17 @@
%{?sle15_python_module_pythons}
Name: python-geoip2
Version: 4.7.0
Version: 4.8.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.7}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
@@ -37,9 +39,10 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-magic >= 0.4.18}
BuildRequires: %{python_module requests >= 2.14.0}
# /SECTION
Recommends: python-aiohttp >= 3.6.2
Requires: python-aiohttp >= 3.6.2
Requires: python-maxminddb >= 2.0.0
Requires: python-requests >= 2.14.0
Requires: python-setuptools
BuildArch: noarch
%python_subpackages
@@ -51,10 +54,10 @@ The API also works with MaxMind's free GeoLite2 databases.
%setup -q -n geoip2-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check