forked from pool/python-scp
- Update to 0.13.1:
* Guard against some malformed messages from the server * Remove all introspection logic for progress callback introduced in 0.12 * progress callback only accept 3 arguments again * Introduce progress4 parameter which accepts the peername as 4th argument * Fix progress callback failing when it is an instance or class method * Fix README.rst for PyPI * Add possibility of getting the peer IP and port from the progress callback * Make putfo() work with file-like objects that don't provide getvalue() * Add putfo() method, allowing one to upload a file-like object * Add top-level get() and put() functions for convenience * Increase default socket time from 5 to 10 seconds OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
110bc800d4
commit
efff7b1845
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-scp
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -18,22 +18,20 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-scp
|
||||
Version: 0.10.2
|
||||
Version: 0.13.0
|
||||
Release: 0
|
||||
Summary: SSH scp module for paramiko
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/jbardin/scp.py
|
||||
Source: https://files.pythonhosted.org/packages/source/s/scp/scp-%{version}.tar.gz
|
||||
BuildRequires: %{python_module paramiko}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-paramiko
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module paramiko}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -49,6 +47,11 @@ and has only been tested with this implementation.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# tests require running ssh server
|
||||
#%%python_exec -m unittest discover
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
Reference in New Issue
Block a user