forked from pool/python-rdflib
Compare commits
65 Commits
Author | SHA256 | Date | |
---|---|---|---|
7cbf6c2d8d | |||
7ccf056ecb | |||
123ea5257b | |||
c8b5414847 | |||
1b65dcccb0 | |||
4d2db6cbee | |||
0e161f8b59 | |||
fc16eadb31 | |||
f521331b27 | |||
b45584ca42 | |||
da940edf62 | |||
a481de765f | |||
5da9f90f62 | |||
9297506e3e | |||
c2fc4b6fc0 | |||
6575ff7ecd | |||
09eabcea3e | |||
e9620768b3 | |||
0cbb0a0fa4 | |||
67f4f92e2b | |||
9831617fd7 | |||
|
fffa83171f | ||
|
b20a24aacf | ||
e5f25ec705 | |||
2d9f77fd79 | |||
b820c08bfa | |||
bdcb1719ff | |||
1854edb861 | |||
2280313b9f | |||
|
ea7294db2b | ||
1ed585abcd | |||
9787c09ebd | |||
|
aa745c75bd | ||
|
f933cdbab5 | ||
a5bb6ea6a0 | |||
6b7f502d3a | |||
75d4f365b5 | |||
|
57eb7de92e | ||
|
4c2884bb0c | ||
|
e14e7e82d9 | ||
|
fa979a905f | ||
|
f7ec5d3e3f | ||
|
22827d6282 | ||
|
7641c8704c | ||
|
808c768253 | ||
|
0ee4e93084 | ||
|
9a2c739c4e | ||
|
f9cf8fe4c5 | ||
|
cfe580d10a | ||
|
297182f5db | ||
|
482c043d2f | ||
|
f931e2d2ba | ||
2e2bcd19dc | |||
|
68d6799129 | ||
|
acd55752f3 | ||
|
b3845798fe | ||
7dbacb2601 | |||
|
be451d9e03 | ||
|
b9035b5d8c | ||
|
f2a7911534 | ||
|
d4b8611845 | ||
|
8f6ce621e6 | ||
|
3e006f767a | ||
|
0590c9234c | ||
|
b0cbe38009 |
@@ -1,3 +1,68 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 8 08:17:28 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 8 08:07:39 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add reproducible-doc-build.patch to make the build reproducible.
|
||||
gh#RDFLib/rdflib#2645
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 3 06:45:45 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 7.1.4
|
||||
* Remove old hacks against 2to3
|
||||
* Allow multi subjects & objects in graph funcs
|
||||
* Reduce test warnings
|
||||
* Downgrade log message about plugin
|
||||
* Remove old hacks against 2to3
|
||||
* Cope with Namespace annotations in Python 3.14
|
||||
* Small docco update
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 14 07:34:18 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 7.1.3
|
||||
* A fix-up release that re-adds support for Python 3.8 after it was
|
||||
accidentally removed in Release 7.1.2.
|
||||
* This release cherrypicks many additions to 7.1.2 added to 7.1.1 but
|
||||
leaves out typing changes that are not compatible with Python 3.8.
|
||||
* Also not carried over from 7.1.2 is the change from Poetry 1.x to 2.0.
|
||||
* Included are PRs such as _Defined Namespace warnings fix_, _sort
|
||||
longturtle blank nodes_, _deterministic longturtle serialisation_
|
||||
and _Dataset documentation improvements_.
|
||||
- from version 7.1.2
|
||||
* A minor release that inadvertently removed support for Python 3.8.
|
||||
This release how now been deleted.
|
||||
* All the improved features initially made available in this release
|
||||
that were compatible with Python 3.8 have been preserved in the 7.1.3
|
||||
release. The main additions to 7.1.2 not preserved in 7.1.3 are updated
|
||||
type hints.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 22 08:39:23 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Add %{?sle15_python_module_pythons}
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 28 10:15:59 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add sphinx8.patch to build doc with latest sphinx, gh#RDFLib/rdflib#2956
|
||||
- Update to 7.1.1:
|
||||
* This minor release removes the dependency on some only Python
|
||||
packages, in particular six which is a problem for some Linux
|
||||
distributions that ship RDFLib.
|
||||
* Replace html5lib with html5rdf, make it an optional dependency PR #2951
|
||||
* Prevent crash when comparing ill-typed numeric types. PR #2949
|
||||
* Fix parser bug and add test PR #2943
|
||||
* Fix import ordering in get_merged_prs. PR #2947
|
||||
- 7.1.0:
|
||||
* There are no major changes in this release over 7.0.0 and this
|
||||
release can be used in place of 7.0.0 without much worry about
|
||||
altered behaviour.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 3 11:44:54 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-rdflib
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,55 +18,55 @@
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "doc"
|
||||
%bcond_without doc
|
||||
%define psuffix -doc
|
||||
%bcond_without doc
|
||||
%else
|
||||
%bcond_with doc
|
||||
%define psuffix %{nil}
|
||||
%bcond_with doc
|
||||
%endif
|
||||
|
||||
# Tests don't work and cause a dependency loop with python-SPARQLWrapper
|
||||
%bcond_with tests
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-rdflib%{psuffix}
|
||||
Version: 7.0.0
|
||||
Version: 7.1.4
|
||||
Release: 0
|
||||
Summary: A Python library for working with RDF
|
||||
License: BSD-3-Clause
|
||||
URL: http://rdflib.net/
|
||||
URL: https://rdflib.net/
|
||||
Source: https://files.pythonhosted.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM sphinx8.patch gh#RDFLib/rdflib#2956 -- daniel.garcia@suse.com
|
||||
Patch0: sphinx8.patch
|
||||
# PATCH-FIX-OPENSUSE reproducible-doc-build.patch gh#RDFLib/rdflib#2645 -- daniel.garcia@suse.com
|
||||
Patch1: reproducible-doc-build.patch
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires: alts
|
||||
BuildArch: noarch
|
||||
|
||||
%if %{with tests}
|
||||
BuildRequires: %{python_module SPARQLWrapper}
|
||||
BuildRequires: %{python_module flake8}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
|
||||
%if %{with doc}
|
||||
BuildRequires: %{python_module rdflib = %{version}}
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-myst-parser
|
||||
BuildRequires: python3-sphinx-autodoc-typehints
|
||||
BuildRequires: python3-sphinxcontrib-apidoc
|
||||
BuildRequires: python3-typing_extensions
|
||||
Provides: %{python_module rdflib-doc = %{version}}
|
||||
%else
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module html5lib}
|
||||
BuildRequires: %{python_module isodate}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry-core}
|
||||
BuildRequires: %{python_module pyparsing}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: %{python_module xml}
|
||||
Requires: python-html5lib
|
||||
Requires: python-isodate
|
||||
Requires: python-pyparsing
|
||||
%python_subpackages
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
RDFLib is a Python library for working with RDF, a simple yet powerful
|
||||
@@ -117,19 +117,12 @@ popd
|
||||
|
||||
%else
|
||||
|
||||
%post
|
||||
%python_install_alternative rdfs2dot
|
||||
%python_install_alternative rdfpipe
|
||||
%python_install_alternative rdfgraphisomorphism
|
||||
%python_install_alternative rdf2dot
|
||||
%python_install_alternative csv2rdf
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative rdfs2dot
|
||||
%python_uninstall_alternative rdfpipe
|
||||
%python_uninstall_alternative rdfgraphisomorphism
|
||||
%python_uninstall_alternative rdf2dot
|
||||
%python_uninstall_alternative csv2rdf
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative rdfs2dot
|
||||
%python_libalternatives_reset_alternative rdfpipe
|
||||
%python_libalternatives_reset_alternative rdfgraphisomorphism
|
||||
%python_libalternatives_reset_alternative rdf2dot
|
||||
%python_libalternatives_reset_alternative csv2rdf
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9995eb8569428059b8c1affd26b25eac510d64f5043d9ce8c84e0d0036e995ae
|
||||
size 4765796
|
BIN
rdflib-7.1.4.tar.gz
(Stored with Git LFS)
Normal file
BIN
rdflib-7.1.4.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
26
reproducible-doc-build.patch
Normal file
26
reproducible-doc-build.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
diff --git a/rdflib/term.py b/rdflib/term.py
|
||||
index 3e397674..4e0cfcf1 100644
|
||||
--- a/rdflib/term.py
|
||||
+++ b/rdflib/term.py
|
||||
@@ -23,6 +23,7 @@ underlying Graph:
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
+import sys
|
||||
import abc
|
||||
import re
|
||||
from fractions import Fraction
|
||||
@@ -483,7 +484,12 @@ class BNode(IdentifiedNode):
|
||||
else:
|
||||
node_id = sn_result
|
||||
else:
|
||||
- node_id = uuid4().hex
|
||||
+ # Do not generate random id for doc, this will help with reproducible
|
||||
+ # builds https://github.com/RDFLib/rdflib/issues/2645
|
||||
+ if "sphinx-build" in sys.argv[0]:
|
||||
+ node_id = "NODEID"
|
||||
+ else:
|
||||
+ node_id = uuid4().hex
|
||||
# note, for two (and only two) string variables,
|
||||
# concat with + is faster than f"{x}{y}"
|
||||
value = _prefix + f"{node_id}"
|
13
sphinx8.patch
Normal file
13
sphinx8.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: rdflib-7.1.1/docs/conf.py
|
||||
===================================================================
|
||||
--- rdflib-7.1.1.orig/docs/conf.py
|
||||
+++ rdflib-7.1.1/docs/conf.py
|
||||
@@ -300,7 +300,7 @@ def autodoc_skip_member_handler(
|
||||
"""
|
||||
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#event-autodoc-skip-member
|
||||
if (
|
||||
- app.env.docname == "apidocs/rdflib"
|
||||
+ app.env.docname in ["apidocs/rdflib", "apidocs/rdflib.namespace"]
|
||||
and what == "module"
|
||||
and type(obj).__name__.endswith("DefinedNamespaceMeta")
|
||||
):
|
Reference in New Issue
Block a user