From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/, dev-python/rdflib/files/
Date: Sat, 01 Feb 2025 10:13:00 +0000 (UTC) [thread overview]
Message-ID: <1738404774.6357c45236b13fd216d693376c330d223567718f.mgorny@gentoo> (raw)
commit: 6357c45236b13fd216d693376c330d223567718f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 1 10:09:12 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 1 10:12:54 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6357c452
dev-python/rdflib: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/rdflib/Manifest | 2 -
.../files/rdflib-7.1.0-py3_13-fix-pickler.diff | 63 -------------------
dev-python/rdflib/rdflib-7.1.1.ebuild | 70 ---------------------
dev-python/rdflib/rdflib-7.1.2.ebuild | 72 ----------------------
4 files changed, 207 deletions(-)
diff --git a/dev-python/rdflib/Manifest b/dev-python/rdflib/Manifest
index 4dea2a154163..83052ff39336 100644
--- a/dev-python/rdflib/Manifest
+++ b/dev-python/rdflib/Manifest
@@ -1,3 +1 @@
-DIST rdflib-7.1.1.tar.gz 4864216 BLAKE2B b583e6f9afab95fc0818c4f11740ab8cab540b774a3db15fc8be7b836149f40af6eb445a61b61e020c55f9b561c17f5019275070272449bd4ea25827e4925e39 SHA512 6eafaebfb604446399b214496aabc91fe0c689e9b35d5637de35a5d9784a1acb9d727c7ad5eebe8700d0be2b1e54b3d51cd3fe723a2a6cbd38f0e259d42bc2c5
-DIST rdflib-7.1.2.gh.tar.gz 5030802 BLAKE2B 7a8444d39a456a8e1ca0f3956f3f3a7e43d7fd8a166b1738c5add32a21f6625d71ce5a97a65e5ff3550fbb6ac4eaa8de353e6f333fe7aad947be8e849298dee0 SHA512 a88efdbf461392033e14f72bfe755e449d86927b9d48668cded68e0ad2a5d04de1255eccf8086993cb8c9a3442eb5549dc73f66cfb2c97ff35fcba021c970ec7
DIST rdflib-7.1.3.gh.tar.gz 5029906 BLAKE2B 4eff2756acfe636403ccf1cc8c11850e99385f444e1d80ca1a0ee6c04e1f5352df745a1c27a159a8740eb7a950211824ab51820e54830cec5e279e3d2a1a838f SHA512 ed735611719cfab7da636cf57b02456c26ee7732c18508e1382bc722cba3a0206ca5dcb4ad8cd2ebc0e5550038c5571fb1b0195b9fae172f768cbab72db2b621
diff --git a/dev-python/rdflib/files/rdflib-7.1.0-py3_13-fix-pickler.diff b/dev-python/rdflib/files/rdflib-7.1.0-py3_13-fix-pickler.diff
deleted file mode 100644
index b992bec0a011..000000000000
--- a/dev-python/rdflib/files/rdflib-7.1.0-py3_13-fix-pickler.diff
+++ /dev/null
@@ -1,63 +0,0 @@
---- a/rdflib/store.py
-+++ b/rdflib/store.py
-@@ -114,26 +114,38 @@ class TripleRemovedEvent(Event):
-
-
-+class _Pickler(Pickler):
-+ def __init__(self, file, node):
-+ super(_Pickler, self).__init__(file)
-+ self._node = node
-+
-+ def persistent_id(self, key: Any) -> Optional[str]:
-+ try:
-+ return self._node._ids.get(key)
-+ except TypeError:
-+ return None
-+
-+
-+class _Unpickler(Unpickler):
-+ def __init__(self, file, node):
-+ super(_Unpickler, self).__init__(file)
-+ self._node = node
-+
-+ def persistent_load(self, pid):
-+ return self._node._get_object(pid)
-+
-+
- class NodePickler:
- def __init__(self) -> None:
- self._objects: Dict[str, Any] = {}
- self._ids: Dict[Any, str] = {}
- self._get_object = self._objects.__getitem__
-
-- def _get_ids(self, key: Any) -> Optional[str]:
-- try:
-- return self._ids.get(key)
-- except TypeError:
-- return None
--
- def register(self, object: Any, id: str) -> None:
- self._objects[id] = object
- self._ids[object] = id
-
- def loads(self, s: bytes) -> Node:
-- up = Unpickler(BytesIO(s))
-- # NOTE on type error: https://github.com/python/mypy/issues/2427
-- # type error: Cannot assign to a method
-- up.persistent_load = self._get_object # type: ignore[assignment]
-+ up = _Unpickler(BytesIO(s), self)
- try:
- return up.load()
- except KeyError as e:
-@@ -143,10 +155,7 @@ class NodePickler:
- self, obj: "Node", protocol: Optional[Any] = None, bin: Optional[Any] = None
- ):
- src = BytesIO()
-- p = Pickler(src)
-- # NOTE on type error: https://github.com/python/mypy/issues/2427
-- # type error: Cannot assign to a method
-- p.persistent_id = self._get_ids # type: ignore[assignment]
-+ p = _Pickler(src, self)
- p.dump(obj)
- return src.getvalue()
-
diff --git a/dev-python/rdflib/rdflib-7.1.1.ebuild b/dev-python/rdflib/rdflib-7.1.1.ebuild
deleted file mode 100644
index 67a4358641e5..000000000000
--- a/dev-python/rdflib/rdflib-7.1.1.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..13} )
-PYTHON_REQ_USE="sqlite?,threads(+)"
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="RDF library containing a triple store and parser/serializer"
-HOMEPAGE="
- https://github.com/RDFLib/rdflib/
- https://pypi.org/project/rdflib/
-"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv sparc x86"
-IUSE="examples sqlite"
-
-RDEPEND="
- <dev-python/isodate-1[${PYTHON_USEDEP}]
- >=dev-python/isodate-0.7.2[${PYTHON_USEDEP}]
- dev-python/html5lib[${PYTHON_USEDEP}]
- <dev-python/pyparsing-4[${PYTHON_USEDEP}]
- >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- dev-python/requests[${PYTHON_USEDEP}]
- )
-"
-
-PATCHES=(
- # https://src.fedoraproject.org/fork/salimma/rpms/python-rdflib/blob/d2fbf492897262350bd569f1566b97a54e092cd9/f/rdflib-py3_13-fix-pickler.diff
- "${FILESDIR}/${PN}-7.1.0-py3_13-fix-pickler.diff"
-)
-
-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 -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -m "not webtest"
-}
-
-python_install_all() {
- distutils-r1_python_install_all
-
- if use examples; then
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
-}
diff --git a/dev-python/rdflib/rdflib-7.1.2.ebuild b/dev-python/rdflib/rdflib-7.1.2.ebuild
deleted file mode 100644
index fbbf708e8ef9..000000000000
--- a/dev-python/rdflib/rdflib-7.1.2.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# 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_{10..13} )
-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="
- $(python_gen_cond_dep '
- <dev-python/isodate-1[${PYTHON_USEDEP}]
- >=dev-python/isodate-0.7.2[${PYTHON_USEDEP}]
- ' 3.10)
- 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}]
- )
-"
-
-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 -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -m "not webtest"
-}
-
-python_install_all() {
- distutils-r1_python_install_all
-
- if use examples; then
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
-}
next reply other threads:[~2025-02-01 10:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-01 10:13 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-16 9:02 [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/, dev-python/rdflib/files/ Michał Górny
2020-07-30 20:41 Michał Górny
2019-04-21 12:19 David Seifert
2015-08-19 16:33 Ian Delaney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1738404774.6357c45236b13fd216d693376c330d223567718f.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox