14
0
forked from pool/python-minio

Accepting request 1108371 from devel:languages:python

- 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/request/show/1108371
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-minio?expand=0&rev=19
This commit is contained in:
2023-09-01 12:19:44 +00:00
committed by Git OBS Bridge
4 changed files with 30 additions and 20 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:230faf1d0db1c3ce09aef86b0eb38e994a64769e34dad4b77febf59bc90d8ab0
size 117073

3
minio-7.1.16.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:56ecb1e7e0103d2dc212fb460fdb70ab2abb7fa5685db378429325d96d95587a
size 120101

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Fri Sep 1 05:39:18 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- 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.
-------------------------------------------------------------------
Sun Mar 26 19:18:41 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -16,31 +16,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-minio
Version: 7.1.14
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-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 pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module urllib3}
# /SECTION
%python_subpackages
@@ -49,26 +42,24 @@ BuildRequires: %{python_module urllib3}
Minio library for Amazon S3 compatible cloud storage.
%prep
%setup -q -n minio-%{version}
%autopatch -p1
%autosetup -p1 -n minio-%{version}
mv docs/zh_CN/API.md docs/API_zh_CN.md
sed -i -e '/configparser/d' setup.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# https://github.com/minio/minio-py/issues/1187
sed -i 's:import mock:import unittest.mock as mock:' tests/unit/*.py
%pytest
%files %{python_files}
%doc README*.md docs/API*.md examples/
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/minio
%{python_sitelib}/minio-%{version}.dist-info
%changelog