Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 2c7a693a76 | |||
| d9bea661dd | |||
| 526be4099c | |||
| 8a8749f780 | |||
| 364c8ea04d | |||
| 23613b1ad5 | |||
| 4d03b6a490 |
@@ -1,3 +1,32 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 18 10:31:46 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to version 7.1.0
|
||||
* Add support for python 3.13 (PR #847, @ddelange)
|
||||
* Propagate uri to compression_wrapper (PR #842, @ddelange)
|
||||
- Drop support-python-313.patch, merged upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 16 03:17:47 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Remove upper pin on urllib3.
|
||||
- Drop moto_server set up and teardown, it is for one testcase.
|
||||
- Drop patch skip-gzip-tests-python312.patch, not required.
|
||||
- Add patch support-python-313.patch:
|
||||
* Support Python 3.13 changes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 19:30:36 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 7.0.5:
|
||||
* Fix zstd compression in ab mode
|
||||
* Fix close function not neing able to upload a compressed S3
|
||||
* Fix test_http.request_callback
|
||||
* Update readline logic for azure to match s3
|
||||
* Make http handler take an optional requests.Session
|
||||
* Ensure no side effects on SinglepartWriter exception
|
||||
* Add support for `get_blob_kwargs` to GCS blob read operations
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 2 22:17:52 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-smart-open
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,13 +17,12 @@
|
||||
|
||||
|
||||
Name: python-smart-open
|
||||
Version: 7.0.4
|
||||
Version: 7.1.0
|
||||
Release: 0
|
||||
Summary: Python utils for streaming large files
|
||||
License: MIT
|
||||
URL: https://github.com/piskvorky/smart_open
|
||||
Source: https://github.com/piskvorky/smart_open/archive/refs/tags/v%{version}.tar.gz#/smart_open-%{version}.tar.gz
|
||||
Patch0: skip-gzip-tests-python312.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
@@ -39,9 +38,6 @@ Requires: python-wrapt
|
||||
Requires: python-zstandard
|
||||
Suggests: python-paramiko
|
||||
BuildArch: noarch
|
||||
# see https://github.com/piskvorky/smart_open/issues/784
|
||||
BuildRequires: %{python_module urllib3 < 2}
|
||||
Requires: python-urllib3 < 2
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module azure-common}
|
||||
BuildRequires: %{python_module azure-core}
|
||||
@@ -74,12 +70,7 @@ Includes support for S3, HDFS, gzip, bz2, etc.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
moto_server -p5000 2>/dev/null &
|
||||
server_pid=$!
|
||||
export SO_ENABLE_MOTO_SERVER=1
|
||||
# Requires network
|
||||
%pytest -rs -k 'not (test_http_gz or test_s3_gzip_compress_sanity)' smart_open/
|
||||
kill $server_pid
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
Index: smart_open-7.0.1/smart_open/tests/test_smart_open.py
|
||||
===================================================================
|
||||
--- smart_open-7.0.1.orig/smart_open/tests/test_smart_open.py
|
||||
+++ smart_open-7.0.1/smart_open/tests/test_smart_open.py
|
||||
@@ -20,6 +20,7 @@ import tempfile
|
||||
import unittest
|
||||
from unittest import mock
|
||||
import warnings
|
||||
+import sys
|
||||
|
||||
import boto3
|
||||
import pytest
|
||||
@@ -1795,6 +1796,8 @@ def test_s3_gzip_compress_sanity():
|
||||
)
|
||||
def test_s3_read_explicit(url, _compression):
|
||||
"""Can we read using the explicitly specified compression?"""
|
||||
+ if sys.version_info.minor == 12 and _compression == ".gz":
|
||||
+ raise unittest.SkipTest
|
||||
initialize_bucket()
|
||||
with smart_open.open(url, 'rb', compression=_compression) as fin:
|
||||
assert fin.read() == _DECOMPRESSED_DATA
|
||||
@@ -1811,6 +1814,8 @@ def test_s3_read_explicit(url, _compress
|
||||
)
|
||||
def test_s3_write_explicit(_compression, expected):
|
||||
"""Can we write using the explicitly specified compression?"""
|
||||
+ if sys.version_info.minor == 12 and _compression == ".gz":
|
||||
+ raise unittest.SkipTest
|
||||
initialize_bucket()
|
||||
|
||||
with smart_open.open("s3://bucket/key", "wb", compression=_compression) as fout:
|
||||
@@ -1831,6 +1836,8 @@ def test_s3_write_explicit(_compression,
|
||||
)
|
||||
def test_s3_write_implicit(url, _compression, expected):
|
||||
"""Can we determine the compression from the file extension?"""
|
||||
+ if sys.version_info.minor == 12 and _compression == ".gz":
|
||||
+ raise unittest.SkipTest
|
||||
initialize_bucket()
|
||||
|
||||
with smart_open.open(url, "wb", compression=INFER_FROM_EXTENSION) as fout:
|
||||
@@ -1851,6 +1858,8 @@ def test_s3_write_implicit(url, _compres
|
||||
)
|
||||
def test_s3_disable_compression(url, _compression, expected):
|
||||
"""Can we handle the compression parameter when reading/writing?"""
|
||||
+ if sys.version_info.minor == 12 and _compression == ".gz":
|
||||
+ raise unittest.SkipTest
|
||||
initialize_bucket()
|
||||
|
||||
with smart_open.open(url, "wb") as fout:
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:85a57d2099ef3d5050e52ee1f054e5c2c6fe169a4719d3a873d9a0de39a80a87
|
||||
size 139681
|
||||
3
smart_open-7.1.0.tar.gz
Normal file
3
smart_open-7.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:31078d5e6800cd41fd3ad8f6d32964343bdaef5ce646f220c2e3a89153e51174
|
||||
size 141704
|
||||
Reference in New Issue
Block a user