diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b7a77c2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/python-test-utils-1.1.0.tar.gz diff --git a/python-google-cloud-testutils.spec b/python-google-cloud-testutils.spec new file mode 100644 index 0000000..d935878 --- /dev/null +++ b/python-google-cloud-testutils.spec @@ -0,0 +1,73 @@ +# tests are enabled by default +%bcond_without tests + +%global srcname google-cloud-testutils +%global forgeurl https://github.com/googleapis/python-test-utils +Version: 1.1.0 +%global tag v%{version} +%forgemeta + +Name: python-%{srcname} +Release: %autorelease +Summary: Python test utilities for Google Cloud APIs + +License: ASL 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 -r + + +%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 + + +%if %{with tests} +%check +%python3 -m unittest discover tests/unit/ +%endif + + +%files -n python3-%{srcname} -f %{pyproject_files} +%license LICENSE +%doc README.rst CHANGELOG.md CODE_OF_CONDUCT.md + + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..48c3e64 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-test-utils-1.1.0.tar.gz) = 39ab55c9f415e19d87f425acf02d378b6a1c8df40550870dec8e2b04104b757fca02d8f285ca1dd32b4b04ba456035851d5be16f36f640b7a883e72396acc110