public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-sgqlc] rawhide: Add pytest-cov to BuildRequires and drop pyproject.toml sed hack
Date: Thu, 26 Nov 2026 21:17:22 GMT [thread overview]
Message-ID: <179572784250.1.7542776640920986217.rpms-python-sgqlc-5a7368003080@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-26 21:17 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=179572784250.1.7542776640920986217.rpms-python-sgqlc-5a7368003080@fedoraproject.org \
--to=rosset.filipe@gmail.com \
--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