From ba61c10958be616b3a2ec8e8ff197eb7e5a3dcaed1696d635cb47d94219944a8 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Tue, 18 Oct 2016 17:19:46 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=2 --- .gitattributes | 23 ++++++ .gitignore | 1 + google-api-python-client-1.5.4.tar.gz | 3 + google-api-python-client.changes | 109 ++++++++++++++++++++++++++ google-api-python-client.spec | 77 ++++++++++++++++++ hidePythonDeps.patch | 11 +++ 6 files changed, 224 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 google-api-python-client-1.5.4.tar.gz create mode 100644 google-api-python-client.changes create mode 100644 google-api-python-client.spec create mode 100644 hidePythonDeps.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/google-api-python-client-1.5.4.tar.gz b/google-api-python-client-1.5.4.tar.gz new file mode 100644 index 0000000..305d376 --- /dev/null +++ b/google-api-python-client-1.5.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f41417b8d7ba9c690d4bccb8c0d2c73c832574f95f1ffa948d52fd061a03df1 +size 3676762 diff --git a/google-api-python-client.changes b/google-api-python-client.changes new file mode 100644 index 0000000..d4d779c --- /dev/null +++ b/google-api-python-client.changes @@ -0,0 +1,109 @@ +------------------------------------------------------------------- +Tue Oct 18 17:10:56 UTC 2016 - rjschwei@suse.com + +- Upgrade to version 1.5.4 (bsc#1002895) + + Properly handle errors when the API returns a mapping or sequence. (#289) + + Upgrade to unified uritemplate 3.0.0. (#293) + + Allow oauth2client 4.0.0, with the caveat that file-based discovery + caching is disabled. +- From 1.5.2 + + Allow using oauth2client >= 1.5.0, < 4.0.0. (#265) + + Fix project_id argument description. (#257) + + Retry chunk uploaded on rate limit exceeded errors. (#255) + + Obtain access token if necessary in BatchHttpRequest.execute(). (#232) + + Warn when running tests using HttpMock without having a cache. (#261) +- From 1.5.1 + + Allow using versions of oauth2client < 2.0.0. (#197) + + Check both current and new API discovery URL. (#202) + + Retry http requests on connection errors and timeouts. (#218) + + Retry http requests on rate limit responses. (#201) + + Import guards for ssl (for Google App Engine). (#220) + + Use named loggers instead of the root logger. (#206) + + New search console example. (#212) +- From 1.5.0 + + Fix file stream recognition in Python 3 (#141) + + Fix non-resumable binary uploads in Python 3 (#147) + + Default to 'octet-stream' if mimetype detection fails (#157) + + Handle SSL errors with retries (#160) + + Fix incompatibility with oauth2client v2.0.0 (#182) + +------------------------------------------------------------------- +Thu Nov 12 20:39:10 UTC 2015 - rjschwei@suse.com + +- Upgrade to version 1.4.2 (bsc#954690) + + oauth2client is now a separate package python-oauth2client + + Need to update this version as the previous embedded version for + oauth2client lacks necessary features for google-cloud-sdk + + remove patch no_embed_uritempl_dep.patch + + add patch hidePythonDeps.patch + + Add automatic caching for the discovery docs. + - From 1.4.1 + + Add the googleapiclient.discovery.Resource.new_batch_http_request method. + - From 1.4.0 + + Python 3 support. + - From 1.3.2 + + Fix an infinite loop for downloading small files. + + Fix a unicode error in error encoding. + + Better handling of `content-length` in media requests. + + Add support for methodPath entries containing colon. + - From 1.3.1 + + Quick release for a fix around aliasing in v1.3. + - From 1.3.0 + + Add support for the Google Application Default Credentials. + + Require python 2.6 as a minimum version. + + Update several API samples. + + Finish splitting out oauth2client repo and update tests. + + Various doc cleanup and bugfixes. + + + Two important notes: + * We've added `googleapiclient` as the primary suggested import + name, and kept `apiclient` as an alias, in order to have a more + appropriate import name. At some point, we will remove `apiclient` + as an alias. + * Due to an issue around in-place upgrades for Python packages, + it's not possible to do an upgrade from version 1.2 to 1.3. Instead, + setup.py attempts to detect this and prevents it. Simply remove + the previous version and reinstall to fix this. + +------------------------------------------------------------------- +Tue Mar 4 17:58:09 UTC 2014 - rschweikert@suse.com + +- Fix dependency issue, do not include uritemplate, this is an + independent upstream code stream +- Add patch no_embed_uritempl_dep.patch + +------------------------------------------------------------------- +Thu Feb 13 07:39:50 UTC 2014 - rschweikert@suse.com + +- include in SLE 12 (FATE #316168) + +------------------------------------------------------------------- +Wed Oct 30 14:44:29 UTC 2013 - rschweikert@suse.com + +- update to version 1.2 + + The use of the gflags library is now deprecated, and is no longer a + dependency. If you are still using the oauth2client.tools.run() function + then include gflags as a dependency of your application or switch to + oauth2client.tools.run_flow. + + Samples have been updated to use the new apiclient.sample_tools, and no + longer use gflags. + + Added support for the experimental Object Change Notification, as found in + the Cloud Storage API. + + The oauth2client App Engine decorators are now threadsafe. + + Use the following redirects feature of httplib2 where it returns the + ultimate URL after a series of redirects to avoid multiple hops for every + resumable media upload request. + + Updated AdSense Management API samples to V1.3 + + Add option to automatically retry requests. + + Ability to list registered keys in multistore_file. + + User-agent must contain (gzip). + + The 'method' parameter for httplib2 is not positional. This would cause + spurious warnings in the logging. + + Making OAuth2Decorator more extensible. Fixes Issue 256. + + Update AdExchange Buyer API examples to version v1.2. + +------------------------------------------------------------------- +Tue Aug 6 20:31:56 UTC 2013 - rschweikert@suse.com + +- Initial build + diff --git a/google-api-python-client.spec b/google-api-python-client.spec new file mode 100644 index 0000000..6e50087 --- /dev/null +++ b/google-api-python-client.spec @@ -0,0 +1,77 @@ +# +# spec file for package google-api-python-client +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: google-api-python-client +Version: 1.5.4 +Release: 0 +Summary: Google APIs Python Client +License: Apache-2.0 +Group: Development/Languages/Python +Url: https://github.com/google/google-api-python-client +Source0: %{name}-%{version}.tar.gz +Patch0: hidePythonDeps.patch +Requires: python +Requires: python-httplib2 >= 0.8 +Requires: python-oauth2client >= 1.5.0 +Requires: python-six >= 1.6.1 +Requires: python-uritemplate >= 3.0.0 +BuildRequires: python-devel +BuildRequires: python-mock +BuildRequires: python-nose +BuildRequires: python-oauth2client +BuildRequires: python-setuptools +BuildRequires: python-unittest2 +BuildRequires: python-uritemplate +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif + +%description +Google APIs Client Library for Python + +%package test +Summary: Tests for google-api-python-client +Group: Development/Libraries/Python +PreReq: google-api-python-client = %version +Requires: python-nose + +%description test +Package provides the unit tests for google-api-python-client + +%prep +%setup -q +%patch0 + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%check +nosetests --with-coverage --cover-package=googleapiclient --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=85 + +%files +%defattr(-,root,root,-) +%doc CHANGELOG LICENSE README.md +%{python_sitelib}/* + +%changelog diff --git a/hidePythonDeps.patch b/hidePythonDeps.patch new file mode 100644 index 0000000..52d4d44 --- /dev/null +++ b/hidePythonDeps.patch @@ -0,0 +1,11 @@ +--- setup.py.orig ++++ setup.py +@@ -85,7 +85,7 @@ setup( + long_description=long_desc, + author="Google Inc.", + url="http://github.com/google/google-api-python-client/", +- install_requires=install_requires, ++# install_requires=install_requires, + packages=packages, + package_data={}, + license="Apache 2.0",