From 9d0dfec45ac239b8f175650d41971e40ae9a9a1d573c92a28c13e2f55c9fdce9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 27 May 2022 11:39:44 +0000 Subject: [PATCH] Accepting request 979399 from home:stroeder:python update to 2.11.0 OBS-URL: https://build.opensuse.org/request/show/979399 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko?expand=0&rev=105 --- paramiko-2.10.4.tar.gz | 3 -- paramiko-2.11.0.tar.gz | 3 ++ paramiko-pr1655-remove-pytest-relaxed.patch | 16 +++++----- python-paramiko.changes | 34 +++++++++++++++++++++ python-paramiko.spec | 2 +- 5 files changed, 47 insertions(+), 11 deletions(-) delete mode 100644 paramiko-2.10.4.tar.gz create mode 100644 paramiko-2.11.0.tar.gz diff --git a/paramiko-2.10.4.tar.gz b/paramiko-2.10.4.tar.gz deleted file mode 100644 index d657bc7..0000000 --- a/paramiko-2.10.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3d2e650b6812ce6d160abff701d6ef4434ec97934b13e95cf1ad3da70ffb5c58 -size 1068156 diff --git a/paramiko-2.11.0.tar.gz b/paramiko-2.11.0.tar.gz new file mode 100644 index 0000000..ad155e4 --- /dev/null +++ b/paramiko-2.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:003e6bee7c034c21fbb051bf83dc0a9ee4106204dd3c53054c71452cc4ec3938 +size 1075390 diff --git a/paramiko-pr1655-remove-pytest-relaxed.patch b/paramiko-pr1655-remove-pytest-relaxed.patch index ecc4cfc..7a28b63 100644 --- a/paramiko-pr1655-remove-pytest-relaxed.patch +++ b/paramiko-pr1655-remove-pytest-relaxed.patch @@ -15,11 +15,11 @@ on the system. It has been banned from Gentoo for this reason. tests/test_client.py | 20 ++++++++++---------- 3 files changed, 10 insertions(+), 14 deletions(-) -Index: paramiko-2.8.0/tests/test_client.py +Index: paramiko-2.11.0/tests/test_client.py =================================================================== ---- paramiko-2.8.0.orig/tests/test_client.py -+++ paramiko-2.8.0/tests/test_client.py -@@ -33,7 +33,7 @@ import warnings +--- paramiko-2.11.0.orig/tests/test_client.py 2022-05-17 03:04:13.000000000 +0200 ++++ paramiko-2.11.0/tests/test_client.py 2022-05-26 22:57:20.216831045 +0200 +@@ -33,7 +33,7 @@ import weakref from tempfile import mkstemp @@ -28,11 +28,12 @@ Index: paramiko-2.8.0/tests/test_client.py from mock import patch, Mock import paramiko -@@ -687,10 +687,10 @@ class PasswordPassphraseTests(ClientTest +@@ -733,11 +733,11 @@ # TODO: more granular exception pending #387; should be signaling "no auth # methods available" because no key and no password - @raises(SSHException) + @requires_sha1_signing def test_passphrase_kwarg_not_used_for_password_auth(self): - # Using the "right" password in the "wrong" field shouldn't work. - self._test_connection(passphrase="pygmalion") @@ -40,13 +41,14 @@ Index: paramiko-2.8.0/tests/test_client.py + # Using the "right" password in the "wrong" field shouldn't work. + self._test_connection(passphrase="pygmalion") + @requires_sha1_signing def test_passphrase_kwarg_used_for_key_passphrase(self): - # Straightforward again, with new passphrase kwarg. -@@ -708,14 +708,14 @@ class PasswordPassphraseTests(ClientTest +@@ -757,15 +757,15 @@ password="television", ) - @raises(AuthenticationException) # TODO: more granular + @requires_sha1_signing def test_password_kwarg_not_used_for_passphrase_when_passphrase_kwarg_given( # noqa self ): diff --git a/python-paramiko.changes b/python-paramiko.changes index 379b8aa..34782ae 100644 --- a/python-paramiko.changes +++ b/python-paramiko.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Thu May 26 20:43:45 UTC 2022 - Michael Ströder + +- update to 2.11.0 + * [Feature] #1951: Add SSH config token expansion (eg %h, %p) when + parsing ProxyJump directives. + * [Support] #2004: (via #2011) Apply unittest skipIf to tests currently + using SHA1 in their critical path, to avoid failures on systems starting + to disable SHA1 outright in their crypto backends (eg RHEL 9). + * [Support] #1838: (via #1870/#2028) Update camelCase method calls + against the threading module to be snake_case; this and related tweaks + should fix some deprecation warnings under Python 3.10. + * [Support] #2038: (via #2039) Recent versions of Cryptography have + deprecated Blowfish algorithm support; in lieu of an easy method for + users to remove it from the list of algorithms Paramiko tries to import + and use, we’ve decided to remove it from our “preferred algorithms” list. + This will both discourage use of a weak algorithm, and avoid warnings. +- update to 2.10.5 + * [Bug] #2008: (via #2010) Windows-native SSH agent support as merged in + 2.10 could encounter Errno 22 OSError exceptions in some scenarios + (eg server not cleanly closing a relevant named pipe). + This has been worked around and should be less problematic. + * [Bug] #2017: OpenSSH 7.7 and older has a bug preventing it from + understanding how to perform SHA2 signature verification for RSA + certificates (specifically certs - not keys), so when we added SHA2 + support it broke all clients using RSA certificates with these servers. + This has been fixed in a manner similar to what OpenSSH’s own client + does: a version check is performed and the algorithm used is downgraded + if needed. + * [Bug] #1933: Align signature verification algorithm with OpenSSH re: + zero-padding signatures which don’t match their nominal size/length. This + shouldn’t affect most users, but will help Paramiko-implemented SSH + servers handle poorly behaved clients such as PuTTY. + ------------------------------------------------------------------- Thu Apr 28 21:26:08 UTC 2022 - Dirk Müller diff --git a/python-paramiko.spec b/python-paramiko.spec index 30d424a..adae1b6 100644 --- a/python-paramiko.spec +++ b/python-paramiko.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-paramiko -Version: 2.10.4 +Version: 2.11.0 Release: 0 Summary: SSH2 protocol library License: LGPL-2.1-or-later