forked from pool/python-asyncssh
- update to 1.16.1
- drop 194.patch * Added channel, connection, and env properties to SFTPServer instances, so connection and channel information can be used to influence the SFTP server's behavior. Previously, connection information was made avaiable through the constructor, but channel and environment information was not. Now, all of these are available as properties on the SFTPServer instance without the need to explicitly store anything in a custom constructor. * Optimized SFTP glob matching when the glob pattern contains directory names without glob characters in them. Thanks go to Mikhail Terekhov for contributing this improvement! * Added support for PurePath in a few places that were missed when this support was originally added. Once again, thanks go to Mikhail Terehkov for these fixes. * Fixed bug in SFTP parallel I/O file reader where it sometimes returned EOF prematurely. Thanks go to David G for reporting this problem and providing a reproducible test case. * Fixed test failures seen on Fedora Rawhide. Thanks go to Georg Sauthof for reporting this issue and providing a test environment to help debug it. * Updated Ed25519/448 and Curve25519/448 tests to only run when these algorithms are available. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asyncssh?expand=0&rev=11
This commit is contained in:
61
194.patch
61
194.patch
@@ -1,61 +0,0 @@
|
||||
From 110a7c22926c067e65cfaa05c19aac12b637eb79 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= <mimi.vx@gmail.com>
|
||||
Date: Wed, 6 Mar 2019 15:25:28 +0100
|
||||
Subject: [PATCH] Test ed25519 and curve448 only if is available
|
||||
|
||||
---
|
||||
tests/test_agent.py | 3 ++-
|
||||
tests/test_kex.py | 5 +++++
|
||||
2 files changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_agent.py b/tests/test_agent.py
|
||||
index 6dd30b1..08237c1 100644
|
||||
--- a/tests/test_agent.py
|
||||
+++ b/tests/test_agent.py
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
import asyncssh
|
||||
|
||||
+from asyncssh.crypto.ed import ed25519_available
|
||||
from asyncssh.agent import SSH_AGENT_SUCCESS, SSH_AGENT_FAILURE
|
||||
from asyncssh.packet import Byte, String
|
||||
|
||||
@@ -175,7 +176,7 @@ def test_sign(self, agent):
|
||||
|
||||
algs = ['ssh-dss', 'ssh-rsa', 'ecdsa-sha2-nistp256']
|
||||
|
||||
- if libnacl_available: # pragma: no branch
|
||||
+ if ed25519_available: # pragma: no branch
|
||||
algs.append('ssh-ed25519')
|
||||
|
||||
for alg_name in algs:
|
||||
diff --git a/tests/test_kex.py b/tests/test_kex.py
|
||||
index 1512e40..86a75c6 100644
|
||||
--- a/tests/test_kex.py
|
||||
+++ b/tests/test_kex.py
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
import asyncssh
|
||||
|
||||
+
|
||||
from asyncssh.kex_dh import MSG_KEXDH_INIT, MSG_KEXDH_REPLY
|
||||
from asyncssh.kex_dh import MSG_KEX_DH_GEX_REQUEST, MSG_KEX_DH_GEX_GROUP
|
||||
from asyncssh.kex_dh import MSG_KEX_DH_GEX_INIT, MSG_KEX_DH_GEX_REPLY, _KexDHGex
|
||||
@@ -39,6 +40,7 @@
|
||||
from asyncssh.kex import register_kex_alg, get_kex_algs, get_kex
|
||||
from asyncssh.packet import SSHPacket, Boolean, Byte, MPInt, String
|
||||
from asyncssh.public_key import SSHLocalKeyPair, decode_ssh_public_key
|
||||
+from asyncssh.crypto.ed import curve448_available
|
||||
|
||||
from .util import asynctest, gss_available, patch_gss
|
||||
from .util import AsyncTestCase, ConnectionStub
|
||||
@@ -523,6 +525,9 @@ def test_curve448dh_errors(self):
|
||||
except ImportError: # pragma: no cover
|
||||
return
|
||||
|
||||
+ if not curve448_available: # pragma: no cover
|
||||
+ return
|
||||
+
|
||||
client_conn, server_conn = \
|
||||
_KexClientStub.make_pair(b'curve448-sha512')
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4f3b4da21e415f20dc72aa9189f865833588301e8531641a6a22bf6a336bb63a
|
||||
size 321999
|
||||
3
asyncssh-1.16.1.tar.gz
Normal file
3
asyncssh-1.16.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b9e4612daed054725d658726dda7dfdd9f9deb711102e874d197c326bc0a2a62
|
||||
size 323419
|
||||
@@ -1,10 +1,36 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 1 13:23:08 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- update to 1.16.1
|
||||
- drop 194.patch
|
||||
* Added channel, connection, and env properties to SFTPServer instances,
|
||||
so connection and channel information can be used to influence the
|
||||
SFTP server's behavior. Previously, connection information was made
|
||||
avaiable through the constructor, but channel and environment
|
||||
information was not. Now, all of these are available as properties
|
||||
on the SFTPServer instance without the need to explicitly store anything
|
||||
in a custom constructor.
|
||||
* Optimized SFTP glob matching when the glob pattern contains directory
|
||||
names without glob characters in them. Thanks go to Mikhail Terekhov
|
||||
for contributing this improvement!
|
||||
* Added support for PurePath in a few places that were missed when this
|
||||
support was originally added. Once again, thanks go to Mikhail Terehkov
|
||||
for these fixes.
|
||||
* Fixed bug in SFTP parallel I/O file reader where it sometimes returned
|
||||
EOF prematurely. Thanks go to David G for reporting this problem and
|
||||
providing a reproducible test case.
|
||||
* Fixed test failures seen on Fedora Rawhide. Thanks go to Georg Sauthof
|
||||
for reporting this issue and providing a test environment to help debug
|
||||
it.
|
||||
* Updated Ed25519/448 and Curve25519/448 tests to only run when these
|
||||
algorithms are available.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 6 14:55:29 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- remove python-nacl from builddeps
|
||||
- add 194.patch to fix testsuite
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 6 12:36:52 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -19,14 +19,13 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-asyncssh
|
||||
Version: 1.16.0
|
||||
Version: 1.16.1
|
||||
Release: 0
|
||||
Summary: Asynchronous SSHv2 client and server library
|
||||
License: EPL-2.0 OR GPL-2.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
Url: http://asyncssh.timeheart.net
|
||||
Source: https://files.pythonhosted.org/packages/source/a/asyncssh/asyncssh-%{version}.tar.gz
|
||||
Patch0: 194.patch
|
||||
BuildRequires: %{python_module bcrypt >= 3.1.3}
|
||||
BuildRequires: %{python_module cryptography >= 2.6.1}
|
||||
BuildRequires: %{python_module gssapi >= 1.2.0}
|
||||
@@ -53,7 +52,6 @@ asyncio framework.
|
||||
|
||||
%prep
|
||||
%setup -q -n asyncssh-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user