From a475385685e61e6640ebceb90e57484acf35523323234ffb636ac75e65453d35 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] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-scp?expand=0&rev=26 --- python-scp.changes | 5 +++++ python-scp.spec | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-scp.changes b/python-scp.changes index 2493a41..ca8b50e 100644 --- a/python-scp.changes +++ b/python-scp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-scp.spec b/python-scp.spec index fcfdb4b..473503e 100644 --- a/python-scp.spec +++ b/python-scp.spec @@ -1,7 +1,7 @@ # # spec file for package python-scp # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2017-2021, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -27,7 +27,9 @@ 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 @@ -45,10 +47,10 @@ and has only been tested with this implementation. %setup -q -n scp.py-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -60,6 +62,8 @@ export SCPPY_PORT=10022 %files %{python_files} %license LICENSE.txt %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/scp.py +%pycache_only %{python_sitelib}/__pycache__/scp* +%{python_sitelib}/scp-%{version}*-info %changelog