- 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
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=23
- Support for mobile country code (MCC) and mobile network codes (MNC) was
added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2
City and Insights web services. ``mobile_country_code`` and
``mobile_network_code`` attributes were added to ``geoip2.model.ISP``
for the GeoIP2 ISP database and ``geoip2.record.Traits`` for the
Enterprise database and the GeoIP2 City and Insights web services.
We expect this data to be available by late January, 2022.
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=22
- The public API on ``geoip2.database`` is now explicitly defined by
setting ``__all__``.
- The return type of the ``metadata()`` method on ``Reader`` is now
``maxminddb.reader.Metadata`` rather than a union type.
- update to version 4.3.0:
- Previously, the ``py.typed`` file was not being added to the source
distribution. It is now explicitly specified in the manifest.
- The type hints for the database file in the ``Reader`` constructor have
been expanded to match those specified by ``maxmindb.open_database``. In
particular, ``os.PathLike`` and ``IO`` have been added.
- Corrected the type hint for the ``metadata()`` method on ``Reader``. It
will return a ``maxminddb.extension.Metadata`` if the C extension is being
used.
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=21
Depends on the maxminddb Update, which is already in Factory and soon in Tumbleweed.
- update to version 4.0.2:
- Added ``py.typed`` file per PEP 561. Reported by Árni Már Jónsson.
- update to version 4.0.1:
- Re-release to fix bad reStructuredText in ``README.md``. No substantive
changes.
- update to version 4.0.0:
- IMPORTANT: Python 2.7 and 3.5 support has been dropped. Python 3.6 or greater
is required.
- Asyncio support has been added for web service requests. To make async
requests, use ``geoip.webservice.AsyncClient``.
- ``geoip.webservice.Client`` now provides a ``close()`` method and associated
context managers to be used in ``with`` statements.
- Type hints have been added.
- The attributes ``postal_code`` and ``postal_confidence`` have been removed
from ``geoip2.record.Location``. These would previously always be ``None``.
- ``user_id`` is no longer supported as a named argument for the constructor
on ``geoip2.webservice.Client``. Use ``account_id`` or a positional
parameter instead.
- For both ``Client`` and ``AsyncClient`` requests, the default timeout is
now 60 seconds.
OBS-URL: https://build.opensuse.org/request/show/824548
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=10
- Use license macro for license
- update to version 2.8.0:
* Renamed user ID to account ID in the code and added support for the new
``ACCOUNT_ID_REQUIRED`` AND ``ACCOUNT_ID_UNKNOWN`` error codes.
- update to version 2.7.0:
* The ``is_in_european_union`` attribute was added to
``geoip2.record.Country`` and ``geoip2.record.RepresentedCountry``. This
attribute is ``True`` if the country is a member state of the European
Union.
OBS-URL: https://build.opensuse.org/request/show/603090
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=4