forked from pool/python-pysmb
Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 1d85e260cc | |||
| 882281a220 |
3
pysmb-1.2.11.zip
Normal file
3
pysmb-1.2.11.zip
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3a33214f737e877a8ead579e63c9944941deff5e12100e1ca65311b230b1786a
|
||||||
|
size 1389566
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ad613988d54b1317ca0466dc3546f47b2dddea16e645d755d29fb75a86903326
|
|
||||||
size 1351590
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
commit 61308993bb5d0cab094edbe25abdf7bad9946192
|
|
||||||
Author: Atri Bhattacharya <A.Bhattacharya@uliege.be>
|
|
||||||
Date: Mon Feb 5 19:46:21 2024 +0530
|
|
||||||
|
|
||||||
tests: Replace SafeConfigParser with ConfigParser.
|
|
||||||
|
|
||||||
configparser.SafeConfigParser has been deprecated since python 3.2 and
|
|
||||||
has been dropped entirely from python 3.12. Replace with ConfigParser.
|
|
||||||
|
|
||||||
diff --git a/python2/tests/DirectSMBConnectionTests/util.py b/python2/tests/DirectSMBConnectionTests/util.py
|
|
||||||
index 12f82af..27f785e 100644
|
|
||||||
--- a/python2/tests/DirectSMBConnectionTests/util.py
|
|
||||||
+++ b/python2/tests/DirectSMBConnectionTests/util.py
|
|
||||||
@@ -1,10 +1,10 @@
|
|
||||||
|
|
||||||
import os
|
|
||||||
-from ConfigParser import SafeConfigParser
|
|
||||||
+from ConfigParser import ConfigParser
|
|
||||||
|
|
||||||
def getConnectionInfo():
|
|
||||||
config_filename = os.path.join(os.path.dirname(__file__), os.path.pardir, 'connection.ini')
|
|
||||||
- cp = SafeConfigParser()
|
|
||||||
+ cp = ConfigParser()
|
|
||||||
cp.read(config_filename)
|
|
||||||
|
|
||||||
info = {
|
|
||||||
diff --git a/python2/tests/DirectSMBTwistedTests/util.py b/python2/tests/DirectSMBTwistedTests/util.py
|
|
||||||
index 12f82af..27f785e 100644
|
|
||||||
--- a/python2/tests/DirectSMBTwistedTests/util.py
|
|
||||||
+++ b/python2/tests/DirectSMBTwistedTests/util.py
|
|
||||||
@@ -1,10 +1,10 @@
|
|
||||||
|
|
||||||
import os
|
|
||||||
-from ConfigParser import SafeConfigParser
|
|
||||||
+from ConfigParser import ConfigParser
|
|
||||||
|
|
||||||
def getConnectionInfo():
|
|
||||||
config_filename = os.path.join(os.path.dirname(__file__), os.path.pardir, 'connection.ini')
|
|
||||||
- cp = SafeConfigParser()
|
|
||||||
+ cp = ConfigParser()
|
|
||||||
cp.read(config_filename)
|
|
||||||
|
|
||||||
info = {
|
|
||||||
diff --git a/python2/tests/SMBConnectionTests/util.py b/python2/tests/SMBConnectionTests/util.py
|
|
||||||
index 4f52d11..faca104 100644
|
|
||||||
--- a/python2/tests/SMBConnectionTests/util.py
|
|
||||||
+++ b/python2/tests/SMBConnectionTests/util.py
|
|
||||||
@@ -1,10 +1,10 @@
|
|
||||||
|
|
||||||
import os
|
|
||||||
-from ConfigParser import SafeConfigParser
|
|
||||||
+from ConfigParser import ConfigParser
|
|
||||||
|
|
||||||
def getConnectionInfo():
|
|
||||||
config_filename = os.path.join(os.path.dirname(__file__), os.path.pardir, 'connection.ini')
|
|
||||||
- cp = SafeConfigParser()
|
|
||||||
+ cp = ConfigParser()
|
|
||||||
cp.read(config_filename)
|
|
||||||
|
|
||||||
info = {
|
|
||||||
diff --git a/python2/tests/SMBTwistedTests/util.py b/python2/tests/SMBTwistedTests/util.py
|
|
||||||
index 1c8fe89..1285084 100644
|
|
||||||
--- a/python2/tests/SMBTwistedTests/util.py
|
|
||||||
+++ b/python2/tests/SMBTwistedTests/util.py
|
|
||||||
@@ -1,10 +1,10 @@
|
|
||||||
|
|
||||||
import os
|
|
||||||
-from ConfigParser import SafeConfigParser
|
|
||||||
+from ConfigParser import ConfigParser
|
|
||||||
|
|
||||||
def getConnectionInfo():
|
|
||||||
config_filename = os.path.join(os.path.dirname(__file__), os.path.pardir, 'connection.ini')
|
|
||||||
- cp = SafeConfigParser()
|
|
||||||
+ cp = ConfigParser()
|
|
||||||
cp.read(config_filename)
|
|
||||||
|
|
||||||
info = {
|
|
||||||
diff --git a/python3/tests/DirectSMBConnectionTests/util.py b/python3/tests/DirectSMBConnectionTests/util.py
|
|
||||||
index 0e1b180..005752e 100644
|
|
||||||
--- a/python3/tests/DirectSMBConnectionTests/util.py
|
|
||||||
+++ b/python3/tests/DirectSMBConnectionTests/util.py
|
|
||||||
@@ -1,10 +1,10 @@
|
|
||||||
|
|
||||||
import os
|
|
||||||
-from configparser import SafeConfigParser
|
|
||||||
+from configparser import ConfigParser
|
|
||||||
|
|
||||||
def getConnectionInfo():
|
|
||||||
config_filename = os.path.join(os.path.dirname(__file__), os.path.pardir, 'connection.ini')
|
|
||||||
- cp = SafeConfigParser()
|
|
||||||
+ cp = ConfigParser()
|
|
||||||
cp.read(config_filename)
|
|
||||||
|
|
||||||
info = {
|
|
||||||
diff --git a/python3/tests/SMBConnectionTests/util.py b/python3/tests/SMBConnectionTests/util.py
|
|
||||||
index debf3bb..f63b92b 100644
|
|
||||||
--- a/python3/tests/SMBConnectionTests/util.py
|
|
||||||
+++ b/python3/tests/SMBConnectionTests/util.py
|
|
||||||
@@ -1,10 +1,10 @@
|
|
||||||
|
|
||||||
import os
|
|
||||||
-from configparser import SafeConfigParser
|
|
||||||
+from configparser import ConfigParser
|
|
||||||
|
|
||||||
def getConnectionInfo():
|
|
||||||
config_filename = os.path.join(os.path.dirname(__file__), os.path.pardir, 'connection.ini')
|
|
||||||
- cp = SafeConfigParser()
|
|
||||||
+ cp = ConfigParser()
|
|
||||||
cp.read(config_filename)
|
|
||||||
|
|
||||||
info = {
|
|
||||||
|
|
||||||
@@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 12 02:35:20 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.2.11:
|
||||||
|
* Fix out-of-memory issues during large file operations (due to
|
||||||
|
accumulation of messages in message_history).
|
||||||
|
* Fix a bug where the OperationFailure exceptions do not contain the error
|
||||||
|
messages that were thrown when the exception occurred (#212)
|
||||||
|
* Update test cases to replace SafeConfigParser with ConfigParser (#219)
|
||||||
|
* Allow callers to override default tqdm kwargs (#222)
|
||||||
|
- Add missing Requires on python-tqdm.
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- Drop patch python-pysmb-drop-SafeConfigParser.patch, included upstream.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 5 14:31:00 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
Mon Feb 5 14:31:00 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pysmb
|
# spec file for package python-pysmb
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,20 +17,20 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-pysmb
|
Name: python-pysmb
|
||||||
Version: 1.2.9.1
|
Version: 1.2.11
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: SMB/CIFS library to support file sharing between Windows and Linux machines
|
Summary: SMB/CIFS library to support file sharing between Windows and Linux machines
|
||||||
License: Zlib
|
License: Zlib
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://miketeo.net/projects/pysmb
|
URL: https://miketeo.net/projects/pysmb
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pysmb/pysmb-%{version}.zip
|
Source: https://files.pythonhosted.org/packages/source/p/pysmb/pysmb-%{version}.zip
|
||||||
# PATCH-FIX-UPSTREAM python-pysmb-drop-SafeConfigParser.patch gh#miketeo/pysmb#219 badshah400@gmail.com -- Replace deprecated SafeConfigParser with ConfigParser
|
BuildRequires: %{python_module pip}
|
||||||
Patch0: python-pysmb-drop-SafeConfigParser.patch
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
Requires: python-pyasn1
|
Requires: python-pyasn1
|
||||||
|
Requires: python-tqdm
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
|
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
|
||||||
@@ -53,10 +53,10 @@ pysmb is an experimental SMB/CIFS library written in Python. It implements the c
|
|||||||
sed -Ei "1{/^#!\/usr\/bin\/python/d}" python*/smb/*/sha256.py
|
sed -Ei "1{/^#!\/usr\/bin\/python/d}" python*/smb/*/sha256.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -74,6 +74,6 @@ pytest-%{$python_bin_suffix} ${python_testdir} -k 'not (SMB or test_broadcast)'
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/smb/
|
%{python_sitelib}/smb/
|
||||||
%{python_sitelib}/nmb/
|
%{python_sitelib}/nmb/
|
||||||
%{python_sitelib}/pysmb-%{version}-py%{python_version}.egg-info/
|
%{python_sitelib}/pysmb-%{version}.dist-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user