python-google-api-python-cl.../python-google-api-python-client.spec
Markéta Machová 0b35eabb0b Accepting request 833487 from home:glaubitz:branches:devel:languages:python
- Update to version 1.11.0
  * add support for mtls env variables (#1008)
- from version 1.10.1
  * discovery uses V2 when version is None (#975), closes (#971)
  * fix deprecation warnings due to invalid escape sequences. (#996), closes (#995)
  * fix link to service accounts documentation (#986)
  * update generated docs (#981)
- from version 1.10.0
  * allow to use 'six.moves.collections_abc.Mapping' in 'client_options.from_dict()' (#943)
  * Build universal wheels (#948)
  * discovery supports retries (#967), closes (#848)
  * consolidating and updating the Contribution Guide (#964), closes (#963)
- from version 1.9.3
  * update GOOGLE_API_USE_MTLS values (#940)
- from version 1.9.2
  * bump api-core version (#936)
- from version 1.9.1
  * fix python-api-core dependency issue (#931)
- from version 1.9.0
  * add mtls feature (#917)
  * add templates for python samples projects (#506), (#924)
- Refresh patches for new version
  + python-google-api-python-client-no-unittest2.patch
- Update BuildRequires and Requires from setup.py

OBS-URL: https://build.opensuse.org/request/show/833487
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=39
2020-09-10 14:15:10 +00:00

81 lines
3.0 KiB
RPMSpec

#
# spec file for package python-google-api-python-client
#
# 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
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-google-api-python-client
Version: 1.11.0
Release: 0
Summary: Google APIs Python Client
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/google/google-api-python-client
Source: https://files.pythonhosted.org/packages/source/g/google-api-python-client/google-api-python-client-%{version}.tar.gz
# https://github.com/googleapis/google-api-python-client/pull/929
Patch0: python-google-api-python-client-no-unittest2.patch
BuildRequires: %{python_module google-api-core >= 1.18.0}
BuildRequires: %{python_module google-auth >= 1.16.0}
BuildRequires: %{python_module google-auth-httplib2 >= 0.0.3}
BuildRequires: %{python_module httplib2 >= 0.9.2}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module oauth2client}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.6.1}
BuildRequires: %{python_module uritemplate >= 3.0.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-google-api-core >= 1.18.0
Requires: python-google-auth >= 1.16.0
Requires: python-google-auth-httplib2 >= 0.0.3
Requires: python-httplib2 >= 0.9.2
Requires: python-six >= 1.6.1
Requires: python-uritemplate >= 3.0.0
# Package renamed in SLE 12, do not remove Provides, Obsolete directives
# until after SLE 12 EOL
Provides: google-api-python-client = %{version}
Obsoletes: google-api-python-client < %{version}
BuildArch: noarch
%python_subpackages
%description
Google APIs Client Library for Python
%prep
%setup -q -n google-api-python-client-%{version}
%patch0 -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# DiscoveryFromDocument::test_api_endpoint_override_from_client_options and
# DiscoveryFromDocument::test_api_endpoint_override_from_client_options_dict fail with "server unavailable"
%pytest -k "not (test_api_endpoint_override_from_client_options and Document)"
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog