forked from pool/python-google-api-core
Accepting request 973994 from home:mcepl:branches:devel:languages:python
- Update to 2.7.2: - allow grpc without grpcio-status - remove dependency on pkg_resources - Add 373-KeyError-in-test.patch to allow tests to run (gh#googleapis/python-api-core#372) OBS-URL: https://build.opensuse.org/request/show/973994 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-core?expand=0&rev=38
This commit is contained in:
@@ -27,21 +27,26 @@
|
||||
%endif
|
||||
%define skip_python2 1
|
||||
Name: python-google-api-core
|
||||
Version: 2.7.1
|
||||
Version: 2.7.2
|
||||
Release: 0
|
||||
Summary: Google API client core library
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/googleapis/python-api-core
|
||||
Source: https://files.pythonhosted.org/packages/source/g/google-api-core/google-api-core-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM 373-KeyError-in-test.patch gh#googleapis/python-api-core#372 mcepl@suse.com
|
||||
# fix KeyError in test_rest_streaming.py
|
||||
Patch0: 373-KeyError-in-test.patch
|
||||
BuildRequires: %{python_module google-auth >= 1.25.0}
|
||||
BuildRequires: %{python_module googleapis-common-protos >= 1.6.0}
|
||||
BuildRequires: %{python_module googleapis-common-protos >= 1.53.0}
|
||||
BuildRequires: %{python_module grpcio >= 1.33.2}
|
||||
BuildRequires: %{python_module grpcio-gcp >= 0.2.2}
|
||||
BuildRequires: %{python_module grpcio-status >= 1.33.2}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module protobuf >= 3.12.0}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module requests >= 2.18.0}
|
||||
BuildRequires: %{python_module setuptools >= 40.3.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
# START TESTING SECTION
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module google-api-core >= %{version}}
|
||||
@@ -54,7 +59,7 @@ BuildRequires: %{python_module pytest}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-google-auth >= 1.25.0
|
||||
Requires: python-googleapis-common-protos >= 1.6.0
|
||||
Requires: python-googleapis-common-protos >= 1.53.0
|
||||
Requires: python-grpcio >= 1.33.2
|
||||
Requires: python-grpcio-status >= 1.33.2
|
||||
Requires: python-protobuf >= 3.12.0
|
||||
@@ -69,14 +74,14 @@ BuildArch: noarch
|
||||
Core Library for Google Client Libraries.
|
||||
|
||||
%prep
|
||||
%setup -q -n google-api-core-%{version}
|
||||
%autosetup -p1 -n google-api-core-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
@@ -85,11 +90,15 @@ Core Library for Google Client Libraries.
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%clean
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/google/api_core
|
||||
%{python_sitelib}/google_api_core-%{version}*-nspkg.pth
|
||||
%{python_sitelib}/google_api_core-%{version}*-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user