From 432acdc5debdd324d591a579160e725450bfb5163f64fddc58ac9a67701fd86c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 16 Oct 2021 09:29:10 +0000 Subject: [PATCH] Accepting request 924852 from home:ecsos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to 2.8.0 - [Feature] #1846: Add a prefetch keyword argument to SFTPClient.get/SFTPClient.getfo so users who need to skip SFTP prefetching are able to conditionally turn it off. - [Bug] #1462: (via #1882) Newer server-side key exchange algorithms not intended to use SHA1 (diffie-hellman-group14-sha256, diffie-hellman-group16-sha512) were incorrectly using SHA1 after all, due to a bug causing them to ignore the hash_algo class attribute. This has been corrected. - [Support] #1722: Remove leading whitespace from OpenSSH RSA test suite static key fixture, to conform better to spec. - [Support] #1727: Add missing test suite fixtures directory to MANIFEST.in, reinstating the ability to run Paramiko’s tests from an sdist tarball. - [Support]: Update our CI to catch issues with sdist generation, installation and testing. - [Support]: Administrivia overhaul, including but not limited to: - Migrate CI to CircleCI - Primary dev branch is now main (renamed) - Many README edits for clarity, modernization etc; including a bunch more (and consistent) status badges & unification with main project site index - PyPI page much more fleshed out (long_description is now filled in with the README; sidebar links expanded; etc) - flake8, pytest configs split out of setup.cfg into their own files - Invoke/invocations (used by maintainers/contributors) upgraded to modern versions - Skip python2 to fix build errors for Leap. - Rebase paramiko-pr1655-remove-pytest-relaxed.patch. OBS-URL: https://build.opensuse.org/request/show/924852 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko?expand=0&rev=98 --- paramiko-2.7.2.tar.gz | 3 -- paramiko-2.8.0.tar.gz | 3 ++ paramiko-pr1655-remove-pytest-relaxed.patch | 22 ++++---------- python-paramiko.changes | 33 +++++++++++++++++++++ python-paramiko.spec | 7 +++-- 5 files changed, 45 insertions(+), 23 deletions(-) delete mode 100644 paramiko-2.7.2.tar.gz create mode 100644 paramiko-2.8.0.tar.gz diff --git a/paramiko-2.7.2.tar.gz b/paramiko-2.7.2.tar.gz deleted file mode 100644 index a8f2c69..0000000 --- a/paramiko-2.7.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f36f4ba2c0d81d219f4595e35f70d56cc94f9ac40a6acdf51d6ca210ce65035 -size 1069537 diff --git a/paramiko-2.8.0.tar.gz b/paramiko-2.8.0.tar.gz new file mode 100644 index 0000000..bd236a7 --- /dev/null +++ b/paramiko-2.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e673b10ee0f1c80d46182d3af7751d033d9b573dd7054d2d0aa46be186c3c1d2 +size 1063170 diff --git a/paramiko-pr1655-remove-pytest-relaxed.patch b/paramiko-pr1655-remove-pytest-relaxed.patch index b3ecab6..ecc4cfc 100644 --- a/paramiko-pr1655-remove-pytest-relaxed.patch +++ b/paramiko-pr1655-remove-pytest-relaxed.patch @@ -15,22 +15,10 @@ 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.7.2/setup.cfg +Index: paramiko-2.8.0/tests/test_client.py =================================================================== ---- paramiko-2.7.2.orig/setup.cfg -+++ paramiko-2.7.2/setup.cfg -@@ -13,7 +13,6 @@ ignore = E124,E125,E128,E261,E301,E302,E - max-line-length = 79 - - [tool:pytest] --addopts = -p no:relaxed - looponfailroots = tests paramiko - filterwarnings = - ignore::DeprecationWarning:pkg_resources -Index: paramiko-2.7.2/tests/test_client.py -=================================================================== ---- paramiko-2.7.2.orig/tests/test_client.py -+++ paramiko-2.7.2/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 import weakref from tempfile import mkstemp @@ -40,7 +28,7 @@ Index: paramiko-2.7.2/tests/test_client.py from mock import patch, Mock import paramiko -@@ -684,10 +684,10 @@ class PasswordPassphraseTests(ClientTest +@@ -687,10 +687,10 @@ class PasswordPassphraseTests(ClientTest # TODO: more granular exception pending #387; should be signaling "no auth # methods available" because no key and no password @@ -54,7 +42,7 @@ Index: paramiko-2.7.2/tests/test_client.py def test_passphrase_kwarg_used_for_key_passphrase(self): # Straightforward again, with new passphrase kwarg. -@@ -705,14 +705,14 @@ class PasswordPassphraseTests(ClientTest +@@ -708,14 +708,14 @@ class PasswordPassphraseTests(ClientTest password="television", ) diff --git a/python-paramiko.changes b/python-paramiko.changes index 5ae2067..48c93b4 100644 --- a/python-paramiko.changes +++ b/python-paramiko.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Tue Oct 12 11:03:02 UTC 2021 - ecsos + +- Update to 2.8.0 + - [Feature] #1846: Add a prefetch keyword argument to + SFTPClient.get/SFTPClient.getfo so users who need to skip SFTP + prefetching are able to conditionally turn it off. + - [Bug] #1462: (via #1882) Newer server-side key exchange + algorithms not intended to use SHA1 (diffie-hellman-group14-sha256, + diffie-hellman-group16-sha512) were incorrectly using SHA1 after all, + due to a bug causing them to ignore the hash_algo class attribute. + This has been corrected. + - [Support] #1722: Remove leading whitespace from OpenSSH RSA test + suite static key fixture, to conform better to spec. + - [Support] #1727: Add missing test suite fixtures directory to + MANIFEST.in, reinstating the ability to run Paramiko’s tests from + an sdist tarball. + - [Support]: Update our CI to catch issues with sdist generation, + installation and testing. + - [Support]: Administrivia overhaul, including but not limited to: + - Migrate CI to CircleCI + - Primary dev branch is now main (renamed) + - Many README edits for clarity, modernization etc; including + a bunch more (and consistent) status badges & unification with + main project site index + - PyPI page much more fleshed out (long_description is now filled + in with the README; sidebar links expanded; etc) + - flake8, pytest configs split out of setup.cfg into their own files + - Invoke/invocations (used by maintainers/contributors) upgraded + to modern versions +- Skip python2 to fix build errors for Leap. +- Rebase paramiko-pr1655-remove-pytest-relaxed.patch. + ------------------------------------------------------------------- Mon Dec 7 07:22:31 UTC 2020 - Steve Kowalik diff --git a/python-paramiko.spec b/python-paramiko.spec index 30558b1..570e856 100644 --- a/python-paramiko.spec +++ b/python-paramiko.spec @@ -1,7 +1,7 @@ # # spec file for package python-paramiko # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,8 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-paramiko -Version: 2.7.2 +Version: 2.8.0 Release: 0 Summary: SSH2 protocol library License: LGPL-2.1-or-later @@ -33,7 +34,7 @@ BuildRequires: %{python_module bcrypt >= 3.1.3} BuildRequires: %{python_module cryptography >= 2.5} BuildRequires: %{python_module gssapi} BuildRequires: %{python_module invocations} -BuildRequires: %{python_module invoke} +BuildRequires: %{python_module invoke >= 1.3} BuildRequires: %{python_module pyasn1 >= 0.1.7} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest}