14
0
Files
python-smart-open/python-smart-open.spec
John Vandenberg d32f91ef24 Accepting request 1056674 from home:yarunachalam:branches:devel:languages:python
- Update to version 6.3.0 
  * Refactor Google Cloud Storage to use blob.open (ddelange, #744)
  * Add FTP/FTPS support (#33) (RachitSharma2001, #739)
  * Bring back compression_wrapper(filename) + use case-insensitive extension matching (piskvorky, #737)
  * Fix avoidable S3 race condition (#693) (RachitSharma2001, #735)
  * setup.py: Remove pathlib2 (jayvdb, #733)
  * Add flake8 config globally (cadnce, #732)
  * Added buffer_size parameter to http module (mullenkamp, #730)
  * Added documentation to support GCS anonymously (cadnce, #728)
  * Reconnect inactive sftp clients automatically (Kache, #719)

OBS-URL: https://build.opensuse.org/request/show/1056674
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smart-open?expand=0&rev=3
2023-01-14 04:20:35 +00:00

77 lines
2.4 KiB
RPMSpec

#
# spec file for package python-smart-open
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-smart-open
Version: 6.3.0
Release: 0
Summary: Python utils for streaming large files
License: MIT
Group: Development/Languages/Python
Source: https://github.com/RaRe-Technologies/smart_open/archive/refs/tags/v%{version}.tar.gz#/smart_open-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-azure-common
Requires: python-azure-core
Requires: python-azure-storage-blob
Requires: python-boto3
Requires: python-google-cloud-storage
Requires: python-requests
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module azure-common}
BuildRequires: %{python_module azure-core}
BuildRequires: %{python_module azure-storage-blob}
BuildRequires: %{python_module boto3}
BuildRequires: %{python_module google-cloud-storage}
BuildRequires: %{python_module moto >= 1.3.4}
BuildRequires: %{python_module moto-server}
BuildRequires: %{python_module paramiko}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module responses}
# /SECTION
%python_subpackages
%description
Python utils for streaming large files.
Includes support for S3, HDFS, gzip, bz2, etc.
%prep
%setup -q -n smart_open-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
moto_server -p5000 2>/dev/null &
export SO_ENABLE_MOTO_SERVER=1
%pytest -rs smart_open/
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/smart[-_]open*/
%changelog