python-google-api-python-cl.../python-google-api-python-client.spec
Robert Schweikert b508cb6aa9 Accepting request 1056261 from home:yarunachalam:branches:devel:languages:python
- Update to version 2.70.0 
  * Features
  appengine: update the api f3ae3793e7 (1506e28)
  bigquery: update the api 9d8a28de9f (1506e28)
  chat: update the api 4b6ec2a405 (1506e28)
  cloudbilling: update the api 6de2af2c21 (1506e28)
  cloudchannel: update the api bfbc1b18e9 (1506e28)
  compute: update the api 3ad8d54028 (1506e28)
  connectors: update the api 632cba551d (1506e28)
  contactcenterinsights: update the api 6e512d6e13 (1506e28)
  container: update the api 05c853aec2 (1506e28)
  contentwarehouse: update the api 720850e6a8 (1506e28)
  dataflow: update the api 1b55a02805 (1506e28)
  dataproc: update the api 952d0d1df1 (1506e28)
  documentai: update the api 9e0a2601bc (1506e28)
  gkehub: update the api e7a24b2743 (1506e28)
  ids: update the api d7ca9ebf54 (1506e28)
  metastore: update the api 23800233fe (1506e28)
  networksecurity: update the api 5cd2d575dc (1506e28)
  pubsublite: update the api ddc2cac9d9 (1506e28)
  recaptchaenterprise: update the api 85bf9110ba (1506e28)
  servicenetworking: update the api 310a96ffbd (1506e28)
  sts: update the api e5219026ed (1506e28)
  workflowexecutions: update the api 3ff7723675 (1506e28)

OBS-URL: https://build.opensuse.org/request/show/1056261
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=64
2023-01-05 19:42:17 +00:00

82 lines
3.2 KiB
RPMSpec

#
# spec file for package python-google-api-python-client
#
# Copyright (c) 2023 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/
#
%define skip_python2 1
Name: python-google-api-python-client
Version: 2.70.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
# PATCH-FIX-OPENSUSE opensuse-remove-oauth2client-tests.patch -- upstream wants to support and test deprecated oauth2client indefinitely, but
# the distro has to remove it at some point
Patch0: opensuse-remove-oauth2client-tests.patch
BuildRequires: %{python_module google-api-core >= 1.31.5}
BuildRequires: %{python_module google-auth >= 1.19.0}
BuildRequires: %{python_module google-auth-httplib2 >= 0.1.0}
BuildRequires: %{python_module httplib2 >= 0.15.0}
BuildRequires: %{python_module pandas}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module uritemplate >= 3.0.1}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-google-api-core >= 1.31.5
Requires: python-google-auth >= 1.19.0
Requires: python-google-auth-httplib2 >= 0.1.0
Requires: python-httplib2 >= 0.15.0
Requires: python-uritemplate >= 3.0.1
# 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
%autosetup -p1 -n google-api-python-client-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive fails with "socket.gaierror: [Errno -3] Temporary failure in name resolution"
donttest="test_credentials_and_credentials_file_mutually_exclusive"
# don't test deprecated oaut2client usage
donttest="$donttest or TestAuthWithOAuth2Client or test_oauth2client_crendentials"
# test_http.py uses mocked Credentials class and API from deprecated oauth2client
%pytest --ignore=samples --ignore tests/test_http.py -k "not ($donttest)"
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/apiclient
%{python_sitelib}/googleapiclient
%{python_sitelib}/google_api_python_client-%{version}*-info
%changelog