14
0
forked from pool/python-minio
Files
python-minio/python-minio.spec
Steve Kowalik 480bb163a0 - Update to 7.1.16:
* Update deprecated mc admin policy commands
  * update release references to master in README.md
  * Fix upload snowball objects with staging file
  * Add generic AWS S3 domain support
  * upload_snowball_object(): seek stream to 0 before upload
  * Revert "list_objecst: fix parsing user metadata as per
    MinIO server (#1240)"
  * Disable multipart upload for upload_snowball_objects() api.
  * Remove locale usage for datetime parsing
  * fix policy as a string in presigned_post_policy() API
  * Add cert_check flag to main class constructor
- Switch to pyproject and autosetup macros.
- Stop using greedy globs in %files.
- Clean up unneeded {Build,}Requires.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-minio?expand=0&rev=36
2023-09-01 05:39:36 +00:00

66 lines
1.9 KiB
RPMSpec

#
# spec file for package python-minio
#
# Copyright (c) 2023 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/
#
Name: python-minio
Version: 7.1.16
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
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-certifi
Requires: python-urllib3
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module urllib3}
# /SECTION
%python_subpackages
%description
Minio library for Amazon S3 compatible cloud storage.
%prep
%autosetup -p1 -n minio-%{version}
mv docs/zh_CN/API.md docs/API_zh_CN.md
sed -i -e '/configparser/d' setup.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README*.md docs/API*.md examples/
%license LICENSE
%{python_sitelib}/minio
%{python_sitelib}/minio-%{version}.dist-info
%changelog