From ae1664d884c3e577fc8fab5e21ec8f4b8b1daac299bbb10a9f53cfda32944099 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 15 Oct 2022 10:09:16 +0000 Subject: [PATCH] Accepting request 1011080 from home:jayvdb:py-submit 2.6k stars lots of explicit deps https://www.wheelodex.org/projects/smart-open/rdepends/ , esp snakemake, azureml & FedML optional dep of https://build.opensuse.org/package/show/devel:languages:python/python-gensim and others OBS-URL: https://build.opensuse.org/request/show/1011080 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-smart-open?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-smart-open.changes | 15 ++++++++ python-smart-open.spec | 76 +++++++++++++++++++++++++++++++++++++++ smart_open-6.2.0.tar.gz | 3 ++ 5 files changed, 118 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-smart-open.changes create mode 100644 python-smart-open.spec create mode 100644 smart_open-6.2.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-smart-open.changes b/python-smart-open.changes new file mode 100644 index 0000000..ba28039 --- /dev/null +++ b/python-smart-open.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Sat Oct 15 05:34:22 UTC 2022 - John Vandenberg + +- Update to v6.2.0 + +------------------------------------------------------------------- +Fri Sep 18 13:02:58 UTC 2020 - John Vandenberg + +- Activate test suite +- Update to v2.2.1 + +------------------------------------------------------------------- +Wed Dec 25 03:34:28 PM UTC 2019 - John Vandenberg + +- Initial spec for v1.9.0 diff --git a/python-smart-open.spec b/python-smart-open.spec new file mode 100644 index 0000000..180cf09 --- /dev/null +++ b/python-smart-open.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-smart-open +# +# Copyright (c) 2022 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.2.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 diff --git a/smart_open-6.2.0.tar.gz b/smart_open-6.2.0.tar.gz new file mode 100644 index 0000000..3d620ea --- /dev/null +++ b/smart_open-6.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:647f7c44165e7de1f8c59c2d80929f312390160a15d2a8d1bf984def59e5efd3 +size 134719