public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pyqt-feedback-flow] f43: Simplify and modernize packaging
@ 2026-09-14 10:48 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-14 10:48 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pyqt-feedback-flow
Branch : f43
Commit : 567b82080d6f4f8568e2cf759f44a5baef3f9f16
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-14T11:47:30+01:00
Stats : +35/-60 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-pyqt-feedback-flow/c/567b82080d6f4f8568e2cf759f44a5baef3f9f16?branch=f43
Log:
Simplify and modernize packaging
---
diff --git a/python-pyqt-feedback-flow.spec b/python-pyqt-feedback-flow.spec
index 65d8ef4..cd99cf4 100644
--- a/python-pyqt-feedback-flow.spec
+++ b/python-pyqt-feedback-flow.spec
@@ -1,84 +1,59 @@
-%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}
-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.}
+BuildSystem: pyproject
+BuildOption(install): --no-assert-license pyqt_feedback_flow
-%description %_description
+# Test deps.: see [tool.poetry.dev-dependencies] in pyproject.toml
+BuildRequires: %{py3_dist pytest}
+BuildRequires: %{py3_dist pytest-qt}
-%package -n python3-%{pypi_name}
-Summary: %{summary}
-# See the comment on the corresponding BuildRequires.
-Requires: python3-pyqt6
+%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 -n python3-%{pypi_name} %_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.}
-%prep
-%forgeautosetup -p1
-rm -rf %{pypi_name}.egg-info
+%description %{common_description}
-# 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
-%generate_buildrequires
-%pyproject_buildrequires
+%package -n python3-pyqt-feedback-flow
+Summary: %{summary}
-%build
-%pyproject_wheel
+# 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
-%install
-%pyproject_install
+%description -n python3-pyqt-feedback-flow %{common_description}
-%pyproject_save_files pyqt_feedback_flow
-%check
-%if %{with tests}
-%pytest -r fEs
-%endif
-# Package only has three tests. Let's run the smoke test as well.
-%pyproject_check_import
+%check -a
+%pytest --verbose
-%files -n python3-%{pypi_name} -f %{pyproject_files}
+%files -n python3-pyqt-feedback-flow -f %{pyproject_files}
%license LICENSE
-%doc CITATION.cff CHANGELOG.md CONTRIBUTING.md README.md
+%doc CITATION.cff
+%doc CHANGELOG.md
+%doc README.md
+
%changelog
%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-14 10:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-14 10:48 [rpms/python-pyqt-feedback-flow] f43: 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