python-rdflib/reproducible.patch

36 lines
1009 B
Diff
Raw Normal View History

Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Wed Dec 13 09:28:20 2023 +0100
Mark Restriction and Individual as private
Fixes https://github.com/RDFLib/rdflib/issues/2645
Without this patch, the graph's random identifier leaked into
html/apidocs/rdflib.extras.html
See https://reproducible-builds.org/ for why this matters.
This patch was done while working on reproducible builds for openSUSE.
Index: rdflib-6.1.1/rdflib/extras/infixowl.py
===================================================================
--- rdflib-6.1.1.orig/rdflib/extras/infixowl.py
+++ rdflib-6.1.1/rdflib/extras/infixowl.py
@@ -365,6 +365,8 @@ class TermDeletionHelper:
class Individual(object):
"""
A typed individual
+
+ :meta private:
"""
factoryGraph = Graph()
@@ -1606,6 +1608,7 @@ class Restriction(Class):
individualRestrictionComponent
{ individualRestrictionComponent } ')'
+ :meta private:
"""
restrictionKinds = [