public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-asyncssh] epel10: update to version 2.22.0
@ 2026-07-12 22:06 Georg Sauthoff
  0 siblings, 0 replies; only message in thread
From: Georg Sauthoff @ 2026-07-12 22:06 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-asyncssh
Branch : epel10
Commit : 8780f34f3312ec8181189fd2df72bcf50b4fe645
Author : Georg Sauthoff <mail@gms.tf>
Date   : 2026-01-04T14:32:16+01:00
Stats  : +129/-5 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python-asyncssh/c/8780f34f3312ec8181189fd2df72bcf50b4fe645?branch=epel10

Log:
update to version 2.22.0

---
diff --git a/aiofiles-context-manager.patch b/aiofiles-context-manager.patch
new file mode 100644
index 0000000..f7f767b
--- /dev/null
+++ b/aiofiles-context-manager.patch
@@ -0,0 +1,86 @@
+commit cadb03113b925820041892c8f0266005e3e2d6fe
+Author: Georg Sauthoff <mail@gms.tf>
+Date:   Sat Jan 3 19:07:36 2026 +0100
+
+    use context managers with aiofiles open
+    
+    to make the tests more explicit and eliminate possible race conditions
+
+diff --git a/tests/test_process.py b/tests/test_process.py
+index 326feb2..9a42a01 100644
+--- a/tests/test_process.py
++++ b/tests/test_process.py
+@@ -1210,10 +1210,9 @@ class _TestAsyncFileRedirection(_TestProcess):
+         with open('stdin', 'w') as file:
+             file.write(data)
+ 
+-        file = await aiofiles.open('stdin', 'r')
+-
+-        async with self.connect() as conn:
+-            result = await conn.run('echo', stdin=file)
++        async with aiofiles.open('stdin', 'r') as file:
++            async with self.connect() as conn:
++                result = await conn.run('echo', stdin=file)
+ 
+         self.assertEqual(result.stdout, data)
+         self.assertEqual(result.stderr, data)
+@@ -1227,10 +1226,9 @@ class _TestAsyncFileRedirection(_TestProcess):
+         with open('stdin', 'wb') as file:
+             file.write(data)
+ 
+-        file = await aiofiles.open('stdin', 'rb')
+-
+-        async with self.connect() as conn:
+-            result = await conn.run('echo', stdin=file, encoding=None)
++        async with aiofiles.open('stdin', 'rb') as file:
++            async with self.connect() as conn:
++                result = await conn.run('echo', stdin=file, encoding=None)
+ 
+         self.assertEqual(result.stdout, data)
+         self.assertEqual(result.stderr, data)
+@@ -1241,10 +1239,9 @@ class _TestAsyncFileRedirection(_TestProcess):
+ 
+         data = str(id(self))
+ 
+-        file = await aiofiles.open('stdout', 'w')
+-
+-        async with self.connect() as conn:
+-            result = await conn.run('echo', input=data, stdout=file)
++        async with aiofiles.open('stdout', 'w') as file:
++            async with self.connect() as conn:
++                result = await conn.run('echo', input=data, stdout=file)
+ 
+         with open('stdout') as file:
+             stdout_data = file.read()
+@@ -1275,11 +1272,10 @@ class _TestAsyncFileRedirection(_TestProcess):
+ 
+         data = str(id(self)).encode() + b'\xff'
+ 
+-        file = await aiofiles.open('stdout', 'wb')
+-
+-        async with self.connect() as conn:
+-            result = await conn.run('echo', input=data, stdout=file,
+-                                    encoding=None)
++        async with aiofiles.open('stdout', 'wb') as file:
++            async with self.connect() as conn:
++                result = await conn.run('echo', input=data, stdout=file,
++                                        encoding=None)
+ 
+         with open('stdout', 'rb') as file:
+             stdout_data = file.read()
+@@ -1297,11 +1293,10 @@ class _TestAsyncFileRedirection(_TestProcess):
+         with open('stdin', 'w') as file:
+             file.write(data)
+ 
+-        file = await aiofiles.open('stdin', 'r')
+-
+-        async with self.connect() as conn:
+-            result = await conn.run('delay', stdin=file,
+-                                    stderr=asyncssh.DEVNULL)
++        async with aiofiles.open('stdin', 'r') as file:
++            async with self.connect() as conn:
++                result = await conn.run('delay', stdin=file,
++                                        stderr=asyncssh.DEVNULL)
+ 
+         self.assertEqual(result.stdout, data)
+ 

diff --git a/libnacl-dep-cleanup.patch b/libnacl-dep-cleanup.patch
new file mode 100644
index 0000000..bc2c2a1
--- /dev/null
+++ b/libnacl-dep-cleanup.patch
@@ -0,0 +1,34 @@
+commit 68fad751f7b4fc597c70a1e48cd2a4374cf74fbd
+Author: Georg Sauthoff <mail@gms.tf>
+Date:   Sat Jan 3 19:31:00 2026 +0100
+
+    remove libnacl dependency declarations
+    
+    after release 2.22.0 elimnated code usage
+    
+    cf. https://asyncssh.readthedocs.io/en/latest/changes.html#release-2-22-0-21-dec-2025
+
+diff --git a/pyproject.toml b/pyproject.toml
+index d595baf..7b45ecd 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -36,7 +36,6 @@ dynamic = ['version']
+ bcrypt    = ['bcrypt >= 3.1.3']
+ fido2     = ['fido2 >= 2']
+ gssapi    = ['gssapi >= 1.2.0']
+-libnacl   = ['libnacl >= 1.4.2']
+ pkcs11    = ['python-pkcs11 >= 0.7.0']
+ pyOpenSSL = ['pyOpenSSL >= 23.0.0']
+ pywin32   = ['pywin32 >= 227']
+diff --git a/tox.ini b/tox.ini
+index 03d2013..eaf7923 100644
+--- a/tox.ini
++++ b/tox.ini
+@@ -11,7 +11,6 @@ deps =
+     aiofiles>=0.6.0
+     bcrypt>=3.1.3
+     fido2>=2
+-    libnacl>=1.4.2
+     pyOpenSSL>=23.0.0
+     pytest>=7.0.1
+     pytest-cov>=3.0.0

diff --git a/python-asyncssh.spec b/python-asyncssh.spec
index eb2abf5..3be8250 100644
--- a/python-asyncssh.spec
+++ b/python-asyncssh.spec
@@ -5,7 +5,7 @@ implements many SSH protocol features such as the various channels,\
 SFTP, SCP, forwarding, session multiplexing over a connection and more.
 
 Name:           python-%{srcname}
-Version:        2.21.1
+Version:        2.22.0
 Release:        %autorelease
 Summary:        Asynchronous SSH for Python
 
@@ -14,9 +14,15 @@ License:        EPL-2.0 OR GPL-2.0-or-later
 URL:            https://github.com/ronf/asyncssh
 Source0:        %pypi_source
 
+# XXX remove with next release
+# cf. https://github.com/ronf/asyncssh/pull/788
+Patch0:         libnacl-dep-cleanup.patch
+Patch1:         aiofiles-context-manager.patch
+
 
 BuildArch:      noarch
 
+
 # required by unittests
 BuildRequires:  nmap-ncat
 BuildRequires:  openssh-clients
@@ -24,9 +30,6 @@ BuildRequires:  openssl
 BuildRequires:  python3-gssapi
 
 
-# for ed25519 etc.
-Recommends:     python3-libnacl
-
 # for OpenSSH private key encryption
 Suggests:       python3-bcrypt
 # for GSSAPI key exchange/authentication
@@ -36,6 +39,7 @@ Suggests:       python3-pyOpenSSL
 # for U2F etc. support
 Suggests:       python3-fido2
 
+
 %description
 %{desc}
 

diff --git a/sources b/sources
index ce42b4b..ec92712 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (asyncssh-2.21.1.tar.gz) = 49714106c3f7c44aa0998aec6fbf4f7171e81446f78818271140452ca4c945c645289335992233e71233203c38f06831582ca48e593dd2655272747af1818b37
+SHA512 (asyncssh-2.22.0.tar.gz) = 30340dbfa0db60071458ce51f24d972760b3284ed7bc10613546eddb39cb191076e02c0f1405d9f2f74bed8d5102f182d5e7e8264ad0c46b10e536cd80819da6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-12 22:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-12 22:06 [rpms/python-asyncssh] epel10: update to version 2.22.0 Georg Sauthoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox