run test suite as part of the build process

This commit is contained in:
Felix Schwarz 2021-05-14 23:23:20 +02:00 committed by Felix Schwarz
parent e5c91ce581
commit 2380fd3dce

View File

@ -4,7 +4,7 @@ S3transfer is a Python library for managing Amazon S3 transfers.
Name: python-%{srcname} Name: python-%{srcname}
Version: 0.4.2 Version: 0.4.2
Release: 1%{?dist} Release: 2%{?dist}
Summary: Amazon S3 Transfer Manager Summary: Amazon S3 Transfer Manager
License: ASL 2.0 License: ASL 2.0
@ -17,15 +17,21 @@ BuildArch: noarch
%package -n python3-%{srcname} %package -n python3-%{srcname}
Summary: %{summary} Summary: %{summary}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
# required to run the test suite
BuildRequires: python3-botocore >= 1.12.36
BuildRequires: python3-botocore < 2.0
BuildRequires: python3-mock
BuildRequires: python3-pytest
%description -n python3-%{srcname} %{_description} %description -n python3-%{srcname} %{_description}
Python 3 version. Python 3 version.
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version} -p1
rm -vrf *.egg-info rm -vrf *.egg-info
%build %build
@ -34,6 +40,10 @@ rm -vrf *.egg-info
%install %install
%py3_install %py3_install
%check
cd tests
pytest-%{python3_version} unit functional
%files -n python3-%{srcname} %files -n python3-%{srcname}
%license LICENSE.txt %license LICENSE.txt
%doc README.rst %doc README.rst
@ -41,6 +51,9 @@ rm -vrf *.egg-info
%{python3_sitelib}/%{srcname}-*.egg-info/ %{python3_sitelib}/%{srcname}-*.egg-info/
%changelog %changelog
* Fri May 14 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 0.4.2-1
- run test suite as part of the build process
* Fri Apr 23 2021 Gwyn Ciesla <gwync@protonmail.com> - 0.4.2-1 * Fri Apr 23 2021 Gwyn Ciesla <gwync@protonmail.com> - 0.4.2-1
- 0.4.2 - 0.4.2