python-s3transfer/python-s3transfer.spec
Robert Schweikert 3e06ab7ad5 Accepting request 768704 from home:glaubitz:branches:devel:languages:python:aws
- Update to version 0.3.2
  * bugfix:s3: Fixes boto/botocore`#1916 <https://github.com/boto/botocore/issues/1916>`__
- from version 0.3.1
  * enhancement:TransferManager: Expose client and config properties
  * enhancement:Tags: Add support for Tagging and TaggingDirective
- from version 0.3.0
  * feature:Python: Dropped support for Python 2.6 and 3.3.
- Refresh patches for new version
  + hide_py_pckgmgmt.patch

OBS-URL: https://build.opensuse.org/request/show/768704
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-s3transfer?expand=0&rev=12
2020-01-30 19:00:56 +00:00

79 lines
2.3 KiB
RPMSpec

#
# spec file for package python-s3transfer
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-s3transfer
Version: 0.3.2
Release: 0
Summary: Python S3 transfer manager
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/boto/s3transfer
Source0: https://files.pythonhosted.org/packages/source/s/s3transfer/s3transfer-%{version}.tar.gz
Patch0: hide_py_pckgmgmt.patch
Patch1: no-bundled-packages.patch
BuildRequires: %{python_module botocore >= 1.12.36}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module urllib3}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-futures >= 2.2.0
Requires: python-botocore <= 2.0.0
Requires: python-botocore >= 1.12.36
Requires: python-requests
Requires: python-urllib3
BuildArch: noarch
%ifpython2
Requires: python-futures <= 4.0.0
Requires: python-futures >= 2.2.0
%endif
%python_subpackages
%description
A transfer manager for Amazon Web Services S3
%prep
%setup -q -n s3transfer-%{version}
%patch0 -p1
%patch1 -p1
# remove integration tests that need running s3 :)
rm -rf tests/integration
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# on 32bit the tests fail on OOM and various other funny things
%ifarch x86_64
%python_expand nosetests-%{$python_bin_suffix}
%endif
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/s3transfer/
%{python_sitelib}/s3transfer-%{version}-py*.egg-info
%changelog