From b2ffc261292223f2e14f4bdbba600560f5b3a2038a58691108e312df79afbb8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 09:24:26 +0000 Subject: [PATCH 1/7] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=26 --- .gitattributes | 23 +++++++++ .gitignore | 1 + python-scp.changes | 122 +++++++++++++++++++++++++++++++++++++++++++++ python-scp.spec | 69 +++++++++++++++++++++++++ scp-0.14.5.tar.gz | 3 ++ 5 files changed, 218 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-scp.changes create mode 100644 python-scp.spec create mode 100644 scp-0.14.5.tar.gz 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 From 213de606cf977f8e68800a6bda7faf591a14301337eb7a4e7cc7cb28b17498af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 09:33:11 +0000 Subject: [PATCH 2/7] try something OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=27 --- python-scp.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-scp.spec b/python-scp.spec index 473503e..391a66d 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -55,6 +55,7 @@ and has only been tested with this implementation. %check export SCPPY_PORT=10022 +echo 'PubkeyAcceptedKeyTypes=+ssh-dss' >> .ssh/config ./.ci/setup_ssh.sh # gh#jbardin/scp.py#167 %pyunittest -v || /bin/true From e53eaa398d156f61acbe2e88d500f9e190a0f0232c0d03a5aa4e7a34cda9afa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 09:38:01 +0000 Subject: [PATCH 3/7] one more try OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=28 --- python-scp.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-scp.spec b/python-scp.spec index 391a66d..a8d0afc 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -55,6 +55,7 @@ and has only been tested with this implementation. %check export SCPPY_PORT=10022 +mkdir -p .ssh; touch .ssh/config echo 'PubkeyAcceptedKeyTypes=+ssh-dss' >> .ssh/config ./.ci/setup_ssh.sh # gh#jbardin/scp.py#167 From 12899abba97384d06628d627773062cf461cbacf044ce9186616ca606a742a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 09:44:46 +0000 Subject: [PATCH 4/7] - Update to 0.15.0 * Add bandwidth control (limit_bw) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=29 --- python-scp.changes | 2 ++ python-scp.spec | 4 +--- scp-0.14.5.tar.gz | 3 --- scp-0.15.0.tar.gz | 3 +++ 4 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 scp-0.14.5.tar.gz create mode 100644 scp-0.15.0.tar.gz diff --git a/python-scp.changes b/python-scp.changes index ca8b50e..9df0596 100644 --- a/python-scp.changes +++ b/python-scp.changes @@ -2,6 +2,8 @@ Thu Jun 12 09:24:05 UTC 2025 - Markéta Machová - Convert to pip-based build +- Update to 0.15.0 + * Add bandwidth control (limit_bw) ------------------------------------------------------------------- Tue Jul 18 18:53:34 UTC 2023 - Antonio Teixeira diff --git a/python-scp.spec b/python-scp.spec index a8d0afc..ede7df3 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} Name: python-scp -Version: 0.14.5 +Version: 0.15.0 Release: 0 Summary: SSH scp module for paramiko License: LGPL-2.1-or-later @@ -55,8 +55,6 @@ and has only been tested with this implementation. %check export SCPPY_PORT=10022 -mkdir -p .ssh; touch .ssh/config -echo 'PubkeyAcceptedKeyTypes=+ssh-dss' >> .ssh/config ./.ci/setup_ssh.sh # gh#jbardin/scp.py#167 %pyunittest -v || /bin/true diff --git a/scp-0.14.5.tar.gz b/scp-0.14.5.tar.gz deleted file mode 100644 index 34d6b73..0000000 --- a/scp-0.14.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:809f21b463283ed5b0b20d45160dd4038ae3e33d4038673b75394691f1ca399e -size 12264 diff --git a/scp-0.15.0.tar.gz b/scp-0.15.0.tar.gz new file mode 100644 index 0000000..3686733 --- /dev/null +++ b/scp-0.15.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe699c913ecb9f62713beba34f7fdd22e5b4485536746d722f79ff61041b9d44 +size 12616 From fbb7e4b1e18303c199e76cfd4de91baa369f160d26675cc8540f47d7c812af39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 09:51:56 +0000 Subject: [PATCH 5/7] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=30 --- python-scp.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-scp.spec b/python-scp.spec index ede7df3..5123703 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -55,7 +55,7 @@ and has only been tested with this implementation. %check export SCPPY_PORT=10022 -./.ci/setup_ssh.sh +#./.ci/setup_ssh.sh # gh#jbardin/scp.py#167 %pyunittest -v || /bin/true From 1f5a9f8f2c5c1feacc48de13d45c6bf74e0268fded24099dd828ee6838762ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 10:04:17 +0000 Subject: [PATCH 6/7] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=31 --- python-scp.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-scp.spec b/python-scp.spec index 5123703..04ff025 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -55,7 +55,8 @@ and has only been tested with this implementation. %check export SCPPY_PORT=10022 -#./.ci/setup_ssh.sh +export LANG=en_US.UTF-8 +./.ci/setup_ssh.sh # gh#jbardin/scp.py#167 %pyunittest -v || /bin/true From a66683b75b8a299b6a66e326220f0ba3ad060f102cc5e7272909bef173ee87d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 12 Jun 2025 10:06:41 +0000 Subject: [PATCH 7/7] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=32 --- python-scp.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python-scp.spec b/python-scp.spec index 04ff025..6530d6c 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -54,11 +54,10 @@ and has only been tested with this implementation. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -export SCPPY_PORT=10022 -export LANG=en_US.UTF-8 -./.ci/setup_ssh.sh # gh#jbardin/scp.py#167 -%pyunittest -v || /bin/true +#export SCPPY_PORT=10022 +#./.ci/setup_ssh.sh +#%pyunittest -v || /bin/true %files %{python_files} %license LICENSE.txt