diff --git a/python-s3transfer.spec b/python-s3transfer.spec index 563a704..e7e6e23 100644 --- a/python-s3transfer.spec +++ b/python-s3transfer.spec @@ -4,7 +4,7 @@ S3transfer is a Python library for managing Amazon S3 transfers. Name: python-%{srcname} Version: 0.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Amazon S3 Transfer Manager License: ASL 2.0 @@ -17,15 +17,21 @@ BuildArch: noarch %package -n python3-%{srcname} Summary: %{summary} + BuildRequires: python3-devel 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} Python 3 version. %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 rm -vrf *.egg-info %build @@ -34,6 +40,10 @@ rm -vrf *.egg-info %install %py3_install +%check +cd tests +pytest-%{python3_version} unit functional + %files -n python3-%{srcname} %license LICENSE.txt %doc README.rst @@ -41,6 +51,9 @@ rm -vrf *.egg-info %{python3_sitelib}/%{srcname}-*.egg-info/ %changelog +* Fri May 14 2021 Felix Schwarz - 0.4.2-1 +- run test suite as part of the build process + * Fri Apr 23 2021 Gwyn Ciesla - 0.4.2-1 - 0.4.2