Accepting request 685321 from devel:languages:python

- 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/request/show/685321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-api-python-client?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2019-03-18 09:38:44 +00:00 committed by Git OBS Bridge
commit 74a87fd71c
5 changed files with 25 additions and 38 deletions

View File

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

View File

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

View File

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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Mar 14 16:26:11 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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 <mcepl@suse.com> Tue Dec 4 12:48:33 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-google-api-python-client # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-google-api-python-client Name: python-google-api-python-client
Version: 1.7.4 Version: 1.7.8
Release: 0 Release: 0
Summary: Google APIs Python Client Summary: Google APIs Python Client
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python 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 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 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 setuptools}
BuildRequires: %{python_module six >= 1.6.1} BuildRequires: %{python_module six >= 1.6.1}
BuildRequires: %{python_module unittest2}
BuildRequires: %{python_module uritemplate >= 3.0.0} BuildRequires: %{python_module uritemplate >= 3.0.0}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if %{with test} Requires: python-google-auth >= 1.4.1
# Test requirements Requires: python-google-auth-httplib2 >= 0.0.3
BuildRequires: %{python_module nose}
# Python 2 test requirements
BuildRequires: python-mock
%endif
Requires: python-httplib2 >= 0.9.2 Requires: python-httplib2 >= 0.9.2
Requires: python-oauth2client >= 1.5.0
Requires: python-six >= 1.6.1 Requires: python-six >= 1.6.1
Requires: python-uritemplate >= 3.0.0 Requires: python-uritemplate >= 3.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
# Package renamed in SLE 12, do not remove Provides, Obsolete directives # Package renamed in SLE 12, do not remove Provides, Obsolete directives
# until after SLE 12 EOL # until after SLE 12 EOL
Provides: google-api-python-client = %{version} Provides: google-api-python-client = %{version}
Obsoletes: google-api-python-client < %{version} Obsoletes: google-api-python-client < %{version}
BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@ -60,7 +53,6 @@ Google APIs Client Library for Python
%prep %prep
%setup -q -n google-api-python-client-%{version} %setup -q -n google-api-python-client-%{version}
%patch0
%build %build
%python_build %python_build
@ -69,13 +61,10 @@ Google APIs Client Library for Python
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check %check
%python_expand nosetests-%{$python_bin_suffix} %pytest
%endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG %doc CHANGELOG
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/*