From db8b953d29051a2e271cc977acda183fd52f85dce1599ee048fc6a7049716b11 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 12 Sep 2021 13:57:22 +0000 Subject: [PATCH] Accepting request 918478 from home:mnhauke - Run unittests - Get tarball from github.com instead pythonhosted.org - 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 OBS-URL: https://build.opensuse.org/request/show/918478 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=16 --- python-scp.changes | 16 ++++++++++++++++ python-scp.spec | 13 ++++++++----- scp-0.13.6.tar.gz | 3 --- scp-0.14.1.tar.gz | 3 +++ 4 files changed, 27 insertions(+), 8 deletions(-) delete mode 100644 scp-0.13.6.tar.gz create mode 100644 scp-0.14.1.tar.gz diff --git a/python-scp.changes b/python-scp.changes index 7e45a70..feaf4d8 100644 --- a/python-scp.changes +++ b/python-scp.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +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 diff --git a/python-scp.spec b/python-scp.spec index 5ec7e33..af12304 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -19,16 +19,18 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-scp -Version: 0.13.6 +Version: 0.14.1 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 +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 setuptools} BuildRequires: fdupes +BuildRequires: openssh-clients +BuildRequires: openssh-server BuildRequires: python-rpm-macros Requires: python-paramiko BuildArch: noarch @@ -40,7 +42,7 @@ 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} +%setup -q -n scp.py-%{version} %build %python_build @@ -50,8 +52,9 @@ and has only been tested with this implementation. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# tests require running ssh server -#%%python_exec -m unittest discover +export SCPPY_PORT=10022 +./.ci/setup_ssh.sh +%pyunittest -v %files %{python_files} %license LICENSE.txt diff --git a/scp-0.13.6.tar.gz b/scp-0.13.6.tar.gz deleted file mode 100644 index 48ec70a..0000000 --- a/scp-0.13.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0a72f9d782e968b09b114d5607f96b1f16fe9942857afb355399edd55372fcf1 -size 11955 diff --git a/scp-0.14.1.tar.gz b/scp-0.14.1.tar.gz new file mode 100644 index 0000000..1aefbf7 --- /dev/null +++ b/scp-0.14.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb70933f61b83f0e99ba772f04fed71e5b96520106433c26224356b1fe9c017c +size 11858