From 8b76e35f1d746856fdcb519124cbc027dcc8936e Mon Sep 17 00:00:00 2001 From: John Kacur Date: Mon, 3 Nov 2025 14:56:51 -0500 Subject: [PATCH] Convert spec file to use pyproject.toml build system Add 8 patches from upstream (spelling fixes, typo corrections, cleanups) Modernize packaging with %pyproject_wheel and %pyproject_install macros Resolves: RHEL-114900 Signed-off-by: John Kacur --- ...ject.toml-for-modern-Python-packagin.patch | 30 +++++++++++++++---- rteval.spec | 1 + 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/rteval-Add-pyproject.toml-for-modern-Python-packagin.patch b/rteval-Add-pyproject.toml-for-modern-Python-packagin.patch index c13aceb..861507f 100644 --- a/rteval-Add-pyproject.toml-for-modern-Python-packagin.patch +++ b/rteval-Add-pyproject.toml-for-modern-Python-packagin.patch @@ -1,7 +1,7 @@ -From 65554081a01bf507224ce6f9ff950936e265241c Mon Sep 17 00:00:00 2001 +From 461480dbbdbde81985bd9a3d36334e3be99c09c3 Mon Sep 17 00:00:00 2001 From: John Kacur -Date: Fri, 31 Oct 2025 15:47:47 -0400 -Subject: [PATCH 8/8] rteval: Add pyproject.toml for modern Python packaging +Date: Mon, 3 Nov 2025 14:47:33 -0500 +Subject: [PATCH] rteval: Add pyproject.toml for modern Python packaging Add pyproject.toml to support modern PEP 517/518/621 packaging while keeping setup.py for backwards compatibility with older distributions. @@ -10,14 +10,17 @@ The pyproject.toml provides project metadata (name, version, dependencies, authors) and works alongside setup.py which handles script installation (copying rteval-cmd to rteval). +Add John Kacur to the list of authors and set him as the maintainer +in both pyproject.toml and setup.py metadata. + Requires Python >=3.10 and setuptools >=61.0. -Assisted-by: Claude Signed-off-by: John Kacur --- pyproject.toml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ rteval-cmd | 2 +- - 2 files changed, 59 insertions(+), 1 deletion(-) + setup.py | 6 ++++-- + 3 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml @@ -97,6 +100,23 @@ index 7af179321fe2..8fd37b98b069 100755 prompt = input("Kernel already exists, download and overwrite anyway? (y/n) ") prompt = prompt.lower() if prompt in ('no', 'n'): +diff --git a/setup.py b/setup.py +index c2695cb748a0..82db22989a6e 100644 +--- a/setup.py ++++ b/setup.py +@@ -44,8 +44,10 @@ mangz.close() + setup(name="rteval", + version = RTEVAL_VERSION, + description = "Evaluate system performance for Realtime", +- author = "Clark Williams, David Sommerseth", +- author_email = "williams@redhat.com, davids@redhat.com", ++ author = "Clark Williams, David Sommerseth, John Kacur", ++ author_email = "williams@redhat.com, davids@redhat.com, jkacur@redhat.com", ++ maintainer = "John Kacur", ++ maintainer_email = "jkacur@redhat.com", + url = "https://git.kernel.org/pub/scm/utils/rteval/rteval.git", + license = "GPLv2", + long_description = -- 2.51.1 diff --git a/rteval.spec b/rteval.spec index c8d6744..bc34956 100644 --- a/rteval.spec +++ b/rteval.spec @@ -11,6 +11,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros +BuildRequires: python3-pip Requires: python3-lxml Requires: python3-libxml2 Requires: realtime-tests