39 Commits

Author SHA256 Message Date
Ana Guerrero
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
Sebastian Wagner
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
Sebastian Wagner
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
Ana Guerrero
3221d2aef0 Accepting request 1128910 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/1128910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=21
2023-11-27 21:42:36 +00:00
Martin Pluskal
f3822d04c8 Accepting request 1128869 from home:dirkmueller:Factory
- update to 4.7.0:
  * drop support for python 3.6
  - drop
    0001-Removing-unused-urllib3-dependency-loosening-request.patch
    (upstream)

  the tests/test_webservice which need porting to new python-mocket
    when using a database, not the web service.
  pip does not try to download stuff
    decoded_content attribute.
- match buildrequires to requirements.txt

OBS-URL: https://build.opensuse.org/request/show/1128869
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=31
2023-11-26 13:14:56 +00:00
Dominique Leuenberger
0820c27993 Accepting request 1092186 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/1092186
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=20
2023-06-12 13:24:17 +00:00
Sebastian Wagner
b540b95863 Accepting request 1092097 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1092097
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=29
2023-06-11 10:57:12 +00:00
Dominique Leuenberger
6a7f48dfd4 Accepting request 1066108 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/1066108
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=19
2023-02-18 16:10:15 +00:00
Paolo Stivanin
f8e755737f Accepting request 1066044 from home:dirkmueller:Factory
- fix tests on python 3.8 as well with newer python-mocket by skipping
  the tests/test_webservice which need porting to new python-mocket

OBS-URL: https://build.opensuse.org/request/show/1066044
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=27
2023-02-16 07:20:08 +00:00
Dominique Leuenberger
ac19491ee8 Accepting request 1060563 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/1060563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=18
2023-01-25 16:42:25 +00:00
Paolo Stivanin
1724afec05 Accepting request 1060475 from home:dgarcia:branches:Application:Geo
- Disable broken tests for python 3.11. python-mocket currently does not work
  with python 3.11, so we should disable tests that uses it until it's
  supported.
  See these issues:
  gh#maxmind/GeoIP2-python@3b0dbb1eb990
  gh#mindflayer/python-mocket#181
  gh#benoitc/http-parser#95

OBS-URL: https://build.opensuse.org/request/show/1060475
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geoip2?expand=0&rev=25
2023-01-24 06:46:16 +00:00
Dominique Leuenberger
6325a021b8 Accepting request 986549 from Application:Geo
- 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/request/show/986549
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=17
2022-07-05 10:27:03 +00:00
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
Dominique Leuenberger
3f796fbf37 Accepting request 933992 from Application:Geo
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/933992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=16
2021-11-29 16:28:15 +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
Dominique Leuenberger
adc2dedad4 Accepting request 923339 from Application:Geo
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/923339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=15
2021-10-11 13:30:15 +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
Dominique Leuenberger
093682e403 Accepting request 906185 from 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/906185
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=14
2021-07-16 20:12:48 +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
Dominique Leuenberger
374ec2088c Accepting request 894851 from Application:Geo
- 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/request/show/894851
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=13
2021-06-11 20:29:48 +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
Dominique Leuenberger
cf7cde6b9c Accepting request 854463 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/854463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=12
2020-12-12 19:27:15 +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
Dominique Leuenberger
32c8b350c6 Accepting request 846048 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/846048
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=11
2020-11-06 22:43:10 +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
Dominique Leuenberger
3d33d829f8 Accepting request 825250 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/825250
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=10
2020-08-13 08:12:09 +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
Dominique Leuenberger
1aee7ec430 Accepting request 794772 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/794772
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-geoip2?expand=0&rev=9
2020-04-22 18:41:35 +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