Sync from SUSE:SLFO:Main python-scp revision 204e3ee37ea38aeed403044bd4260967

This commit is contained in:
2025-05-13 16:58:10 +02:00
commit 9e0181814c
4 changed files with 135 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

48
python-scp.changes Normal file
View File

@@ -0,0 +1,48 @@
-------------------------------------------------------------------
Mon Dec 14 17:47:26 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update in SLE-15 (bsc#1176785, jsc#ECO-3105, jsc#PM-2352)
-------------------------------------------------------------------
Mon Mar 25 13:59:28 UTC 2019 - pgajdos@suse.com
- version update to 0.13.2
* Fix AssertionError in recursive get() when `_rename` is set and
server sends a POPD at the end (`_depth > 0`)
-------------------------------------------------------------------
Wed Mar 13 13:52:24 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- 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
-------------------------------------------------------------------
Tue Dec 4 12:54:01 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Sun Aug 6 18:01:13 UTC 2017 - mardnh@gmx.de
- Convert to singlespec
-------------------------------------------------------------------
Mon Aug 15 09:21:22 UTC 2016 - mardnh@gmx.de
- use python-setuptools instead of python-distribute
-------------------------------------------------------------------
Fri Jan 22 11:26:51 UTC 2016 - mardnh@gmx.de
- initial package

61
python-scp.spec Normal file
View File

@@ -0,0 +1,61 @@
#
# spec file for package python-scp
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-scp
Version: 0.13.2
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
%python_subpackages
%description
The scp.py module uses a paramiko transport to send and receive files via the
scp protocol. This is the protocol as referenced from the openssh scp program,
and has only been tested with this implementation.
%prep
%setup -q -n scp-%{version}
%build
%python_build
%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
%doc README.rst
%{python_sitelib}/*
%changelog

BIN
scp-0.13.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.