|
rdobuilder |
643702 |
## START: Set by rpmautospec
|
|
rdobuilder |
9ce7ba |
## (rpmautospec version 0.2.6)
|
|
rdobuilder |
643702 |
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
|
|
rdobuilder |
9ce7ba |
release_number = 4;
|
|
rdobuilder |
643702 |
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
rdobuilder |
643702 |
print(release_number + base_release_number - 1);
|
|
rdobuilder |
643702 |
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
|
|
rdobuilder |
643702 |
## END: Set by rpmautospec
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
9ce7ba |
# F35: Do not update past 2.8.0 because Fedora 35's protobuf is too old.
|
|
rdobuilder |
9ce7ba |
|
|
rdobuilder |
643702 |
%bcond_with tests
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%global srcname google-api-core
|
|
rdobuilder |
643702 |
%global forgeurl https://github.com/googleapis/python-api-core
|
|
rdobuilder |
9ce7ba |
Version: 2.8.2
|
|
rdobuilder |
643702 |
%global tag v%{version}
|
|
rdobuilder |
643702 |
%forgemeta
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
Name: python-%{srcname}
|
|
rdobuilder |
643702 |
Release: %autorelease
|
|
rdobuilder |
643702 |
Summary: Core Library for Google Client Libraries
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
License: ASL 2.0
|
|
rdobuilder |
643702 |
URL: %forgeurl
|
|
rdobuilder |
643702 |
Source0: %{url}/archive/%{tag}.tar.gz#/python-api-core-%{version}.tar.gz
|
|
rdobuilder |
643702 |
Patch0: use-unittest-mock-builtin.patch
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
BuildRequires: python3-devel
|
|
rdobuilder |
9ce7ba |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
643702 |
BuildRequires: python3-wheel
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%if %{with tests}
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(google-auth)
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(googleapis-common-protos)
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(grpcio)
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(grpcio-gcp)
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(protobuf)
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(proto-plus)
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(pytest)
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(pytz)
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(requests)
|
|
rdobuilder |
643702 |
BuildRequires: python3dist(six)
|
|
rdobuilder |
643702 |
%endif
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
BuildArch: noarch
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%global _description %{expand:This library is not meant to stand-alone.
|
|
rdobuilder |
643702 |
Instead it defines common helpers used by all Google API clients.}
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%description
|
|
rdobuilder |
643702 |
%{_description}
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%package -n python3-%{srcname}
|
|
rdobuilder |
643702 |
Summary: %{summary}
|
|
rdobuilder |
643702 |
# Extras
|
|
rdobuilder |
9ce7ba |
Requires: python3dist(grpcio)
|
|
rdobuilder |
9ce7ba |
Requires: python3dist(grpcio-status)
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%description -n python3-%{srcname}
|
|
rdobuilder |
643702 |
%{_description}
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%pyproject_extras_subpkg -n python3-%{srcname} grpc
|
|
rdobuilder |
9ce7ba |
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%prep
|
|
rdobuilder |
643702 |
%forgeautosetup -p1
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%generate_buildrequires
|
|
rdobuilder |
9ce7ba |
%pyproject_buildrequires
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%build
|
|
rdobuilder |
643702 |
%pyproject_wheel
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%install
|
|
rdobuilder |
643702 |
%pyproject_install
|
|
rdobuilder |
643702 |
%pyproject_save_files google
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%check
|
|
rdobuilder |
643702 |
%if %{with tests}
|
|
rdobuilder |
9ce7ba |
# Work around an unusual pytest/PEP 420 issue where pytest can't import the
|
|
rdobuilder |
643702 |
# installed module. Thanks to mhroncok for the help!
|
|
rdobuilder |
643702 |
mv google{,_}
|
|
rdobuilder |
9ce7ba |
%pytest tests/unit \
|
|
rdobuilder |
643702 |
-k "not test_wrap_unary_errors \
|
|
rdobuilder |
643702 |
and not test_wrap_stream_errors_invocation \
|
|
rdobuilder |
643702 |
and not test_wrap_stream_errors_iterator_initialization \
|
|
rdobuilder |
9ce7ba |
and not test_wrap_stream_errors_during_iteration"
|
|
rdobuilder |
643702 |
mv google{_,}
|
|
rdobuilder |
643702 |
%endif
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
rdobuilder |
643702 |
%doc README.rst CHANGELOG.md SECURITY.md
|
|
rdobuilder |
643702 |
%{python3_sitelib}/google_api_core-%{version}-py%{python3_version}-nspkg.pth
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
%changelog
|
|
rdobuilder |
9ce7ba |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> 2.8.2-4
|
|
rdobuilder |
9ce7ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
9ce7ba |
|
|
rdobuilder |
9ce7ba |
* Tue Jun 28 2022 Python Maint <python-maint@redhat.com> 2.8.2-3
|
|
rdobuilder |
9ce7ba |
- Rebuilt for Python 3.11
|
|
rdobuilder |
9ce7ba |
|
|
rdobuilder |
9ce7ba |
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> 2.8.2-2
|
|
rdobuilder |
9ce7ba |
- Bootstrap for Python 3.11
|
|
rdobuilder |
9ce7ba |
|
|
rdobuilder |
9ce7ba |
* Wed Jun 15 2022 Major Hayden <major@redhat.com> 2.8.2-1
|
|
rdobuilder |
9ce7ba |
- Update to 2.8.2
|
|
rdobuilder |
9ce7ba |
|
|
rdobuilder |
9ce7ba |
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> 2.8.1-2
|
|
rdobuilder |
9ce7ba |
- Bootstrap for Python 3.11
|
|
rdobuilder |
9ce7ba |
|
|
rdobuilder |
9ce7ba |
* Fri May 27 2022 Major Hayden <major@mhtx.net> 2.8.1-1
|
|
rdobuilder |
9ce7ba |
- Update to 2.8.1
|
|
rdobuilder |
9ce7ba |
|
|
rdobuilder |
9ce7ba |
* Thu May 19 2022 Major Hayden <major@mhtx.net> 2.8.0-1
|
|
rdobuilder |
9ce7ba |
- 🚀 Update to 2.8.0
|
|
rdobuilder |
9ce7ba |
|
|
rdobuilder |
643702 |
* Mon May 02 2022 Major Hayden <major@mhtx.net> 2.7.3-1
|
|
rdobuilder |
643702 |
- Update to 2.7.3
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Apr 13 2022 Major Hayden <major@mhtx.net> 2.7.2-1
|
|
rdobuilder |
643702 |
- Update to 2.7.2
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Mar 10 2022 Major Hayden <major@redhat.com> 2.7.1-1
|
|
rdobuilder |
643702 |
- Update to 2.7.1
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Mar 09 2022 Major Hayden <major@redhat.com> 2.7.0-1
|
|
rdobuilder |
643702 |
- Update to 2.7.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Tue Mar 08 2022 Major Hayden <major@redhat.com> 2.6.1-1
|
|
rdobuilder |
643702 |
- Update to 2.6.1
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Mar 04 2022 Major Hayden <major@redhat.com> 2.6.0-1
|
|
rdobuilder |
643702 |
- Update to 2.6.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Feb 04 2022 Major Hayden <major@redhat.com> 2.5.0-1
|
|
rdobuilder |
643702 |
- Update to 2.5.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> 2.4.0-5
|
|
rdobuilder |
643702 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Jan 13 2022 Major Hayden <major@redhat.com> 2.4.0-4
|
|
rdobuilder |
643702 |
- Restore other skipped tests
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Jan 13 2022 Major Hayden <major@redhat.com> 2.4.0-3
|
|
rdobuilder |
643702 |
- Skip broken tests in rest streaming
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Jan 13 2022 Major Hayden <major@redhat.com> 2.4.0-2
|
|
rdobuilder |
643702 |
- Run all tests
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Jan 12 2022 Major Hayden <major@redhat.com> 2.4.0-1
|
|
rdobuilder |
643702 |
- Update to 2.4.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Dec 16 2021 Major Hayden <major@redhat.com> 2.3.2-1
|
|
rdobuilder |
643702 |
- Update to 2.3.2
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Dec 15 2021 Major Hayden <major@redhat.com> 2.3.1-1
|
|
rdobuilder |
643702 |
- Update to 2.3.1
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Dec 08 2021 Major Hayden <major@redhat.com> 2.3.0-1
|
|
rdobuilder |
643702 |
- Update to 2.3.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Nov 03 2021 Major Hayden <major@redhat.com> 2.2.2-1
|
|
rdobuilder |
643702 |
- Update to 2.2.2
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Oct 28 2021 Major Hayden <major@redhat.com> 2.2.1-1
|
|
rdobuilder |
643702 |
- Update to 2.2.1
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Tue Oct 26 2021 Major Hayden <major@mhtx.net> 2.2.0-1
|
|
rdobuilder |
643702 |
- Update to 2.2.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Mon Oct 25 2021 Major Hayden <major@mhtx.net> 2.1.1-2
|
|
rdobuilder |
643702 |
- Use python3-devel as BuildRequires
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Oct 14 2021 Major Hayden <major@mhtx.net> 2.1.1-1
|
|
rdobuilder |
643702 |
- Update to 2.1.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Oct 06 2021 Major Hayden <major@mhtx.net> 2.1.0-1
|
|
rdobuilder |
643702 |
- Update to 2.1.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Sep 17 2021 Major Hayden <major@mhtx.net> 2.0.1-3
|
|
rdobuilder |
643702 |
- Fix tests with PEP 420 workaround
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Sep 09 2021 Major Hayden <major@mhtx.net> 2.0.1-2
|
|
rdobuilder |
643702 |
- Move to rpmautospec
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Sep 01 2021 Major Hayden <major@mhtx.net> 2.0.1-1
|
|
rdobuilder |
643702 |
- Update to 2.0.1
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Mon Aug 23 2021 Major Hayden <major@mhtx.net> 2.0.0-2
|
|
rdobuilder |
643702 |
- Add proto-plus dependency for tests
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Mon Aug 23 2021 Major Hayden <major@mhtx.net> 2.0.0-1
|
|
rdobuilder |
643702 |
- Update to 2.0.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Tue Jul 27 2021 Major Hayden <major@mhtx.net> 1.31.1-2
|
|
rdobuilder |
643702 |
- Use correct path for extracted sources
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Tue Jul 27 2021 Major Hayden <major@mhtx.net> 1.31.1-1
|
|
rdobuilder |
643702 |
- Update to 1.31.1
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> 1.31.0-3
|
|
rdobuilder |
643702 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Jul 15 2021 Major Hayden <major@mhtx.net> 1.31.0-2
|
|
rdobuilder |
643702 |
- Add grpc, grpcgcp, and grpcio-gcp extras packages
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Jul 09 2021 Major Hayden <major@mhtx.net> 1.31.0-1
|
|
rdobuilder |
643702 |
- Update to 1.31.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Tue Jun 15 2021 Major Hayden <major@mhtx.net> 1.30.0-3
|
|
rdobuilder |
643702 |
- Get the right sources this time
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Tue Jun 15 2021 Major Hayden <major@mhtx.net> 1.30.0-2
|
|
rdobuilder |
643702 |
- Include patch in new sources
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Tue Jun 15 2021 Major Hayden <major@mhtx.net> 1.30.0-1
|
|
rdobuilder |
643702 |
- Update to v1.3.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> 1.29.0-2
|
|
rdobuilder |
643702 |
- Rebuilt for Python 3.10
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Jun 03 2021 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.29.0-1
|
|
rdobuilder |
643702 |
- Update to 1.29.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> 1.17.0-3
|
|
rdobuilder |
643702 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Mon Aug 17 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.17.0-2
|
|
rdobuilder |
643702 |
- Temporarily disable tests
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Thu Aug 13 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.17.0-1
|
|
rdobuilder |
643702 |
- Rebuild
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> 1.21.0-3
|
|
rdobuilder |
643702 |
- Second attempt - Rebuilt for
|
|
rdobuilder |
643702 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> 1.21.0-2
|
|
rdobuilder |
643702 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Jun 19 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.21.0-1
|
|
rdobuilder |
643702 |
- Update to 1.21.0
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Jun 05 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.17.0-1
|
|
rdobuilder |
643702 |
- Revert to 1.17.0 until grpc is updated
|
|
rdobuilder |
643702 |
|
|
rdobuilder |
643702 |
* Fri Jun 05 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> 1.19.0-1
|
|
rdobuilder |
643702 |
- First import
|