Robert Schweikert 2016-10-18 17:19:46 +00:00 committed by Git OBS Bridge
commit ba61c10958
6 changed files with 224 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3f41417b8d7ba9c690d4bccb8c0d2c73c832574f95f1ffa948d52fd061a03df1
size 3676762

View File

@ -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

View File

@ -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

11
hidePythonDeps.patch Normal file
View File

@ -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",