19 Commits

Author SHA256 Message Date
Paolo Stivanin
77c72fef30 - 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

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=23
2022-07-04 07:13:23 +00:00
Sebastian Wagner
3d9906f860 - update to version 4.5.0:
- 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
2021-11-19 05:23:23 +00:00
Sebastian Wagner
aaa5df3d26 - update to version 4.4.0:
- 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
2021-09-28 18:03:30 +00:00
Sebastian Wagner
6d027c6c7b document patch source
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=20
2021-07-13 20:36:37 +00:00
Sebastian Wagner
30d8190b59 Accepting request 906077 from home:glaubitz:branches:Application:Geo
- Add patch to remove urllib3 and relax requests dependencies
  + 0001-Removing-unused-urllib3-dependency-loosening-request.patch
- Update BuildRequires and Requires from requirements.txt and setup.py

OBS-URL: https://build.opensuse.org/request/show/906077
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=19
2021-07-13 19:38:29 +00:00
Sebastian Wagner
b17ec08559 remove old file
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=17
2021-05-21 18:04:35 +00:00
Sebastian Wagner
34518af02c - update to version 4.2.0:
- You may now set a proxy to use when making web service requests by passing
   the ``proxy`` parameter to the ``AsyncClient`` or ``Client`` constructor.

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=16
2021-05-14 16:12:24 +00:00
Paolo Stivanin
7acdab65c0 Accepting request 854405 from home:bnavigator:branches:Application:Geo
- replace deprecated setup.py test call by pyunittest macro so that
  pip does not try to download stuff

OBS-URL: https://build.opensuse.org/request/show/854405
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=14
2020-12-10 07:43:01 +00:00
Martin Pluskal
08f62bbdfc Accepting request 846030 from home:polslinux:branches:Application:Geo
- update to version 4.1.0:
  * Added the is_residential_proxy attribute to geoip2.model.AnonymousIP
    and geoip2.record.Traits.
  * HTTPError now provides the decoded response content in the
    decoded_content attribute.

OBS-URL: https://build.opensuse.org/request/show/846030
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=12
2020-11-04 17:00:38 +00:00
Martin Pluskal
1d5879cf4a Accepting request 824548 from home:sebix:branches:Application:Geo
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
2020-08-10 06:09:18 +00:00
Martin Pluskal
303aa554f0 Accepting request 794640 from home:darix:branches:Application:Geo
- match buildrequires to requirements.txt

OBS-URL: https://build.opensuse.org/request/show/794640
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=8
2020-04-17 06:08:29 +00:00
Dominique Leuenberger
0360f0e15b Accepting request 781417 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/781417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=8
2020-03-08 21:22:14 +00:00
Dominique Leuenberger
7a970a904d Accepting request 683718 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/683718
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=7
2019-03-12 08:46:19 +00:00
Dominique Leuenberger
0e4fa93738 Accepting request 659392 from devel:languages:python
- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/659392
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=6
2018-12-26 23:26:08 +00:00
Dominique Leuenberger
349c0b318f Accepting request 617163 from devel:languages:python
- update to version 2.9.0:
 * You may now pass in the database via a file descriptor rather than a file
   name when creating a new ``geoip2.database.Reader`` object using ``MODE_FD``.
   This will read the database from the file descriptor into memory. Pull
   request by nkinkade. GitHub #53.

OBS-URL: https://build.opensuse.org/request/show/617163
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=5
2018-06-29 20:27:47 +00:00
Dominique Leuenberger
85eb152e78 Accepting request 603090 from devel:languages:python
- 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
2018-05-08 11:36:36 +00:00
Dominique Leuenberger
200afd2c09 Accepting request 582255 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/582255
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=3
2018-03-04 11:52:10 +00:00
Dominique Leuenberger
e58a088519 Accepting request 538853 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/538853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=2
2017-11-04 18:30:28 +00:00
Dominique Leuenberger
10b9798da7 Accepting request 504412 from devel:languages:python
Requires deletion of python3-geoip in Request#504411

OBS-URL: https://build.opensuse.org/request/show/504412
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=1
2017-07-04 07:09:14 +00:00