Accepting request 509221 from devel:languages:python

- Implement single-spec version.
- Update source URL.
- Update to Version 1.6.2

OBS-URL: https://build.opensuse.org/request/show/509221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-api-python-client?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2017-07-19 09:20:44 +00:00 committed by Git OBS Bridge
commit 4b32c726e4
4 changed files with 69 additions and 37 deletions

View File

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

View File

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

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Mon Jul 10 14:25:33 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version.
- Update source URL.
- Update to Version 1.6.2
* Fixed a bug where application default credentials would still be used even
when a developerKey was specified. (#347)
* Official support for Python 3.5 and 3.6. (#341)
- Update to Version 1.6.1
* Fixed a bug where using google-auth with scoped credentials would fail. (#328)
- Update to Version 1.6.0
* Support for Python 2.6 has been dropped. (#319)
* The credentials argument to discovery.build and discovery.build_from_document
can be either oauth2client credentials or google-auth credentials. (#319)
* discovery.build and discovery.build_from_document now unambiguously use the
http argument to make all requests, including the request for the discovery
document. (#319)
* The http and credentials arguments to discovery.build and
discovery.build_from_document are now mutually exclusive, eliminating a
buggy edge case. (#319)
* If neither http or credentials is specified to discovery.build and
discovery.build_from_document, then Application Default Credentials will
be used. The library prefers google-auth for this if it is available, but
can also use oauth2client's implementation. (#319)
* Fixed resumable upload failure when receiving a 308 response. (#312)
* Clarified the support versions of Python 3. (#316)
- Update to Version 1.5.5
* Allow explicit MIME type specification with media_mime_type keyword argument.
* Fix unprintable representation of BatchError with default constructor. (#165)
* Refresh all discovery docs, not just the preferred ones. (#298)
* Update minimum httplib2 dependency to >=0.9.2.
-------------------------------------------------------------------
Thu Nov 3 22:50:37 UTC 2016 - rjschwei@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-google-api-python-client
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -15,69 +15,68 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# Test scripts not included in source archive
%bcond_with test
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-google-api-python-client
Version: 1.5.4
Version: 1.6.2
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: google-api-python-client-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/source/g/google-api-python-client/google-api-python-client-%{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: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module httplib2 >= 0.9.2}
BuildRequires: %{python_module oauth2client >= 1.5.0}
BuildRequires: %{python_module six >= 1.6.1}
BuildRequires: %{python_module uritemplate >= 3.0.0}
%if %{with test}
# Test requirements
BuildRequires: %{python_module nose}
# Python 2 test requirements
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
Requires: python-argparse
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
Requires: python-httplib2 >= 0.9.2
Requires: python-oauth2client >= 1.5.0
Requires: python-six >= 1.6.1
Requires: python-uritemplate >= 3.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
# 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}
%python_subpackages
%description
Google APIs Client Library for Python
%package test
Summary: Tests for python-google-api-python-client
Group: Development/Libraries/Python
PreReq: python-google-api-python-client = %version
Requires: python-nose
%description test
This package provides the unit tests for google-api-python-client.
%prep
%setup -q -n google-api-python-client-%{version}
%patch0
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
nosetests --with-coverage --cover-package=googleapiclient --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=85
%python_expand nosetests-%{$python_bin_suffix}
%endif
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE README.md
%doc CHANGELOG LICENSE
%{python_sitelib}/*
%changelog