public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/trash-cli] main: Get build requirements from upstream
@ 2026-09-20 15:08 David Auer
0 siblings, 0 replies; only message in thread
From: David Auer @ 2026-09-20 15:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/trash-cli
Branch : main
Commit : 7a5b198f307bfa3cacca2a2f27ca6daee4105937
Author : David Auer <dreua@posteo.de>
Date : 2026-09-20T17:07:41+02:00
Stats : +6/-7 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/trash-cli/c/7a5b198f307bfa3cacca2a2f27ca6daee4105937?branch=main
Log:
Get build requirements from upstream
---
diff --git a/trash-cli.spec b/trash-cli.spec
index 50dadee..ca8d5d6 100644
--- a/trash-cli.spec
+++ b/trash-cli.spec
@@ -8,9 +8,6 @@ Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
-BuildRequires: python3dist(pytest)
-BuildRequires: python3dist(flexmock)
-BuildRequires: python3dist(pyyaml)
%description
trash-cli provides a command line trash usable with GNOME, KDE, Xfce or any
@@ -19,9 +16,12 @@ compatible with rm and you can use trash-put as an alias to rm.
%prep
%autosetup -n %{name}-%{version} -p1
+# clean specific requirements for older (eol) python versions
+# this removes the whole line if it matches in any combination
+sed -i -E "/; python_version (~=|<) '(2.7|3.4|3.3|3.5|3.8)'/d" setup.cfg
%generate_buildrequires
-%pyproject_buildrequires
+%pyproject_buildrequires -x dev
%build
%pyproject_wheel
@@ -32,9 +32,8 @@ compatible with rm and you can use trash-put as an alias to rm.
%pyproject_save_files -l trashcli
%check
-# There is a tox.ini in the repo and buildrequires -t works, but the README
-# instructs to run pytest, so we do that. "not slow" should be enough for
-# a quick verification.
+# There is a tox.ini in the repo, but the README instructs to run pytest.
+# "not slow" should be enough for a quick verification.
%pytest -m "not slow"
%files -f %{pyproject_files}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-20 15:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20 15:08 [rpms/trash-cli] main: Get build requirements from upstream David Auer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox