python-google-api-python-cl.../python-google-api-python-client.spec

82 lines
3.2 KiB
RPMSpec
Raw Normal View History

#
2016-10-18 17:26:41 +00:00
# spec file for package python-google-api-python-client
#
# Copyright (c) 2022 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/
#
- Update to 2.20.0: * Adds support for errors.py to also use 'errors' for error_details (#1281) (a5d2081) * add status_code property on http error handling (#1185) (db2a766) * Change default of static_discovery when discoveryServiceUrl set (#1261) (3b4f2e2) * correct api version in oauth-installed.md (#1258) (d1a255f) * fix .close() (#1231) (a9583f7) * Resolve issue where num_retries would have no effect (#1244) (c518472) * Include discovery artifacts in published package (#1221) (ad618d0) * Require Python 3.6+ * Add support for using static discovery documents (#1109) (32d1c59) * Update synth.py to copy discovery files from discovery-artifact-manager (#1104) (af918e8) * Catch ECONNRESET and other errors more reliably (#1147) (ae9cd99) * deps: add upper-bound google-auth dependency (#1180) (c687f42) * handle error on service not enabled (#1117) (c691283) * Improve support for error_details (#1126) (e6a1da3) * MediaFileUpload error if file does not exist (#1127) (2c6d029) * replace deprecated socket.error with OSError (#1161) (b7b9986) * Use logging level info when file_cache is not available (#1125) (0b32e69) * add httplib2 authorization to thread_safety (#1005) (205ae59), closes #808 * Change error parsing to check for 'message' (#1083) (a341c5a), closes #1082 * don't raise when downloading zero byte files (#1074) (86d8788) - Refreshed python-google-api-python-client-no-unittest2.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=42
2021-09-13 01:42:38 +00:00
%define skip_python2 1
2016-10-18 17:26:41 +00:00
Name: python-google-api-python-client
Accepting request 1042711 from home:yarunachalam:branches:devel:languages:python - Update to version 2.69.0 * Features analyticsadmin: update the api https://togithub.com/googleapis/google-api-python-client/commit/1277148ed4bb16c03802a6d11bb15ab138bf6c19 (fa65fca) assuredworkloads: update the api https://togithub.com/googleapis/google-api-python-client/commit/0777a539623f6a0e5c0ee8a0014c49797e14a826 (fa65fca) baremetalsolution: update the api https://togithub.com/googleapis/google-api-python-client/commit/21f9266331d46ae55a4749d485d5937797d75c03 (fa65fca) batch: update the api https://github.com/googleapis/google-api-python-client/commit/5b1f5b056998a149f675ecdf8794563a9e9460fc (f6e9d38) chat: update the api https://togithub.com/googleapis/google-api-python-client/commit/42d7975db499e1298a45b5d7ea086dddbfd3e5ec (fa65fca) cloudbuild: update the api https://github.com/googleapis/google-api-python-client/commit/ef1b5979776140ff203a53e82d0427ebda0112c0 (f6e9d38) cloudfunctions: update the api https://togithub.com/googleapis/google-api-python-client/commit/27456f04a82bd30a897822da45adba98b00d0b73 (fa65fca) cloudsearch: update the api https://togithub.com/googleapis/google-api-python-client/commit/2ebbbba9e1ceac8db6b3a90e56d00bad3c6183c5 (fa65fca) cloudsupport: update the api https://togithub.com/googleapis/google-api-python-client/commit/660300bb6094cdafa87016f16becc956489d723f (fa65fca) composer: update the api https://togithub.com/googleapis/google-api-python-client/commit/b223e46fa38d9cabcf81b66ca78e9b1d4e88c01b (fa65fca) compute: update the api https://github.com/googleapis/google-api-python-client/commit/23ca08a7e9717d0aefff49823f4d594ed118ec25 (f6e9d38) compute: update the api https://togithub.com/googleapis/google-api-python-client/commit/2a5e985835d9e6a6eff7d88c2d8aac08fa4677df (fa65fca) content: update the api https://togithub.com/googleapis/google-api-python-client/commit/93233da7ebde3542aaa004402c77bc19e6c919be (fa65fca) dataplex: update the api https://togithub.com/googleapis/google-api-python-client/commit/714d395fa712c56f1d207e4408ca1a252fd3d162 (fa65fca) dialogflow: update the api https://togithub.com/googleapis/google-api-python-client/commit/1d14a2f69b29855ec25b488babfbceb0609a519c (fa65fca) displayvideo: update the api https://togithub.com/googleapis/google-api-python-client/commit/1a3f64b4fd8e4f1774e1c6e6a70ad91a5a550590 (fa65fca) gamesConfiguration: update the api https://togithub.com/googleapis/google-api-python-client/commit/5e1872ea1691596119064e2d09043a99c15adac3 (fa65fca) metastore: update the api https://togithub.com/googleapis/google-api-python-client/commit/eba8d4f0e129812a600e4e8e6c33f4ab88c95180 (fa65fca) monitoring: update the api https://github.com/googleapis/google-api-python-client/commit/cb568e1f19afa239b1b5dfbc1bc14554c130c15c (f6e9d38) networkmanagement: update the api https://togithub.com/googleapis/google-api-python-client/commit/c65d33b8ca6b2aa014bc39bd4ca32ed1e9ebd96c (fa65fca) paymentsresellersubscription: update the api https://togithub.com/googleapis/google-api-python-client/commit/fd60e1157653d8b018ac093b01a32d3434148df4 (fa65fca) securitycenter: update the api https://togithub.com/googleapis/google-api-python-client/commit/c0c746a361421b6d250817f4d397d2c34dc2c4e9 (fa65fca) servicemanagement: update the api https://togithub.com/googleapis/google-api-python-client/commit/e3f20cd1141dd5ca47b2323eb0fa029e255c78ec (fa65fca) spanner: update the api https://togithub.com/googleapis/google-api-python-client/commit/c2007c17ae0eb31027417903a034dbc98eade638 (fa65fca) storagetransfer: update the api https://github.com/googleapis/google-api-python-client/commit/76c66c741eef394307e290ccad3dde13c950d2cf (f6e9d38) texttospeech: update the api https://togithub.com/googleapis/google-api-python-client/commit/bb64e3c504126472671203b1affec77396db89e7 (fa65fca) vmmigration: update the api https://togithub.com/googleapis/google-api-python-client/commit/3e1a2c94e7c20c7fef3f746bf40f74c06b7c2e29 (fa65fca) * Bug Fixes OBS-URL: https://build.opensuse.org/request/show/1042711 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=61
2022-12-14 08:49:00 +00:00
Version: 2.69.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}
- Update to 2.20.0: * Adds support for errors.py to also use 'errors' for error_details (#1281) (a5d2081) * add status_code property on http error handling (#1185) (db2a766) * Change default of static_discovery when discoveryServiceUrl set (#1261) (3b4f2e2) * correct api version in oauth-installed.md (#1258) (d1a255f) * fix .close() (#1231) (a9583f7) * Resolve issue where num_retries would have no effect (#1244) (c518472) * Include discovery artifacts in published package (#1221) (ad618d0) * Require Python 3.6+ * Add support for using static discovery documents (#1109) (32d1c59) * Update synth.py to copy discovery files from discovery-artifact-manager (#1104) (af918e8) * Catch ECONNRESET and other errors more reliably (#1147) (ae9cd99) * deps: add upper-bound google-auth dependency (#1180) (c687f42) * handle error on service not enabled (#1117) (c691283) * Improve support for error_details (#1126) (e6a1da3) * MediaFileUpload error if file does not exist (#1127) (2c6d029) * replace deprecated socket.error with OSError (#1161) (b7b9986) * Use logging level info when file_cache is not available (#1125) (0b32e69) * add httplib2 authorization to thread_safety (#1005) (205ae59), closes #808 * Change error parsing to check for 'message' (#1083) (a341c5a), closes #1082 * don't raise when downloading zero byte files (#1074) (86d8788) - Refreshed python-google-api-python-client-no-unittest2.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=42
2021-09-13 01:42:38 +00:00
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
- Update to 2.20.0: * Adds support for errors.py to also use 'errors' for error_details (#1281) (a5d2081) * add status_code property on http error handling (#1185) (db2a766) * Change default of static_discovery when discoveryServiceUrl set (#1261) (3b4f2e2) * correct api version in oauth-installed.md (#1258) (d1a255f) * fix .close() (#1231) (a9583f7) * Resolve issue where num_retries would have no effect (#1244) (c518472) * Include discovery artifacts in published package (#1221) (ad618d0) * Require Python 3.6+ * Add support for using static discovery documents (#1109) (32d1c59) * Update synth.py to copy discovery files from discovery-artifact-manager (#1104) (af918e8) * Catch ECONNRESET and other errors more reliably (#1147) (ae9cd99) * deps: add upper-bound google-auth dependency (#1180) (c687f42) * handle error on service not enabled (#1117) (c691283) * Improve support for error_details (#1126) (e6a1da3) * MediaFileUpload error if file does not exist (#1127) (2c6d029) * replace deprecated socket.error with OSError (#1161) (b7b9986) * Use logging level info when file_cache is not available (#1125) (0b32e69) * add httplib2 authorization to thread_safety (#1005) (205ae59), closes #808 * Change error parsing to check for 'message' (#1083) (a341c5a), closes #1082 * don't raise when downloading zero byte files (#1074) (86d8788) - Refreshed python-google-api-python-client-no-unittest2.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=42
2021-09-13 01:42:38 +00:00
Requires: python-google-auth-httplib2 >= 0.1.0
Requires: python-httplib2 >= 0.15.0
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}
BuildArch: noarch
%python_subpackages
2016-10-18 17:26:41 +00:00
%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