From ec3e24ca8918cbff396ae10831b0a5c6a25ac9d4a63edfa873d24fb424f73f46 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 22 Jul 2025 05:43:39 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ncclient?expand=0&rev=25 --- python-ncclient.changes | 5 +++++ python-ncclient.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-ncclient.changes b/python-ncclient.changes index 68abac7..57e4d7f 100644 --- a/python-ncclient.changes +++ b/python-ncclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 22 05:43:18 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Thu Apr 10 14:09:27 UTC 2025 - Georg Pfuetzenreuter diff --git a/python-ncclient.spec b/python-ncclient.spec index 07da745..dd7dd47 100644 --- a/python-ncclient.spec +++ b/python-ncclient.spec @@ -32,8 +32,10 @@ Patch0: allow_old_sphinx.patch Patch1: intersphinx-mapping.patch BuildRequires: %{python_module lxml >= 3.3.0} BuildRequires: %{python_module paramiko >= 1.15.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-lxml >= 3.3.0 @@ -68,11 +70,11 @@ find examples/ -name "*.py" -exec sed -i 's|#!/usr/bin/env python$|#!/usr/bin/py find ncclient/operations/third_party/ -name "*.py" -exec sed -i '/^#!\//, 1d' {} \; %build -%python_build +%pyproject_wheel cd docs && make %{?_smp_mflags} html && rm build/html/.buildinfo %install -%python_install +%pyproject_install %fdupes %{buildroot} %check @@ -81,7 +83,7 @@ cd docs && make %{?_smp_mflags} html && rm build/html/.buildinfo %files %{python_files} %license LICENSE %{python_sitelib}/ncclient -%{python_sitelib}/ncclient-%{version}*-info +%{python_sitelib}/ncclient-%{version}.dist-info %files -n python-ncclient-doc %doc README.md README.rst examples docs/build/html