forked from pool/python-rdflib
- Update to 7.0.0:
* BREAKING CHANGE: drop support for python 3.7 (#2436) * feat: add curie method to NamespaceManager (#2365) * feat: add optional target_graph argument to Graph.cbd and use it for DESCRIBE queries (#2322) * feat: Don't generate prefixes for unknown URIs (#2467) * feat: Longturtle improvements (#2500) * fix: SPARQL count with optionals (#2448) * fix: GROUP_CONCAT handling of empty separator (issue) (#2474) * fix: add NORMALIZE_LITERALS to rdflib.__all__ (#2489) * fix: correct imports and __all__ (#2340) * fix: dbpedia URL to use https instead of http (#2444) * fix: eliminate bare except: (#2350) * fix: eliminate some mutable default arguments in SPARQL code (#2301) * fix: formatting of SequencePath and AlternativePath (#2504) * fix: handling of rdf:HTML literals (#2490) * fix: HTTP 308 Permanent Redirect status code handling (#2389) * fix: lexical-to-value mapping of rdf:HTML literals (#2483) * fix: TriG handling of GRAPH keyword without a graph ID (#2469) * fix: TriG parser error handling for nested graphs (#2468) - Switch to autosetup and pyproject macros. - Shift docs build to the install phase, the module needs to be queryable. - Drop patch reproducible.patch, included. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=63
This commit is contained in:
@@ -1,3 +1,30 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 27 06:23:55 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 7.0.0:
|
||||||
|
* BREAKING CHANGE: drop support for python 3.7 (#2436)
|
||||||
|
* feat: add curie method to NamespaceManager (#2365)
|
||||||
|
* feat: add optional target_graph argument to Graph.cbd and use it for
|
||||||
|
DESCRIBE queries (#2322)
|
||||||
|
* feat: Don't generate prefixes for unknown URIs (#2467)
|
||||||
|
* feat: Longturtle improvements (#2500)
|
||||||
|
* fix: SPARQL count with optionals (#2448)
|
||||||
|
* fix: GROUP_CONCAT handling of empty separator (issue) (#2474)
|
||||||
|
* fix: add NORMALIZE_LITERALS to rdflib.__all__ (#2489)
|
||||||
|
* fix: correct imports and __all__ (#2340)
|
||||||
|
* fix: dbpedia URL to use https instead of http (#2444)
|
||||||
|
* fix: eliminate bare except: (#2350)
|
||||||
|
* fix: eliminate some mutable default arguments in SPARQL code (#2301)
|
||||||
|
* fix: formatting of SequencePath and AlternativePath (#2504)
|
||||||
|
* fix: handling of rdf:HTML literals (#2490)
|
||||||
|
* fix: HTTP 308 Permanent Redirect status code handling (#2389)
|
||||||
|
* fix: lexical-to-value mapping of rdf:HTML literals (#2483)
|
||||||
|
* fix: TriG handling of GRAPH keyword without a graph ID (#2469)
|
||||||
|
* fix: TriG parser error handling for nested graphs (#2468)
|
||||||
|
- Switch to autosetup and pyproject macros.
|
||||||
|
- Shift docs build to the install phase, the module needs to be queryable.
|
||||||
|
- Drop patch reproducible.patch, included.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 13 08:40:59 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>
|
Wed Dec 13 08:40:59 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-rdflib
|
# spec file for package python-rdflib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,31 +16,34 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python3-%{**}}
|
|
||||||
# Tests don't work and cause a dependency loop with python-SPARQLWrapper
|
# Tests don't work and cause a dependency loop with python-SPARQLWrapper
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
Name: python-rdflib
|
Name: python-rdflib
|
||||||
Version: 6.1.1
|
Version: 7.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Python library for working with RDF
|
Summary: A Python library for working with RDF
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: http://rdflib.net/
|
URL: http://rdflib.net/
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz
|
||||||
Patch0: reproducible.patch
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
BuildRequires: %{python_module html5lib}
|
BuildRequires: %{python_module html5lib}
|
||||||
BuildRequires: %{python_module isodate}
|
BuildRequires: %{python_module isodate}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module poetry}
|
||||||
BuildRequires: %{python_module pyparsing}
|
BuildRequires: %{python_module pyparsing}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: %{python_module xml}
|
BuildRequires: %{python_module xml}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
|
BuildRequires: python3-myst-parser
|
||||||
|
BuildRequires: python3-sphinx-autodoc-typehints
|
||||||
BuildRequires: python3-sphinxcontrib-apidoc
|
BuildRequires: python3-sphinxcontrib-apidoc
|
||||||
Requires: python-html5lib
|
Requires: python-html5lib
|
||||||
Requires: python-isodate
|
Requires: python-isodate
|
||||||
Requires: python-pyparsing
|
Requires: python-pyparsing
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: %{python_module SPARQLWrapper}
|
BuildRequires: %{python_module SPARQLWrapper}
|
||||||
@@ -66,22 +69,23 @@ parser/serializer that conforms to the RDF/XML Syntax Specification (Revised).
|
|||||||
The library also contains both in-memory and persistent Graph backends.
|
The library also contains both in-memory and persistent Graph backends.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n rdflib-%{version}
|
%autosetup -p1 -n rdflib-%{version}
|
||||||
%patch0 -p1
|
|
||||||
# remove unwanted shebang
|
# remove unwanted shebang
|
||||||
find rdflib -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
find rdflib -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
|
||||||
|
# Build the docs, we need the module queryable
|
||||||
pushd docs
|
pushd docs
|
||||||
%make_build html
|
PYTHONPATH=%{buildroot}%{python3_sitelib} %make_build html
|
||||||
# Remove hidden file
|
# Remove hidden file
|
||||||
rm -r _build/html/.buildinfo
|
rm -r _build/html/.buildinfo
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
|
||||||
%python_install
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/rdfs2dot
|
%python_clone -a %{buildroot}%{_bindir}/rdfs2dot
|
||||||
%python_clone -a %{buildroot}%{_bindir}/rdfpipe
|
%python_clone -a %{buildroot}%{_bindir}/rdfpipe
|
||||||
%python_clone -a %{buildroot}%{_bindir}/rdfgraphisomorphism
|
%python_clone -a %{buildroot}%{_bindir}/rdfgraphisomorphism
|
||||||
@@ -112,14 +116,14 @@ popd
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGELOG.md CONTRIBUTORS README.md
|
%doc README.md
|
||||||
%python_alternative %{_bindir}/csv2rdf
|
%python_alternative %{_bindir}/csv2rdf
|
||||||
%python_alternative %{_bindir}/rdf2dot
|
%python_alternative %{_bindir}/rdf2dot
|
||||||
%python_alternative %{_bindir}/rdfgraphisomorphism
|
%python_alternative %{_bindir}/rdfgraphisomorphism
|
||||||
%python_alternative %{_bindir}/rdfpipe
|
%python_alternative %{_bindir}/rdfpipe
|
||||||
%python_alternative %{_bindir}/rdfs2dot
|
%python_alternative %{_bindir}/rdfs2dot
|
||||||
%{python_sitelib}/rdflib/
|
%{python_sitelib}/rdflib
|
||||||
%{python_sitelib}/rdflib-%{version}-py*.egg-info
|
%{python_sitelib}/rdflib-%{version}.dist-info
|
||||||
|
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
%doc docs/_build/html
|
%doc docs/_build/html
|
||||||
|
BIN
rdflib-6.1.1.tar.gz
(Stored with Git LFS)
BIN
rdflib-6.1.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
rdflib-7.0.0.tar.gz
Normal file
3
rdflib-7.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9995eb8569428059b8c1affd26b25eac510d64f5043d9ce8c84e0d0036e995ae
|
||||||
|
size 4765796
|
@@ -1,35 +0,0 @@
|
|||||||
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 = [
|
|
Reference in New Issue
Block a user