python-geopy/python-geopy.spec

94 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-geopy
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Accepting request 1095364 from devel:languages:python:mailman:backports - Update to version 2.3.0 New Features: * .MapBox: add referer param to allow restricted api_keys. * Contributed by Dennis Stritzke. (#501) * .MapBox: add language param to geocode. * Contributed by Dennis Stritzke. (#503) * .Distance: add floor division + right multiplication * operators. (#485) * .Distance: make hashable. (#485) * .Nominatim: add namedetails param to reverse. (#525) * .Pelias: add countries param to geocode. (#504) * .GoogleV3: pass the original error_message to exceptions. * (#398) Packaging Changes * Drop support for Python 3.5 and 3.6. * Add support for Python 3.10 and 3.11. * Relax geographiclib upper version constraint to allow 2.x. * Contributed by David Hotham. (#520) * Raise geographiclib lower version constraint to 1.52 to fix possible * ValueError in .distance.geodesic due to * the floating point inaccuracy. (#466) * Move static metadata from setup.py to setup.cfg. Deprecations * .Pelias: deprecate country_bias param, use countries * instead. (#504) * .IGNFrance: authentication is no longer accepted by the API, * so passing any credentials to the geocoder class has been deprecated. * These arguments should be removed. (#496) Bugfixes * Fix possible TypeError thrown by .RequestsAdapter * on destruction. Contributed by Philip Kahn. (#488) * .ArcGIS: get address from LongLabel if Address is empty. * All geocoders: fix unexpected scientific point format for coordinates * near zero in reverse geocoding. (#511) * .BANFrance: fix broken reverse (it looks like their API has * changed in a backwards-incompatible way: the lng query arg has * been renamed to lon). * .IGNFrance: fix broken geocoder due to removal of * authentication in their API. (#496) Docs Improvements * Add url to the GIS Stack Exchange geopy tag. * Contributed by Taras Dubrava. (#516). * .GeocodeEarth: add docs and pricing urls. * Contributed by Julian Simioni. (#505). - Use sle15_python_module_pythons OBS-URL: https://build.opensuse.org/request/show/1095364 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopy?expand=0&rev=10
2023-06-27 08:11:07 +00:00
%{?sle15_python_module_pythons}
Name: python-geopy
Accepting request 1095364 from devel:languages:python:mailman:backports - Update to version 2.3.0 New Features: * .MapBox: add referer param to allow restricted api_keys. * Contributed by Dennis Stritzke. (#501) * .MapBox: add language param to geocode. * Contributed by Dennis Stritzke. (#503) * .Distance: add floor division + right multiplication * operators. (#485) * .Distance: make hashable. (#485) * .Nominatim: add namedetails param to reverse. (#525) * .Pelias: add countries param to geocode. (#504) * .GoogleV3: pass the original error_message to exceptions. * (#398) Packaging Changes * Drop support for Python 3.5 and 3.6. * Add support for Python 3.10 and 3.11. * Relax geographiclib upper version constraint to allow 2.x. * Contributed by David Hotham. (#520) * Raise geographiclib lower version constraint to 1.52 to fix possible * ValueError in .distance.geodesic due to * the floating point inaccuracy. (#466) * Move static metadata from setup.py to setup.cfg. Deprecations * .Pelias: deprecate country_bias param, use countries * instead. (#504) * .IGNFrance: authentication is no longer accepted by the API, * so passing any credentials to the geocoder class has been deprecated. * These arguments should be removed. (#496) Bugfixes * Fix possible TypeError thrown by .RequestsAdapter * on destruction. Contributed by Philip Kahn. (#488) * .ArcGIS: get address from LongLabel if Address is empty. * All geocoders: fix unexpected scientific point format for coordinates * near zero in reverse geocoding. (#511) * .BANFrance: fix broken reverse (it looks like their API has * changed in a backwards-incompatible way: the lng query arg has * been renamed to lon). * .IGNFrance: fix broken geocoder due to removal of * authentication in their API. (#496) Docs Improvements * Add url to the GIS Stack Exchange geopy tag. * Contributed by Taras Dubrava. (#516). * .GeocodeEarth: add docs and pricing urls. * Contributed by Julian Simioni. (#505). - Use sle15_python_module_pythons OBS-URL: https://build.opensuse.org/request/show/1095364 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-geopy?expand=0&rev=10
2023-06-27 08:11:07 +00:00
Version: 2.3.0
Release: 0
License: MIT
Summary: Python Geocoding Toolbox
Url: https://github.com/geopy/geopy
Group: Development/Languages/Python
Source: https://github.com/geopy/geopy/archive/%{version}.tar.gz#/geopy-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
# SECTION test requirements
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
2020-12-29 08:56:44 +00:00
BuildRequires: %{python_module async_generator}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module geographiclib >= 1.49}
BuildRequires: %{python_module pytest >= 3.10}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module xml}
# /SECTION
BuildRequires: fdupes
Requires: python-geographiclib >= 1.49
Recommends: python-pytz
Recommends: python-xml
%ifpython2
Requires: python-statistics
%endif
BuildArch: noarch
%python_subpackages
%description
Geopy can determine the coordinates of addresses, cities, countries,
and landmarks using third-party geocoders and other data sources such
as wikis.
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
2020-12-29 08:56:44 +00:00
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.
%prep
%setup -q -n geopy-%{version}
# Online services are not available
rm \
test/geocoders/arcgis.py \
test/geocoders/banfrance.py \
test/geocoders/databc.py \
test/geocoders/geonames.py \
test/geocoders/googlev3.py \
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
2020-12-29 08:56:44 +00:00
test/geocoders/ignfrance.py \
test/geocoders/nominatim.py \
test/geocoders/openmapquest.py \
test/geocoders/photon.py \
test/geocoders/pickpoint.py \
test/geocoders/yandex.py
%build
export LANG=en_US.UTF-8
%python_build
%install
export LANG=en_US.UTF-8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pyunittest discover -v
%files %{python_files}
%doc AUTHORS README.rst docs/changelog_09x.rst docs/changelog_1xx.rst
%license LICENSE
%{python_sitelib}/*
%changelog