Compare commits
14 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a7bced9ad | ||
|
|
2271262b57 | ||
|
|
10d56bc2c4 |
||
|
|
14362dd7a8 | ||
|
|
12fe723db0 | ||
|
|
27a1ca69f9 | ||
|
|
283d05557d | ||
|
|
cfb686a087 | ||
|
|
17a8d22523 | ||
|
|
f6e5c78d30 | ||
|
|
1402754f4e | ||
|
|
0ea1cdc55d |
||
|
|
255af640da | ||
|
|
ce5a67abe1 |
4 changed files with 26 additions and 20 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,3 +2,5 @@
|
||||||
/python-test-utils-1.3.1.tar.gz
|
/python-test-utils-1.3.1.tar.gz
|
||||||
/python-test-utils-1.3.2.tar.gz
|
/python-test-utils-1.3.2.tar.gz
|
||||||
/python-test-utils-1.3.3.tar.gz
|
/python-test-utils-1.3.3.tar.gz
|
||||||
|
/python-test-utils-1.4.0.tar.gz
|
||||||
|
/google-cloud-testutils-1.7.1.tar.gz
|
||||||
|
|
|
||||||
15
generate-tarball.sh
Executable file
15
generate-tarball.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
VERSION=${1:?Usage: $0 <version>}
|
||||||
|
TAG="google-cloud-testutils-v${VERSION}"
|
||||||
|
workdir=$(mktemp -d)
|
||||||
|
|
||||||
|
trap 'rm -rf "${workdir}"' EXIT
|
||||||
|
|
||||||
|
git clone --depth 1 --branch "${TAG}" \
|
||||||
|
https://github.com/googleapis/google-cloud-python "${workdir}/repo"
|
||||||
|
|
||||||
|
tar czf "google-cloud-testutils-${VERSION}.tar.gz" \
|
||||||
|
--transform "s,^repo/packages/google-cloud-testutils,google-cloud-testutils-${VERSION}," \
|
||||||
|
-C "${workdir}" repo/packages/google-cloud-testutils
|
||||||
|
|
@ -1,25 +1,21 @@
|
||||||
# F35: Do not update past 1.3.1. F35's protobuf is too old.
|
|
||||||
|
|
||||||
# tests are enabled by default
|
# tests are enabled by default
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
%global srcname google-cloud-testutils
|
%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}
|
Name: python-%{srcname}
|
||||||
|
Version: 1.7.1
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Python test utilities for Google Cloud APIs
|
Summary: Python test utilities for Google Cloud APIs
|
||||||
|
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: %forgeurl
|
URL: https://github.com/googleapis/google-cloud-python
|
||||||
Source0: %forgesource
|
Source0: %{srcname}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-google-auth
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python3dist(pytest)
|
BuildRequires: python3dist(pytest)
|
||||||
|
|
@ -38,27 +34,21 @@ Summary: %{summary}
|
||||||
|
|
||||||
%description -n python3-%{srcname} %{_description}
|
%description -n python3-%{srcname} %{_description}
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%forgesetup
|
%autosetup -n %{srcname}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
%pyproject_buildrequires
|
%pyproject_buildrequires
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%pyproject_save_files test_utils
|
%pyproject_save_files test_utils
|
||||||
|
|
||||||
# Remove extra scripts and tests.
|
# Remove extra scripts and tests.
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/{scripts,tests}
|
rm %{buildroot}%{_bindir}/lower-bound-checker
|
||||||
rm -f %{buildroot}%{_bindir}/lower-bound-checker
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyproject_check_import -e "tests*"
|
%pyproject_check_import -e "tests*"
|
||||||
|
|
@ -69,10 +59,9 @@ rm -f %{buildroot}%{_bindir}/lower-bound-checker
|
||||||
%pytest --disable-warnings --ignore tests/unit/test_lower_bound_checker.py
|
%pytest --disable-warnings --ignore tests/unit/test_lower_bound_checker.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{srcname} -f %{pyproject_files}
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||||
%doc README.rst CHANGELOG.md CODE_OF_CONDUCT.md
|
%doc README.rst CHANGELOG.md
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (python-test-utils-1.3.3.tar.gz) = 1d54cf4414a2febc7aa5d3cfb9a1ee3f7ef55d8f19fcae0af81e39bfa506788d867c73c9c1eb075b2ca6c1efae770dc5c5648ce66e3b7a99c96c25f338fc1e5c
|
SHA512 (google-cloud-testutils-1.7.1.tar.gz) = a0d7c1b3220bd5f97f2cfc363e67551da5428d0788679c5c9178dbf03d3a7351e78aa2a8aad0bfa159d4016a6bf1893696199ccb18818b412653f503e3447014
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue