public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pyqt-feedback-flow] f45: Simplify and modernize packaging
@ 2026-09-14  9:51 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-14  9:51 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-pyqt-feedback-flow
Branch : f45
Commit : bfb5ddb5687770c5ce563c9202de1a38d72b9f82
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-14T10:35:21+01:00
Stats  : +34/-60 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pyqt-feedback-flow/c/bfb5ddb5687770c5ce563c9202de1a38d72b9f82?branch=f45

Log:
Simplify and modernize packaging

---
diff --git a/python-pyqt-feedback-flow.spec b/python-pyqt-feedback-flow.spec
index 65d8ef4..9b26bf6 100644
--- a/python-pyqt-feedback-flow.spec
+++ b/python-pyqt-feedback-flow.spec
@@ -1,84 +1,58 @@
-%global pypi_name pyqt-feedback-flow
-
-%bcond tests 1
-
-Name:           python-%{pypi_name}
+Name:           python-pyqt-feedback-flow
 Version:        0.3.5
 Release:        %autorelease
 Summary:        Show feedback in toast-like notifications
 
-%global forgeurl https://github.com/firefly-cpp/pyqt-feedback-flow
-%global tag %{version}
-%forgemeta
-
 License:        MIT
-URL:            %forgeurl
-Source0:        %forgesource
+URL:            https://github.com/firefly-cpp/pyqt-feedback-flow
+Source:         %{url}/archive/%{version}/pyqt-feedback-flow-%{version}.tar.gz
 
 BuildArch:      noarch
-BuildRequires:  python3-devel
-# The python3dist(pyqt6) dependency generated from PyQt6 in
-# pyproject.toml is satisfied by python3-pyqt6-base, but this project
-# uses PyQt6.QtSvg, which is packaged along with other “non-core” modules
-# in python3-pyqt6. Since this is not represented (and currently cannot
-# be represented) in the Python metadata, we need explicit BuildRequires
-# *and* Requires on the full python3-pyqt6.
-BuildRequires:  python3-pyqt6
-BuildRequires:  tomcli
-%if %{with tests}
+
+BuildSystem:    pyproject
+BuildOption(install): --assert-license pyqt_feedback_flow
+
+# Test deps.: see [tool.poetry.dev-dependencies] in pyproject.toml
 BuildRequires:  %{py3_dist pytest}
 BuildRequires:  %{py3_dist pytest-qt}
-%endif
 
-%global _description %{expand:
-This software allows us to show flowing notifications in the realm
-of a text or a picture. Both text and pictures (raster and vector)
-can be customized according to users' wishes, which offers a wide
-variety of possibilities for providing flowing feedback.}
+%global common_description %{expand:
+On many occasions, notifications can be a valuable tool to inform a user about
+specific events. Sometimes, static notifications or pop-up windows may provide
+adequate feedback; however, there are some cases where flowing notifications
+can be more appropriate.
 
-%description %_description
+This software allows us to show flowing notifications in the realm of a text or
+a picture. Both text and pictures (raster and vector) can be customized
+according to the user’s wishes, which offers a wide variety of possibilities
+for providing flowing feedback.}
 
-%package -n python3-%{pypi_name}
-Summary:        %{summary}
-# See the comment on the corresponding BuildRequires.
-Requires:       python3-pyqt6
-
-%description -n python3-%{pypi_name} %_description
+%description %{common_description}
 
-%prep
-%forgeautosetup -p1
-rm -rf %{pypi_name}.egg-info
 
-# Drop version pinning (we use the versions available in Fedora)
-# Sphinx dependencies are optional deps not defined as strings
-for DEP in $(tomcli get -F newline-keys pyproject.toml \
-    tool.poetry.dependencies | grep -vi "sphinx")
-do
-    tomcli set pyproject.toml replace tool.poetry.dependencies.${DEP} ".*" "*"
-done
+%package -n python3-pyqt-feedback-flow
+Summary:        %{summary}
 
-%generate_buildrequires
-%pyproject_buildrequires
+# The python3dist(pyqt6) dependency generated from PyQt6 in pyproject.toml is
+# satisfied by python3-pyqt6-base, but this project uses PyQt6.QtSvg, which is
+# packaged along with other “non-core” modules in python3-pyqt6. Since this is
+# not represented (and currently cannot be represented) in the Python metadata,
+# we need explicit BuildRequires *and* Requires on the full python3-pyqt6.
+BuildRequires:  python3-pyqt6
+Requires:       python3-pyqt6
 
-%build
-%pyproject_wheel
+%description -n python3-pyqt-feedback-flow %{common_description}
 
-%install
-%pyproject_install
 
-%pyproject_save_files pyqt_feedback_flow
+%check -a
+%pytest --verbose
 
-%check
-%if %{with tests}
-%pytest -r fEs
-%endif
-# Package only has three tests. Let's run the smoke test as well.
-%pyproject_check_import
 
+%files -n python3-pyqt-feedback-flow -f %{pyproject_files}
+%doc CITATION.cff
+%doc CHANGELOG.md
+%doc README.md
 
-%files -n python3-%{pypi_name} -f %{pyproject_files}
-%license LICENSE
-%doc CITATION.cff CHANGELOG.md CONTRIBUTING.md README.md
 
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-14  9:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-14  9:51 [rpms/python-pyqt-feedback-flow] f45: Simplify and modernize packaging Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox