commit:     bd8f6a5a4b8e9fe39c24a45782ed228f4cb84b8d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 29 10:20:20 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 29 10:20:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd8f6a5a

dev-python/rdflib: Bump to 7.5.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/rdflib/Manifest            |  1 +
 dev-python/rdflib/rdflib-7.5.0.ebuild | 76 +++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/dev-python/rdflib/Manifest b/dev-python/rdflib/Manifest
index 9074f12f0a0f..c736ca2de8a3 100644
--- a/dev-python/rdflib/Manifest
+++ b/dev-python/rdflib/Manifest
@@ -1,2 +1,3 @@
 DIST rdflib-7.3.0.gh.tar.gz 5081935 BLAKE2B 
4e6d72894e4f9d5b83672cbc43f2563aaab6da274da2c830a036970a43eb999f45e2c7c798760c52a9c1196004eb774031f96a5b31bf98555720658134926316
 SHA512 
121a7f8d8608a4795c0e922bf41c09efaf6fee9c5398333eac9bde44b15168399553a4d0976ad74063a91f8f66fe2a65907fd6b1cc8eced465a3fe24f3d36609
 DIST rdflib-7.4.0.gh.tar.gz 5083440 BLAKE2B 
21a1630026c4e4b9d110bdcde80e11857e458c2514c1b76c1692820a6b32b36aa8ddec270e7bdc591ed7c1a67276262b963452892f825a51adeebd9481fa51d3
 SHA512 
64f7615ffc3a63edb30091e425e859fb5300995e2115b6bcd83690a1b2da8fc623c178cdefc60ca403ddf5afb39e40a18de41dda656a3a2db8cbef47acecc3d3
+DIST rdflib-7.5.0.gh.tar.gz 5084540 BLAKE2B 
5ed4c429d3b31292d37a262c41da0549a65d0a4c44d3165a829677543b6b851cf26800f38af59592759c4bbd2915c4b54acfa7d735c9536499db0f6d63059293
 SHA512 
54e7078b7784145737e6dce104a868a6c9a6526e7c09947b75594035c689383259a3e913139bda9e17ace07ecf3862099532e612cc1d72fbcb37301d307d8ad1

diff --git a/dev-python/rdflib/rdflib-7.5.0.ebuild 
b/dev-python/rdflib/rdflib-7.5.0.ebuild
new file mode 100644
index 000000000000..52767c5774eb
--- /dev/null
+++ b/dev-python/rdflib/rdflib-7.5.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="sqlite?,threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="RDF library containing a triple store and parser/serializer"
+HOMEPAGE="
+       https://github.com/RDFLib/rdflib/
+       https://pypi.org/project/rdflib/
+"
+# tests removed in 7.1.2
+SRC_URI="
+       https://github.com/RDFLib/rdflib/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+IUSE="examples sqlite"
+
+RDEPEND="
+       dev-python/html5lib[${PYTHON_USEDEP}]
+       <dev-python/pyparsing-4[${PYTHON_USEDEP}]
+       >=dev-python/pyparsing-3.2.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/requests[${PYTHON_USEDEP}]
+       )
+"
+
+EPYTEST_PLUGINS=()
+# (xdist fails to collect)
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       distutils-r1_python_prepare_all
+
+       # doctests require internet
+       sed -i -e '/doctest-modules/d' pyproject.toml || die
+
+       # we disable pytest-cov
+       sed -i -e 's@, no_cover: None@@' test/test_misc/test_plugins.py || die
+
+       # allow regular html5lib, html5rdf is a fork with minimal changes:
+       # removing six dep (which is kinda good) and bundling webencodings
+       # (which is horrible)
+       find -name '*.py' -exec sed -i -e 's:html5rdf:html5lib:g' {} + || die
+}
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # tests try to install stuff via pip
+               test/test_misc/test_plugins.py
+               # triggers a GC error (and stack overflow was expected anyway)
+               
'test/test_sparql/test_translate_algebra.py::test_roundtrip[test_other__service1]'
+       )
+
+       epytest -m "not webtest and not testcontainer"
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}

Reply via email to