2016-10-18 17:19:46 +00:00
#
2016-10-18 17:26:41 +00:00
# spec file for package python-google-api-python-client
2016-10-18 17:19:46 +00:00
#
2024-01-05 09:08:07 +00:00
# Copyright (c) 2024 SUSE LLC
2016-10-18 17:19:46 +00:00
#
# 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.
2018-12-04 13:30:08 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2016-10-18 17:19:46 +00:00
#
2017-10-02 12:25:19 +00:00
2023-07-02 14:48:52 +00:00
%{?sle15_python_module_pythons}
2016-10-18 17:26:41 +00:00
Name : python-google-api-python-client
2024-05-27 15:01:41 +00:00
Version : 2.130.0
2016-10-18 17:19:46 +00:00
Release : 0
Summary : Google APIs Python Client
License : Apache-2.0
2019-03-15 10:43:02 +00:00
URL : https://github.com/google/google-api-python-client
2017-07-10 14:35:20 +00:00
Source : https://files.pythonhosted.org/packages/source/g/google-api-python-client/google-api-python-client-%{version} .tar.gz
2022-04-15 06:24:32 +00:00
BuildRequires : %{python_module google-api-core >= 1.31.5}
2024-04-18 09:58:17 +00:00
BuildRequires : %{python_module google-auth >= 1.32.0}
BuildRequires : %{python_module google-auth-httplib2 >= 0.2.0}
BuildRequires : %{python_module httplib2 >= 0.19.0}
2020-09-10 14:15:10 +00:00
BuildRequires : %{python_module parameterized}
2023-12-16 20:25:09 +00:00
BuildRequires : %{python_module pip}
2019-03-15 10:43:02 +00:00
BuildRequires : %{python_module pytest}
2022-04-15 06:24:32 +00:00
BuildRequires : %{python_module uritemplate >= 3.0.1}
2023-12-16 20:25:09 +00:00
BuildRequires : %{python_module wheel}
2017-10-02 12:25:19 +00:00
BuildRequires : fdupes
BuildRequires : python-rpm-macros
2022-04-15 06:24:32 +00:00
Requires : python-google-api-core >= 1.31.5
2024-04-18 09:58:17 +00:00
Requires : python-google-auth >= 1.32.0
Requires : python-google-auth-httplib2 >= 0.2.0
Requires : python-httplib2 >= 0.19.0
2022-04-15 06:24:32 +00:00
Requires : python-uritemplate >= 3.0.1
2016-10-18 17:26:41 +00:00
# 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}
2019-03-15 10:43:02 +00:00
BuildArch : noarch
2017-07-10 14:29:42 +00:00
%python_subpackages
2016-10-18 17:26:41 +00:00
2016-10-18 17:19:46 +00:00
%description
Google APIs Client Library for Python
%prep
2022-04-15 06:24:32 +00:00
%autosetup -p1 -n google-api-python-client-%{version}
2016-10-18 17:19:46 +00:00
%build
2023-12-16 20:25:09 +00:00
%pyproject_wheel
2016-10-18 17:19:46 +00:00
%install
2023-12-16 20:25:09 +00:00
%pyproject_install
2017-07-10 14:29:42 +00:00
%python_expand %fdupes %{buildroot} %{$python_sitelib}
2016-10-18 17:19:46 +00:00
%check
2021-07-06 11:52:26 +00:00
# DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive fails with "socket.gaierror: [Errno -3] Temporary failure in name resolution"
2022-04-15 06:24:32 +00:00
donttest=" t e s t _ c r e d e n t i a l s _ a n d _ c r e d e n t i a l s _ f i l e _ m u t u a l l y _ e x c l u s i v e "
# don't test deprecated oaut2client usage
donttest=" $ d o n t t e s t o r T e s t A u t h W i t h O A u t h 2 C l i e n t o r t e s t _ o a u t h 2 c l i e n t _ c r e n d e n t i a l s "
2024-05-27 15:01:41 +00:00
# Both test_client_options_universe_configured_with_mtls and test_universe_env_var_configured_with_mtls require internet connection
donttest=" $ d o n t t e s t o r t e s t _ c l i e n t _ o p t i o n s _ u n i v e r s e _ c o n f i g u r e d _ w i t h _ m t l s o r t e s t _ u n i v e r s e _ e n v _ v a r _ c o n f i g u r e d _ w i t h _ m t l s "
2022-04-15 06:24:32 +00:00
# test_http.py uses mocked Credentials class and API from deprecated oauth2client
%pytest --ignore=samples --ignore tests/test_http.py -k " n o t ( $ d o n t t e s t ) "
2016-10-18 17:19:46 +00:00
2017-07-10 14:29:42 +00:00
%files %{python_files}
2020-05-11 06:37:05 +00:00
%doc README.md
2018-05-29 18:40:33 +00:00
%license LICENSE
2022-04-15 06:24:32 +00:00
%{python_sitelib} /apiclient
%{python_sitelib} /googleapiclient
2023-12-16 20:25:09 +00:00
%{python_sitelib} /google_api_python_client-%{version} .dist-info
2016-10-18 17:19:46 +00:00
%changelog