Accepting request 859149 from home:bruno_friedmann:branches:Application:Geo

- Update to 2.1.0 version
  + New Features
    - Add support for leading plus sign in the .Point constructor.
    - Contributed by Azimjon Pulatov. (#448)
  + Breaking Changes
    - .GoogleV3: change missing api_key warning to an error. (#450)
  + Bugfixes
    - Fixed an undocumented breaking change in geopy 2.0.0, where
    the .Distance class has become abstract, thus it could
    no longer be used for unit conversions. (#435)
    - .Photon incorrectly treated 0.0 coordinate as an empty response.
    Contributed by Mateusz Konieczny. (#439)
    - .Nominatim: fix TypeError on empty reverse result. (#455)
  + Docs Improvements
    - Add Python 3.9 to the list of supported versions.
    - .Bing: change postalcode to postalCode.
      Contributed by zhongjun-ma. (#424)
    - .Nominatim: better describe what is returned in addressdetails.
      Contributed by Mateusz Konieczny. (#429)
    - .Nominatim: better describe viewbox param behavior.
     Contributed by Hannes. (#454)
    - .Yandex: remove attention block about requiring an API key.
- Update to 2.0.0 version
  geopy 2.0 is a major release with lots of cleanup and inner refactorings.
  The public interface of the library is mostly the same, and the set
  of supported geocoders didn't change.
  If you have checked your code on the latest 1.x release with enabled
  warnings (i.e. with -Wd key of the python command) and fixed
  all of them, then it should be safe to upgrade.
  see all changes at https://github.com/geopy/geopy/releases/tag/2.0.0
- Changes from previous version
  1.23.0 https://github.com/geopy/geopy/releases/tag/1.23.0
  1.22.0 https://github.com/geopy/geopy/releases/tag/1.22.0
  1.21.0 https://github.com/geopy/geopy/releases/tag/1.21.0
  1.20.0 https://github.com/geopy/geopy/releases/tag/1.20.0
  1.19.0 https://github.com/geopy/geopy/releases/tag/1.19.0
- Packaging changes dropped support for Python 2.7 and 3.4. as version
  2.x has remove it.

OBS-URL: https://build.opensuse.org/request/show/859149
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopy?expand=0&rev=6
This commit is contained in:
Martin Pluskal 2020-12-29 08:56:44 +00:00 committed by Git OBS Bridge
parent 2ff10efcc3
commit 5afd03fbbb
4 changed files with 50 additions and 10 deletions

View File

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

3
geopy-2.1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:92faed570440f35bfcd6e84e4eef661712981d5fc992cd233f70af27d8567f7d
size 280382

View File

@ -1,3 +1,45 @@
-------------------------------------------------------------------
Sun Dec 27 19:13:13 UTC 2020 - Bruno Friedmann <bruno@ioda-net.ch>
- Update to 2.1.0 version
+ New Features
- Add support for leading plus sign in the .Point constructor.
- Contributed by Azimjon Pulatov. (#448)
+ Breaking Changes
- .GoogleV3: change missing api_key warning to an error. (#450)
+ Bugfixes
- Fixed an undocumented breaking change in geopy 2.0.0, where
the .Distance class has become abstract, thus it could
no longer be used for unit conversions. (#435)
- .Photon incorrectly treated 0.0 coordinate as an empty response.
Contributed by Mateusz Konieczny. (#439)
- .Nominatim: fix TypeError on empty reverse result. (#455)
+ Docs Improvements
- Add Python 3.9 to the list of supported versions.
- .Bing: change postalcode to postalCode.
Contributed by zhongjun-ma. (#424)
- .Nominatim: better describe what is returned in addressdetails.
Contributed by Mateusz Konieczny. (#429)
- .Nominatim: better describe viewbox param behavior.
Contributed by Hannes. (#454)
- .Yandex: remove attention block about requiring an API key.
- Update to 2.0.0 version
geopy 2.0 is a major release with lots of cleanup and inner refactorings.
The public interface of the library is mostly the same, and the set
of supported geocoders didn't change.
If you have checked your code on the latest 1.x release with enabled
warnings (i.e. with -Wd key of the python command) and fixed
all of them, then it should be safe to upgrade.
see all changes at https://github.com/geopy/geopy/releases/tag/2.0.0
- Changes from previous version
1.23.0 https://github.com/geopy/geopy/releases/tag/1.23.0
1.22.0 https://github.com/geopy/geopy/releases/tag/1.22.0
1.21.0 https://github.com/geopy/geopy/releases/tag/1.21.0
1.20.0 https://github.com/geopy/geopy/releases/tag/1.20.0
1.19.0 https://github.com/geopy/geopy/releases/tag/1.19.0
- Packaging changes dropped support for Python 2.7 and 3.4. as version
2.x has remove it.
-------------------------------------------------------------------
Tue Oct 13 16:34:02 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -16,8 +16,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-geopy
Version: 1.18.1
Version: 2.1.0
Release: 0
License: MIT
Summary: Python Geocoding Toolbox
@ -27,14 +28,13 @@ Source: https://github.com/geopy/geopy/archive/%{version}.tar.gz#/geopy-
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module async_generator}
BuildRequires: %{python_module geographiclib >= 1.49}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest >= 3.10}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module six}
BuildRequires: %{python_module xml}
BuildRequires: (python2-contextlib2 if python)
BuildRequires: (python2-statistics if python)
# /SECTION
BuildRequires: fdupes
Requires: python-geographiclib >= 1.49
@ -52,7 +52,7 @@ BuildArch: noarch
Geopy can determine the coordinates of addresses, cities, countries,
and landmarks using third-party geocoders and other data sources such
as wikis.
Geopy currently includes support for six geocoders: Google Maps, Yahoo! Maps, Windows
Local Live (Virtual Earth), geocoder.us, GeoNames, MediaWiki pages (with the GIS
extension), and Semantic MediaWiki pages.
@ -60,9 +60,6 @@ extension), and Semantic MediaWiki pages.
%prep
%setup -q -n geopy-%{version}
# Proxy to live service will not work, resulting in unexpected exceptions
# that do not match test cases
rm test/test_proxy.py
# Online services are not available
rm \
@ -72,6 +69,7 @@ rm \
test/geocoders/geocodefarm.py \
test/geocoders/geonames.py \
test/geocoders/googlev3.py \
test/geocoders/ignfrance.py \
test/geocoders/nominatim.py \
test/geocoders/openmapquest.py \
test/geocoders/photon.py \