Accepting request 812930 from home:mcalabkova:branches:Application:Geo
- Update to 4.4.1 * Add support for Maps Static API * Adding support for passing in experience_id to Client class * Python 2 is no longer supported * Removed place fields: alt_id, id, reference, and scope. * APIError.__str__ should always return a str * Tests for distribution tar as part of CI * Support for subfields such as geometry/location and geometry/viewport in Places. * Switched build system to use nox, pytest, and codecov. OBS-URL: https://build.opensuse.org/request/show/812930 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-googlemaps?expand=0&rev=5
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-googlemaps
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,15 +17,16 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-googlemaps
|
||||
Version: 3.0.2
|
||||
Version: 4.4.1
|
||||
Release: 0
|
||||
Summary: Python client library for Google Maps API Web Services
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/googlemaps/google-maps-services-python
|
||||
Source: https://files.pythonhosted.org/packages/source/g/googlemaps/googlemaps-%{version}.tar.gz
|
||||
BuildRequires: %{python_module nose}
|
||||
Source: https://github.com/googlemaps/google-maps-services-python/archive/v%{version}.tar.gz#/googlemaps-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests >= 2.20.0}
|
||||
BuildRequires: %{python_module responses >= 0.3}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -40,7 +41,9 @@ Geocoding, reverse geocoding, driving directions, and local search in
|
||||
Python via Google.
|
||||
|
||||
%prep
|
||||
%setup -q -n googlemaps-%{version}
|
||||
%setup -q -n google-maps-services-python-%{version}
|
||||
# do not require coverage
|
||||
sed -i 's/--cov.*$//' setup.cfg
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -50,10 +53,12 @@ Python via Google.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v
|
||||
# the tests catch ApiError, which means they have to connect to the actual GoogleMaps (and they get no internet for it)
|
||||
%pytest -k "not (test_elevation_along_path_single or test_transit_without_time)"
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md CHANGELOG.md
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user