forked from pool/python-minio
* EventIterable: use looping instead of tail recursion in next() (#1126) (07/07/21) (Bala FA) * list_objects(): add url encoding type support. (#1107) (06/29/21) (Bala FA) * listen_bucket_notification(): return EventIterable object as controlled iterator. (#1118) (06/25/21) (Bala FA) * allow setting custom environment variables for mc admin subprocess (#1100) (05/24/21) (cbows) * fix error when mc admin response has a trailing newline (#1099) (05/24/21) (cbows) * Bucket: add string representation and equality method (#1095) (05/24/21) (Bahram Aghaei) * list_objects(): identify delete marker generically (#1106) (05/24/21) (Bala FA) * make_bucket: use region passed via constructor (#1103) (03/29/21) (Bala FA) * Optimize logic of read_part_data() (#1085) (02/21/21) (Bala FA) * Fix divided by zero error at part info computation. (#1083) (02/18/21) (Bala FA) * Convert timedelta.total_seconds() to integer in credential providers. (#1081) (02/12/21) (Brian Thorne) * fix data argument description of put_object() API (#1071) (01/29/21) (Bala FA) * fix getbytes() usage in make_bucket() API (#1073) (01/29/21) (Bala FA) * fix Retention properties usage (#1066) (01/27/21) (Bala FA) * fix Tagging.tags usage properly (#1061) (01/27/21) (Bala FA) * Add default 5 minutes timeout to default http client (#1069) (01/25/21) (Bala FA) * Enhance HTTP trace (#1056) (01/09/21) (Bala FA) * Allow empty prefix in Filter (#1053) (01/05/21) (Bala FA) * fix: bring back previous change to functional test script (#1045) (12/10/20) (Harshavardhana) * Remove configparser as dependency (#1046) (12/10/20) (Bala FA) * Python2 support has been removed. * Added support for S3 APIs related to object locking and versioning, tagging. * Added support for compose object. * fix: running functional tests issues (12/08/20) (Minio Trusted) * Enhance put_object() API to support more parameters (#1022) (12/04/20) (Bala FA) * Rename presigned_url() to get_presigned_url() (#1032) (12/03/20) (Bala FA) * Refactor PostPolicy implementation (#1023) (12/01/20) (Bala FA) * fix: allow tests to run properly on gateway setups (#1034) (11/28/20) (Harshavardhana) * error.code() is a property not function (11/28/20) (Harshavardhana) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-minio?expand=0&rev=22
75 lines
2.2 KiB
RPMSpec
75 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-minio
|
|
#
|
|
# Copyright (c) 2021 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-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-minio
|
|
Version: 7.1.0
|
|
Release: 0
|
|
Summary: Minio library for Amazon S3 compatible cloud storage
|
|
License: Apache-2.0
|
|
URL: https://github.com/minio/minio-py
|
|
Source: https://files.pythonhosted.org/packages/source/m/minio/minio-%{version}.tar.gz
|
|
Patch0: remove-nose.patch
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-certifi
|
|
Requires: python-future
|
|
Requires: python-python-dateutil
|
|
Requires: python-pytz
|
|
Requires: python-urllib3
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module Faker}
|
|
BuildRequires: %{python_module certifi}
|
|
BuildRequires: %{python_module future}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module pytz}
|
|
BuildRequires: %{python_module urllib3}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Minio library for Amazon S3 compatible cloud storage.
|
|
|
|
%prep
|
|
%setup -q -n minio-%{version}
|
|
%autopatch -p1
|
|
mv docs/zh_CN/API.md docs/API_zh_CN.md
|
|
sed -i -e '/configparser/d' setup.py
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README*.md docs/API*.md examples/
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|