- Upgrade to 1.4.0

This commit is contained in:
Paul Wouters 2024-10-02 11:02:31 -04:00
commit f6e5c78d30
3 changed files with 6 additions and 13 deletions

View file

@ -1,11 +1,9 @@
# F35: Do not update past 1.3.1. F35's protobuf is too old.
# tests are enabled by default
%bcond_without tests
%global srcname google-cloud-testutils
%global forgeurl https://github.com/googleapis/python-test-utils
Version: 1.3.3
Version: 1.4.0
%global tag v%{version}
%forgemeta
@ -20,6 +18,7 @@ Source0: %forgesource
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-google-auth
%if %{with tests}
BuildRequires: python3dist(pytest)
@ -38,27 +37,21 @@ Summary: %{summary}
%description -n python3-%{srcname} %{_description}
%prep
%forgesetup
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files test_utils
# Remove extra scripts and tests.
rm -rf %{buildroot}%{python3_sitelib}/{scripts,tests}
rm -f %{buildroot}%{_bindir}/lower-bound-checker
rm %{buildroot}%{_bindir}/lower-bound-checker
%check
%pyproject_check_import -e "tests*"
@ -69,10 +62,9 @@ rm -f %{buildroot}%{_bindir}/lower-bound-checker
%pytest --disable-warnings --ignore tests/unit/test_lower_bound_checker.py
%endif
%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.rst CHANGELOG.md CODE_OF_CONDUCT.md
%license LICENSE
%changelog
%autochangelog