## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # tests are enabled by default %bcond_without tests %global srcname google-cloud-testutils %global forgeurl https://github.com/googleapis/python-test-utils Version: 1.4.0 %global tag v%{version} %forgemeta Name: python-%{srcname} Release: %autorelease Summary: Python test utilities for Google Cloud APIs License: Apache-2.0 URL: %forgeurl Source0: %forgesource BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-google-auth %if %{with tests} BuildRequires: python3dist(pytest) %endif %global _description %{expand: This is a collection of common tools used in system tests of Python client libraries for Google APIs.} %description %{_description} %package -n python3-%{srcname} %py_provides python3-test-utils 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 %{buildroot}%{_bindir}/lower-bound-checker %check %pyproject_check_import -e "tests*" %if %{with tests} # Lower bounds checking tests won't work since installing things via # pip is not going to work during RPM builds. %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 ## START: Generated by rpmautospec * Wed Oct 02 2024 Paul Wouters - 1.4.0-1 - Upgrade to 1.4.0 * Wed Oct 02 2024 Fedora Release Engineering - 1.3.3-9 - Unretirement request: https://pagure.io/releng/issue/12373 Revert "Orphaned for 6+ weeks" * Fri Jan 26 2024 Fedora Release Engineering - 1.3.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.3.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.3.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jun 14 2023 Python Maint - 1.3.3-5 - Rebuilt for Python 3.12 * Wed Feb 22 2023 Major Hayden - 1.3.3-4 - Set SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 1.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 12 2022 Major Hayden - 1.3.3-1 - Update to 1.3.3 rhbz#2106404 * Mon Jun 13 2022 Python Maint - 1.3.2-2 - Rebuilt for Python 3.11 * Mon Jun 13 2022 Major Hayden - 1.3.2-1 - Update to 1.3.1 * Wed Jun 01 2022 Major Hayden - 1.3.1-3 - Disable lower bounds testing * Fri Jan 21 2022 Fedora Release Engineering - 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 12 2022 Major Hayden - 1.3.1-1 - Update to 1.3.1 * Mon Sep 13 2021 Major Hayden - 1.1.0-1 - Initial commit (#1999311) ## END: Generated by rpmautospec