public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-jsonpatch] rawhide: Disable doctests on RHEL
@ 2026-11-05 14:52 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-05 14:52 UTC (permalink / raw)
  To: git-commits

            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
 
 

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

only message in thread, other threads:[~2026-11-05 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 14:52 [rpms/python-jsonpatch] rawhide: Disable doctests on RHEL Yaakov Selkowitz

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