diff --git a/googlemaps-3.0.2.tar.gz b/googlemaps-3.0.2.tar.gz deleted file mode 100644 index 56a4f52..0000000 --- a/googlemaps-3.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e13d8f4101f033bc39d76ade52f99977f077814d79087794735d1bb71f35dcc2 -size 24705 diff --git a/googlemaps-4.4.1.tar.gz b/googlemaps-4.4.1.tar.gz new file mode 100644 index 0000000..812e737 --- /dev/null +++ b/googlemaps-4.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6f9b1782bf2ac31cff1316401be2625cccdc54d9ec20674c7c157a9e248875b +size 46724 diff --git a/python-googlemaps.changes b/python-googlemaps.changes index 4f5b2a3..ea9a538 100644 --- a/python-googlemaps.changes +++ b/python-googlemaps.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Jun 9 12:21:45 UTC 2020 - Marketa Calabkova + +- 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. + ------------------------------------------------------------------- Fri Mar 15 12:37:28 UTC 2019 - Tomáš Chvátal diff --git a/python-googlemaps.spec b/python-googlemaps.spec index 9a8ba91..ed2f423 100644 --- a/python-googlemaps.spec +++ b/python-googlemaps.spec @@ -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