From d4b3545e20a19b28a1ad7a54d0c5c04bed3658a2c31ecdd7b8f40d8a6882d675 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 29 Jan 2022 00:51:13 +0000 Subject: [PATCH] - Update to 2.9.0: - Added mypy-compatible type annotations to all AsyncSSH modules, and a "py.typed" file to signal that annotations are now available for this package. - Added experimental support for SFTP versions 4-6. While AsyncSSH still defaults to only advertising version 3 when acting as both a client and a server, applications can explicitly enable support for later versions, which will be used if both ends of the connection agree. Not all features are fully supported, but a number of useful enhancements are now available, including as users and groups specified by name, higher resolution timestamps, and more granular error reporting. - Updated documentation to make it clear that keys from a PKCS11 provider or ssh-agent will be used even when client_keys is specified, unless those sources are explicitly disabled. - Improved handling of task cancellation in AsyncSSH to avoid triggering an error of "Future exception was never retrieved". Thanks go to Krzysztof Kotlenga for reporting this issue and providing test code to reliably reproduce it. - Changed implementation of OpenSSH keepalive handler to improve interoperability with servers which don't expect a "success" response when this message is sent. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asyncssh?expand=0&rev=34 --- asyncssh-2.8.1.tar.gz | 3 --- asyncssh-2.9.0.tar.gz | 3 +++ gss_test.patch | 12 +++++++----- python-asyncssh.changes | 29 +++++++++++++++++++++++++++++ python-asyncssh.spec | 10 +++++----- 5 files changed, 44 insertions(+), 13 deletions(-) delete mode 100644 asyncssh-2.8.1.tar.gz create mode 100644 asyncssh-2.9.0.tar.gz diff --git a/asyncssh-2.8.1.tar.gz b/asyncssh-2.8.1.tar.gz deleted file mode 100644 index e6d04b4..0000000 --- a/asyncssh-2.8.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0648eba58d72653755f28e26c9bd83147d9652c1f2f5e87fbf5a87d7f8fbf83a -size 424719 diff --git a/asyncssh-2.9.0.tar.gz b/asyncssh-2.9.0.tar.gz new file mode 100644 index 0000000..4cc9e29 --- /dev/null +++ b/asyncssh-2.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cc337d806619465455bf187e8a91e3f575423718184e238f9ae8c41c4f33af1 +size 477142 diff --git a/gss_test.patch b/gss_test.patch index 85a6d3c..821ded2 100644 --- a/gss_test.patch +++ b/gss_test.patch @@ -1,8 +1,10 @@ -Index: asyncssh-2.2.0/tests/test_connection.py -=================================================================== ---- asyncssh-2.2.0.orig/tests/test_connection.py -+++ asyncssh-2.2.0/tests/test_connection.py -@@ -1173,7 +1173,7 @@ class _TestConnectionAsyncAcceptor(Serve +--- + tests/test_connection.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/tests/test_connection.py ++++ b/tests/test_connection.py +@@ -1470,7 +1470,7 @@ class _TestConnectionAsyncAcceptor(Serve conn.logger.info('Acceptor called') diff --git a/python-asyncssh.changes b/python-asyncssh.changes index 0f50134..0c5f7e3 100644 --- a/python-asyncssh.changes +++ b/python-asyncssh.changes @@ -1,3 +1,32 @@ +------------------------------------------------------------------- +Fri Jan 28 23:45:58 UTC 2022 - Matej Cepl + +- Update to 2.9.0: + - Added mypy-compatible type annotations to all AsyncSSH + modules, and a "py.typed" file to signal that annotations are + now available for this package. + - Added experimental support for SFTP versions 4-6. While + AsyncSSH still defaults to only advertising version 3 when + acting as both a client and a server, applications can + explicitly enable support for later versions, which will be + used if both ends of the connection agree. Not all features + are fully supported, but a number of useful enhancements are + now available, including as users and groups specified by + name, higher resolution timestamps, and more granular error + reporting. + - Updated documentation to make it clear that keys from + a PKCS11 provider or ssh-agent will be used even when + client_keys is specified, unless those sources are explicitly + disabled. + - Improved handling of task cancellation in AsyncSSH to + avoid triggering an error of "Future exception was never + retrieved". Thanks go to Krzysztof Kotlenga for reporting + this issue and providing test code to reliably reproduce it. + - Changed implementation of OpenSSH keepalive handler to + improve interoperability with servers which don't expect a + "success" response when this message is sent. + + ------------------------------------------------------------------- Fri Dec 17 12:41:16 UTC 2021 - Michael Ströder diff --git a/python-asyncssh.spec b/python-asyncssh.spec index 8317908..aac8728 100644 --- a/python-asyncssh.spec +++ b/python-asyncssh.spec @@ -1,7 +1,7 @@ # # spec file for package python-asyncssh # -# Copyright (c) 2021 SUSE LLC +# 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 @@ -20,14 +20,14 @@ %define skip_python2 1 %define skip_python36 1 Name: python-asyncssh -Version: 2.8.1 +Version: 2.9.0 Release: 0 Summary: Asynchronous SSHv2 client and server library License: EPL-2.0 OR GPL-2.0-or-later Group: Development/Languages/Python URL: https://github.com/ronf/asyncssh Source: https://files.pythonhosted.org/packages/source/a/asyncssh/asyncssh-%{version}.tar.gz -Patch0: gss_test.patch +# Patch0: gss_test.patch # SECTION test requirements BuildRequires: %{python_module bcrypt >= 3.1.3} BuildRequires: %{python_module cryptography >= 2.8} @@ -36,6 +36,7 @@ BuildRequires: %{python_module gssapi >= 1.2.0} BuildRequires: %{python_module pyOpenSSL >= 17.0.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module typing_extensions} BuildRequires: %{python_module uvloop >= 0.9.1} BuildRequires: openssh BuildRequires: openssl @@ -59,8 +60,7 @@ AsyncSSH is a Python package which provides an asynchronous client and server implementation of the SSHv2 protocol on top of the Python asyncio framework. %prep -%setup -q -n asyncssh-%{version} -%patch0 -p1 +%autosetup -p1 -n asyncssh-%{version} %build %python_build