commit b2ffc261292223f2e14f4bdbba600560f5b3a2038a58691108e312df79afbb8a Author: Markéta Machová Date: Thu Jun 12 09:24:26 2025 +0000 - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=26 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-scp.changes b/python-scp.changes new file mode 100644 index 0000000..ca8b50e --- /dev/null +++ b/python-scp.changes @@ -0,0 +1,122 @@ +------------------------------------------------------------------- +Thu Jun 12 09:24:05 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue Jul 18 18:53:34 UTC 2023 - Antonio Teixeira + +- Update to 0.14.5: + * Update docstrings to clarify sanitation and use of wildcards + * Make sure to close the local file on errors + +------------------------------------------------------------------- +Thu Jul 6 12:09:19 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Tue Jul 19 11:58:04 UTC 2022 - Dirk Müller + +- update to 0.14.4: + * Update type hints for pyright + +------------------------------------------------------------------- +Tue Feb 22 09:22:56 UTC 2022 - Dirk Müller + +- update to 0.14.3: + * Add type hints + +------------------------------------------------------------------- +Mon Jan 3 12:34:19 UTC 2022 - Dirk Müller + +- update to 0.14.2: + * Don't fail if the remote path is a PurePath not a Path + +------------------------------------------------------------------- +Sun Oct 31 23:50:57 UTC 2021 - Matej Cepl + +- Switch off the test suite (gh#jbardin/scp.py#167). + +------------------------------------------------------------------- +Sat Sep 11 22:23:23 UTC 2021 - Martin Hauke + +- Run unittests +- Get tarball from github.com instead pythonhosted.org + +------------------------------------------------------------------- +Sat Sep 11 12:35:33 UTC 2021 - Martin Hauke + +- Update to 0.14.1 + * Don't fail if 'pathlib' doesn't import (Python 2) + * Accept 'unicode' objects as paths (Python 2) +- Update to 0.14.0 + * Accept iterables other than list and tuple in get() and put() + * Accept pathlib.Path objects + +------------------------------------------------------------------- +Sat Jul 17 13:37:23 UTC 2021 - Dirk Müller + +- update to 0.13.6: + * Fix put when the source directory has a trailing slash. It will now work + similarly to rsync, copying the contents of the directory. + +------------------------------------------------------------------- +Tue Jun 29 20:06:41 UTC 2021 - Martin Hauke + +- Update to version 0.13.5 + * Fix extra space sent in SSH command-line for get(), causing + issues on some servers. +- Update to version 0.13.4 + * Add scp_command attribute, allowing changing the command run + on the server (for example to sudo scp) + +------------------------------------------------------------------- +Thu Nov 26 08:46:13 UTC 2020 - Dirk Mueller + +- update to 0.13.3: + - Fix hanging when underlying paramiko channel is closed + +------------------------------------------------------------------- +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 + +- 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 + +- 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 + diff --git a/python-scp.spec b/python-scp.spec new file mode 100644 index 0000000..473503e --- /dev/null +++ b/python-scp.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-scp +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2017-2021, Martin Hauke +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-scp +Version: 0.14.5 +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://github.com/jbardin/scp.py/archive/refs/tags/v%{version}.tar.gz#/scp-%{version}.tar.gz +BuildRequires: %{python_module paramiko} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: openssh-clients +BuildRequires: openssh-server +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.py-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export SCPPY_PORT=10022 +./.ci/setup_ssh.sh +# gh#jbardin/scp.py#167 +%pyunittest -v || /bin/true + +%files %{python_files} +%license LICENSE.txt +%doc README.rst +%{python_sitelib}/scp.py +%pycache_only %{python_sitelib}/__pycache__/scp* +%{python_sitelib}/scp-%{version}*-info + +%changelog diff --git a/scp-0.14.5.tar.gz b/scp-0.14.5.tar.gz new file mode 100644 index 0000000..34d6b73 --- /dev/null +++ b/scp-0.14.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:809f21b463283ed5b0b20d45160dd4038ae3e33d4038673b75394691f1ca399e +size 12264