public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: David Auer <dreua@posteo.de>
To: git-commits@fedoraproject.org
Subject: [rpms/trash-cli] pr6: Adjust to modern python packaging
Date: Sun, 20 Sep 2026 13:18:25 GMT	[thread overview]
Message-ID: <178991030562.1.17847297141286316168.rpms-trash-cli-3634169df7ed@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/trash-cli
Branch : pr6
Commit : 3634169df7ed75484589ae4b6087eb505683d41c
Author : David Auer <dreua@posteo.de>
Date   : 2025-01-19T16:53:55+01:00
Stats  : +8/-7 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/trash-cli/c/3634169df7ed75484589ae4b6087eb505683d41c?branch=pr6

Log:
Adjust to modern python packaging

---
diff --git a/trash-cli.spec b/trash-cli.spec
index 74f9c6e..a4412a1 100644
--- a/trash-cli.spec
+++ b/trash-cli.spec
@@ -7,7 +7,6 @@ URL  :          https://github.com/andreafrancia/trash-cli
 Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
 
 BuildArch:      noarch
-BuildRequires:  python3-setuptools
 BuildRequires:  python3-devel
 
 %description
@@ -18,21 +17,23 @@ compatible with rm and you can use trash-put as an alias to rm.
 %prep
 %autosetup -n %{name}-%{version}
 
+%generate_buildrequires
+%pyproject_buildrequires
+
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
+
+%pyproject_save_files -l trashcli
 
 %check
-# Once that is done a %check section should be added to run at least one basic test (or more if feasible)
 
-%files
+%files -f %{pyproject_files}
 %doc README.rst
 
 %{_bindir}/trash*
-%{python3_sitelib}/trashcli/
-%{python3_sitelib}/trash_cli-*-py*.egg-info
 %{_mandir}/man1/trash*
 
 %changelog

                 reply	other threads:[~2026-09-20 13:18 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=178991030562.1.17847297141286316168.rpms-trash-cli-3634169df7ed@fedoraproject.org \
    --to=dreua@posteo.de \
    --cc=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