public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-jsonpatch] rawhide: Disable doctests on RHEL
Date: Thu, 05 Nov 2026 14:52:59 GMT [thread overview]
Message-ID: <179389037923.1.6219049389211999270.rpms-python-jsonpatch-f22d3367c480@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-jsonpatch
Branch : rawhide
Commit : f22d3367c480b62081a483dfe5e2cf212e3e79e3
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-11-03T16:30:47-05:00
Stats : +9/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-jsonpatch/c/f22d3367c480b62081a483dfe5e2cf212e3e79e3?branch=rawhide
Log:
Disable doctests on RHEL
The tutorial doctests require simplejson, which is not included in RHEL.
---
diff --git a/python-jsonpatch.spec b/python-jsonpatch.spec
index 1d00879..6c5106a 100644
--- a/python-jsonpatch.spec
+++ b/python-jsonpatch.spec
@@ -1,3 +1,6 @@
+# tutorial doctests require simplejson, not included in RHEL
+%bcond doctests %{undefined rhel}
+
%global pypi_name jsonpatch
Name: python-%{pypi_name}
@@ -19,7 +22,9 @@ Summary: Applying JSON Patches in Python 3
BuildRequires: python3-devel
# For tests
+%if %{with doctests}
BuildRequires: python3-simplejson
+%endif
%description -n python3-%{pypi_name}
@@ -49,6 +54,10 @@ rm %{buildroot}%{_bindir}/jsondiff
%check
+%if %{without doctests}
+# doctests are skipped if file is missing
+rm -f doc/tutorial.rst
+%endif
%{__python3} tests.py
reply other threads:[~2026-11-05 14:52 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=179389037923.1.6219049389211999270.rpms-python-jsonpatch-f22d3367c480@fedoraproject.org \
--to=yselkowi@redhat.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