public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/testcloud] epel9: Remove deprecated py3_* macros (RHBZ#2378514)
Date: Tue, 15 Sep 2026 12:28:27 GMT	[thread overview]
Message-ID: <178947530772.1.17891735152208446154.rpms-testcloud-75f7bd9119b0@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/testcloud
Branch : epel9
Commit : 75f7bd9119b0902c2bd802797a5be596abd3cc91
Author : František Zatloukal <fzatlouk@redhat.com>
Date   : 2025-10-26T17:57:36+01:00
Stats  : +5/-6 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/testcloud/c/75f7bd9119b0902c2bd802797a5be596abd3cc91?branch=epel9

Log:
Remove deprecated py3_* macros (RHBZ#2378514)

---
diff --git a/testcloud.spec b/testcloud.spec
index 58a3c24..5a417c8 100644
--- a/testcloud.spec
+++ b/testcloud.spec
@@ -37,7 +37,6 @@ Summary:        Python 3 interface to testcloud
 BuildRequires:  bash-completion
 BuildRequires:  python3-devel
 BuildRequires:  python3-pytest
-BuildRequires:  python3-setuptools
 
 Requires:       acl
 Requires:       genisoimage
@@ -65,10 +64,11 @@ sed -i 's/ --cov-report=term-missing --cov testcloud//g' tox.ini
 %pyproject_buildrequires
 
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files testcloud
 
 # configuration files
 mkdir -p %{buildroot}%{_sysconfdir}/testcloud/
@@ -91,6 +91,7 @@ install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir
 install -p -m644 -D %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
 
 %check
+%pyproject_check_import
 %pytest
 # Remove compiled .py files from /etc after os_install_post
 rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o}
@@ -115,9 +116,7 @@ rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__
 
 %{_sysusersdir}/%{name}.conf
 
-%files -n python3-%{name}
-%{python3_sitelib}/testcloud
-%{python3_sitelib}/*.egg-info
+%files -n python3-%{name} -f %{pyproject_files}
 
 %changelog
 %autochangelog

                 reply	other threads:[~2026-09-15 12:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178947530772.1.17891735152208446154.rpms-testcloud-75f7bd9119b0@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox