public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-sgqlc] rawhide: Add pytest-cov to BuildRequires and drop pyproject.toml sed hack
@ 2026-11-26 21:17 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-26 21:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-sgqlc
Branch : rawhide
Commit : 5a73680030805faf335dc0d03fb836942d87bfae
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-11-26T18:02:39-03:00
Stats : +1/-7 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-sgqlc/c/5a73680030805faf335dc0d03fb836942d87bfae?branch=rawhide
Log:
Add pytest-cov to BuildRequires and drop pyproject.toml sed hack
Upstream configures pytest in pyproject.toml with --cov and --doctest-modules in addopts. Add python3dist(pytest-cov) to BuildRequires so pytest can run upstream's test, coverage, and doctest configuration directly instead of stripping those options with sed in %prep.
Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>
---
diff --git a/python-sgqlc.spec b/python-sgqlc.spec
index d1b9d63..139a0db 100644
--- a/python-sgqlc.spec
+++ b/python-sgqlc.spec
@@ -18,6 +18,7 @@ BuildRequires: python3-devel
# For tests
BuildRequires: %{py3_dist pytest}
BuildRequires: %{py3_dist pytest-asyncio}
+BuildRequires: %{py3_dist pytest-cov}
BuildRequires: %{py3_dist respx}
%global _description %{expand:
@@ -38,13 +39,6 @@ Summary: %{summary}
%prep
%forgeautosetup -p1
-# Disable coverage and doctest
-sed -r \
- -e "s/--cov.* //g" \
- -e "s/ --cov.*'/'/" \
- -e "s/ --doctest.*'/'/" \
- -i pyproject.toml
-
%generate_buildrequires
%pyproject_buildrequires -x websocket,requests,httpx
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-26 21:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 21:17 [rpms/python-sgqlc] rawhide: Add pytest-cov to BuildRequires and drop pyproject.toml sed hack Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox