2021-08-30 14:15:28 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-s3transfer
|
|
|
|
#
|
2024-02-12 13:12:33 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-08-30 14:15:28 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-02-12 13:12:33 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
2021-08-30 14:15:28 +02:00
|
|
|
Name: python-s3transfer
|
2024-04-05 13:07:19 +02:00
|
|
|
Version: 0.10.1
|
2021-08-30 14:15:28 +02:00
|
|
|
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
|
2023-12-23 06:11:12 +01:00
|
|
|
BuildRequires: %{python_module botocore >= 1.33.2}
|
2024-02-12 13:12:33 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2021-08-30 14:15:28 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-02-12 13:12:33 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2021-08-30 14:15:28 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-requests
|
2024-02-12 13:12:33 +01:00
|
|
|
Requires: (python-botocore >= 1.33.2 with python-botocore <= 2.0.0)
|
2021-08-30 14:15:28 +02:00
|
|
|
BuildArch: noarch
|
2024-02-12 13:12:33 +01:00
|
|
|
%if 0%{?sle_version} >= 150400
|
|
|
|
Obsoletes: python3-s3transfer < %{version}
|
|
|
|
%endif
|
2021-08-30 14:15:28 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A transfer manager for Amazon Web Services S3
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n s3transfer-%{version}
|
|
|
|
# remove integration tests that need running s3
|
|
|
|
rm -rf tests/integration
|
|
|
|
|
|
|
|
%build
|
2024-02-12 13:12:33 +01:00
|
|
|
%pyproject_wheel
|
2021-08-30 14:15:28 +02:00
|
|
|
|
|
|
|
%install
|
2024-02-12 13:12:33 +01:00
|
|
|
%pyproject_install
|
2021-08-30 14:15:28 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# test_download_futures_fail_triggers_shutdown - https://github.com/boto/s3transfer/pull/162
|
|
|
|
%pytest -k 'not test_download_futures_fail_triggers_shutdown'
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
|
|
|
%{python_sitelib}/s3transfer/
|
2024-02-12 13:12:33 +01:00
|
|
|
%{python_sitelib}/s3transfer-%{version}*-info
|
2021-08-30 14:15:28 +02:00
|
|
|
|
|
|
|
%changelog
|