From c92daaf6c06295055cad4f13af73b3a8787973f4d9b827dd0176dfde82d0acde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 15 Mar 2019 10:43:02 +0000 Subject: [PATCH] - Update to 1.7.8: * bunch of small bugfixes * python2 exec prints warning now about deprecation - Remove hidePythonDeps.patch does not make sense - Add back unittest2 dep, upstream hardcoded it OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=25 --- google-api-python-client-1.7.4.tar.gz | 3 -- google-api-python-client-1.7.8.tar.gz | 3 ++ hidePythonDeps.patch | 11 -------- python-google-api-python-client.changes | 9 ++++++ python-google-api-python-client.spec | 37 +++++++++---------------- 5 files changed, 25 insertions(+), 38 deletions(-) delete mode 100644 google-api-python-client-1.7.4.tar.gz create mode 100644 google-api-python-client-1.7.8.tar.gz delete mode 100644 hidePythonDeps.patch diff --git a/google-api-python-client-1.7.4.tar.gz b/google-api-python-client-1.7.4.tar.gz deleted file mode 100644 index 8df8f63..0000000 --- a/google-api-python-client-1.7.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d5cb02c6f3112c68eed51b74891a49c0e35263380672d662f8bfe85b8114d7c -size 141798 diff --git a/google-api-python-client-1.7.8.tar.gz b/google-api-python-client-1.7.8.tar.gz new file mode 100644 index 0000000..efbf74d --- /dev/null +++ b/google-api-python-client-1.7.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06907006ed5ce831018f03af3852d739c0b2489cdacfda6971bcc2075c762858 +size 141952 diff --git a/hidePythonDeps.patch b/hidePythonDeps.patch deleted file mode 100644 index 52d4d44..0000000 --- a/hidePythonDeps.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- 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", diff --git a/python-google-api-python-client.changes b/python-google-api-python-client.changes index 22f9ca5..c0dac20 100644 --- a/python-google-api-python-client.changes +++ b/python-google-api-python-client.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Mar 14 16:26:11 UTC 2019 - Tomáš Chvátal + +- Update to 1.7.8: + * bunch of small bugfixes + * python2 exec prints warning now about deprecation +- Remove hidePythonDeps.patch does not make sense +- Add back unittest2 dep, upstream hardcoded it + ------------------------------------------------------------------- Tue Dec 4 12:48:33 UTC 2018 - Matej Cepl diff --git a/python-google-api-python-client.spec b/python-google-api-python-client.spec index b1c57d6..b6ec390 100644 --- a/python-google-api-python-client.spec +++ b/python-google-api-python-client.spec @@ -1,7 +1,7 @@ # # spec file for package python-google-api-python-client # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -16,43 +16,36 @@ # -# Test scripts not included in source archive -# https://github.com/google/google-api-python-client/issues/513 -%bcond_with test - %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-google-api-python-client -Version: 1.7.4 +Version: 1.7.8 Release: 0 Summary: Google APIs Python Client License: Apache-2.0 Group: Development/Languages/Python -Url: https://github.com/google/google-api-python-client +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 -Patch0: hidePythonDeps.patch +BuildRequires: %{python_module google-auth >= 1.4.1} +BuildRequires: %{python_module google-auth-httplib2 >= 0.0.3} BuildRequires: %{python_module httplib2 >= 0.9.2} -BuildRequires: %{python_module oauth2client >= 1.5.0} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.6.1} +BuildRequires: %{python_module unittest2} BuildRequires: %{python_module uritemplate >= 3.0.0} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} -# Test requirements -BuildRequires: %{python_module nose} -# Python 2 test requirements -BuildRequires: python-mock -%endif +Requires: python-google-auth >= 1.4.1 +Requires: python-google-auth-httplib2 >= 0.0.3 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 +Requires: python-uritemplate >= 3.0.0 # 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 %description @@ -60,7 +53,6 @@ Google APIs Client Library for Python %prep %setup -q -n google-api-python-client-%{version} -%patch0 %build %python_build @@ -69,13 +61,10 @@ Google APIs Client Library for Python %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_expand nosetests-%{$python_bin_suffix} -%endif +%pytest %files %{python_files} -%defattr(-,root,root,-) %doc CHANGELOG %license LICENSE %{python_sitelib}/*