935be7
%if 0%{?rhel} && 0%{?rhel} <= 7
935be7
# Minimum nose version is 1.3.3, while EL7 has 1.3.0
935be7
%bcond_with tests
935be7
%else
935be7
%bcond_without tests
935be7
%endif
935be7
935be7
%global pypi_name s3transfer
935be7
935be7
Name:           python-%{pypi_name}
935be7
Version:        0.1.13
935be7
Release:        1%{?dist}
935be7
Summary:        An Amazon S3 Transfer Manager
935be7
935be7
License:        ASL 2.0
935be7
URL:            https://github.com/boto/s3transfer
935be7
Source0:        https://pypi.io/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
935be7
BuildArch:      noarch
935be7
935be7
%description
935be7
S3transfer is a Python library for managing Amazon S3 transfers.
935be7
935be7
%package -n     python3-%{pypi_name}
935be7
Summary:        An Amazon S3 Transfer Manager
935be7
BuildRequires:  python3-devel
935be7
BuildRequires:  python3-setuptools
935be7
%if %{with tests}
935be7
BuildRequires:  python3-nose
935be7
BuildRequires:  python3-mock
935be7
BuildRequires:  python3-wheel
935be7
BuildRequires:  python3-botocore
935be7
BuildRequires:  python3-coverage
935be7
BuildRequires:  python3-unittest2
935be7
%endif # tests
935be7
Requires:       python3-botocore
935be7
%{?python_provide:%python_provide python3-%{pypi_name}}
935be7
935be7
%description -n python3-%{pypi_name}
935be7
S3transfer is a Python library for managing Amazon S3 transfers.
935be7
935be7
%prep
935be7
%setup -q -n %{pypi_name}-%{version}
935be7
# Remove online tests (see https://github.com/boto/s3transfer/issues/8)
935be7
rm -rf tests/integration
935be7
935be7
%build
935be7
%py3_build
935be7
935be7
%install
935be7
%py3_install
935be7
935be7
%if %{with tests}
935be7
%check
935be7
nosetests-%{python3_version} --with-coverage --cover-erase --cover-package s3transfer --with-xunit --cover-xml -v tests/unit/ tests/functional/
935be7
%endif # tests
935be7
935be7
%files -n python3-%{pypi_name} 
935be7
%doc README.rst
935be7
%license LICENSE.txt
935be7
%{python3_sitelib}/%{pypi_name}
935be7
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
935be7
935be7
%changelog
935be7
* Mon Jun 11 2018 Oyvind Albrigtsen <oalbrigt@redhat.com> - 0.1.13-1
935be7
- Update to 0.1.13
935be7
- Remove python2 package
935be7
935be7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.10-2
935be7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
935be7
935be7
* Wed Dec 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.10-1
935be7
- Update to 0.1.10
935be7
935be7
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.1.9-2
935be7
- Rebuild for Python 3.6
935be7
935be7
* Thu Oct 27 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.9-1
935be7
- Update to 0.1.9
935be7
935be7
* Mon Oct 10 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.7-1
935be7
- Uodate to 0.1.7
935be7
935be7
* Sun Oct 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.5-1
935be7
- Update to 0.1.5
935be7
935be7
* Wed Sep 28 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.4-1
935be7
- Update to 0.1.4
935be7
935be7
* Wed Sep 07 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.3-1
935be7
- Update to 0.1.3
935be7
935be7
* Thu Aug 04 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.1-1
935be7
- Update to 0.1.1
935be7
935be7
* Tue Aug 02 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.1.0-1
935be7
- Update to 0.1.0
935be7
935be7
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-4
935be7
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
935be7
935be7
* Wed Feb 24 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.0.1-3
935be7
- Cleanup the spec a little bit
935be7
- Remove patch
935be7
935be7
* Tue Feb 23 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.0.1-2
935be7
- Add patch to remove tests needing web connection
935be7
935be7
* Tue Feb 23 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.0.1-1
935be7
- Initial package.