- Update to 2.31.0: * MediaIoBaseDownload range header off-by-one (#1595) (4b73b2e) - from version 2.28.0: * manage JSONDecodeError exception (#1574) (7d63027) * update thread_safety.md (#1568) (0b400f9) - from version 2.26.1: * disable self signed jwt (#1566) (623a71e) - from version 2.26.0: * add support for python 3.10 (#1557) (bcc507f) - from version 2.25.0: * enable self signed jwt for service account credentials (#1553) (1fb3c8e) - Drop python-google-api-python-client-no-unittest2.patch OBS-URL: https://build.opensuse.org/request/show/935031 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=43
81 lines
3.1 KiB
RPMSpec
81 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package python-google-api-python-client
|
|
#
|
|
# Copyright (c) 2021 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-%{**}}
|
|
%define skip_python2 1
|
|
%define skip_python36 1
|
|
Name: python-google-api-python-client
|
|
Version: 2.31.0
|
|
Release: 0
|
|
Summary: Google APIs Python Client
|
|
License: Apache-2.0
|
|
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
|
|
BuildRequires: %{python_module google-api-core >= 1.21.0}
|
|
BuildRequires: %{python_module google-auth >= 1.16.0}
|
|
BuildRequires: %{python_module google-auth-httplib2 >= 0.1.0}
|
|
BuildRequires: %{python_module httplib2 >= 0.15.0}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module oauth2client}
|
|
BuildRequires: %{python_module pandas}
|
|
BuildRequires: %{python_module parameterized}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six >= 1.13.0}
|
|
BuildRequires: %{python_module uritemplate >= 3.0.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-google-api-core >= 1.21.0
|
|
Requires: python-google-auth >= 1.16.0
|
|
Requires: python-google-auth-httplib2 >= 0.1.0
|
|
Requires: python-httplib2 >= 0.15.0
|
|
Requires: python-six >= 1.13.0
|
|
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}
|
|
|
|
%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"
|
|
# DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive fails with "socket.gaierror: [Errno -3] Temporary failure in name resolution"
|
|
%pytest --ignore=samples -k "not (test_api_endpoint_override_from_client_options and Document) and not test_credentials_and_credentials_file_mutually_exclusive"
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|