python-rdflib/reproducible.patch
Markéta Machová 6575ff7ecd Accepting request 1132811 from home:bmwiedemann:branches:devel:languages:python
Add reproducible.patch for reproducible builds (boo#1062303)

There might be other/better ways to solve this,
but upstream moved pretty far already.

OBS-URL: https://build.opensuse.org/request/show/1132811
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=61
2023-12-15 12:22:24 +00:00

36 lines
1009 B
Diff

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 = [