From 1402754f4ed00dd5616738a5516afaa1f6893c2c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 2 Oct 2024 14:38:25 +0000 Subject: [PATCH] Unretirement request: https://pagure.io/releng/issue/12373 Revert "Orphaned for 6+ weeks" This reverts commit 0ea1cdc55d8c7d997a9b676741007a9addbb32f7. Signed-off-by: Fedora Release Engineering --- .gitignore | 4 ++ README.md | 3 ++ dead.package | 1 - python-google-cloud-testutils.spec | 78 ++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 README.md delete mode 100644 dead.package create mode 100644 python-google-cloud-testutils.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0fe5b27 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/python-test-utils-1.1.0.tar.gz +/python-test-utils-1.3.1.tar.gz +/python-test-utils-1.3.2.tar.gz +/python-test-utils-1.3.3.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..6fbbc01 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# python-google-cloud-testutils + +The python-google-cloud-testutils package diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/python-google-cloud-testutils.spec b/python-google-cloud-testutils.spec new file mode 100644 index 0000000..1bcb985 --- /dev/null +++ b/python-google-cloud-testutils.spec @@ -0,0 +1,78 @@ +# 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 +%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 + +%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 -rf %{buildroot}%{python3_sitelib}/{scripts,tests} +rm -f %{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 + + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..74d4d5e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-test-utils-1.3.3.tar.gz) = 1d54cf4414a2febc7aa5d3cfb9a1ee3f7ef55d8f19fcae0af81e39bfa506788d867c73c9c1eb075b2ca6c1efae770dc5c5648ce66e3b7a99c96c25f338fc1e5c