* [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/, dev-python/rdflib/files/
@ 2015-08-19 16:33 Ian Delaney
0 siblings, 0 replies; 5+ messages in thread
From: Ian Delaney @ 2015-08-19 16:33 UTC (permalink / raw
To: gentoo-commits
commit: 55e8bb9e208ac9eda033095d280b07f74650df03
Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 19 16:31:06 2015 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Wed Aug 19 16:32:31 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55e8bb9e
dev-python/rdflib: bump, rm unneeded var DISTUTILS_NO_PARALLEL_BUILD
Add doc build, info to user re Warnings and Errors and optional
packages for build, rm old disused patch, drop recent patch
now merged in bumped release
Package-Manager: portage-2.2.20
dev-python/rdflib/Manifest | 1 +
dev-python/rdflib/files/rdflib-3.1.0-test.patch | 20 ------------
dev-python/rdflib/rdflib-4.2.0.ebuild | 6 ++--
.../{rdflib-4.2.0.ebuild => rdflib-4.2.1.ebuild} | 38 ++++++++++++++++++----
4 files changed, 35 insertions(+), 30 deletions(-)
diff --git a/dev-python/rdflib/Manifest b/dev-python/rdflib/Manifest
index 8f4d6b4..dd258bd 100644
--- a/dev-python/rdflib/Manifest
+++ b/dev-python/rdflib/Manifest
@@ -1,3 +1,4 @@
DIST rdflib-3.2.3.tar.gz 449077 SHA256 a3cab51c14fa6fe379261e0157c110d94e2f75ef62073ddc76fe56f5be624b75 SHA512 92697be6d6bba4e31303b46c2a42defd840770f75c6f359b7338fa3d48a2001cdcda3b6319403ad0c9f1696051d773b146c9b012770df81b4d94a34d30f6b02a WHIRLPOOL b41794febee280022990dac8c4e177660f69803f01fc14ade194015bc6cf1eaf23164620b09cf1123445d181c0bbe9f0733b901cddafb126bcd711d0462a9f7b
DIST rdflib-4.1.2.tar.gz 868883 SHA256 3cf94bda0867f21468b248ce9f671581efb92ae9edd28ff321716126c6706a4f SHA512 99d4a4b4d37808563575ac13312cf0e0975f7c1563117cfe7e4b70a84a2804f7eb57144d6a7c629c109ff7b236a6ea2489a4925ae41791274f3b234143837e65 WHIRLPOOL 090e00cc3113cec158f786a39103450f0d1d25571ad57c346120756901f01b0fcf20ff731ae3b174b54f3621e46a26061eee7bd774ffdf91380f4a3647380590
DIST rdflib-4.2.0.tar.gz 881424 SHA256 7420dafc4930249d0cfcf31e8547a39b658d079ab2c9e975465f6697a8476ec0 SHA512 7677869eb0a65ede317634253042da68b4e183d5352cd37bd949380eb29deec8329336067a2ab686c90d6a1718f8e7a9039424753846d879cce41c05f656735f WHIRLPOOL 62f67318ade0fee1d5d64d6294aa821f4f06f940b18e421d43292e749e495cb3e348b522dd79eec805ce88125d8a6864dccc4a4037ed0a52d5aed616e51b39f5
+DIST rdflib-4.2.1.tar.gz 889467 SHA256 eb02bd235606ef3b26e213da3e576557a6392ce103efd8c6c8ff1e08321608c8 SHA512 49145f80a9e027847523faed059c16ec1de358bb9d8fc3ab4fd3bf95a88dd181986b1785deedf6e837cf0b064bd74ab8e27fbb5581e33310353da3546ae7b016 WHIRLPOOL 010bb4cf7c544b9a3f28636182b6c1821f390066bfe3de59f58fb7cfd8d809d8b0b5f256134b9c5091327c7ba6319be02135d6ea8a6d8b37772e212f000c3ba7
diff --git a/dev-python/rdflib/files/rdflib-3.1.0-test.patch b/dev-python/rdflib/files/rdflib-3.1.0-test.patch
deleted file mode 100644
index aea1bf5..0000000
--- a/dev-python/rdflib/files/rdflib-3.1.0-test.patch
+++ /dev/null
@@ -1,20 +0,0 @@
- rdflib/__init__.py | 4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/rdflib/__init__.py b/rdflib/__init__.py
-index b781031..44efb0b 100644
---- a/rdflib/__init__.py
-+++ b/rdflib/__init__.py
-@@ -15,10 +15,10 @@ A tiny example:
- >>> import rdflib
-
- >>> g = rdflib.Graph()
-- >>> result = g.parse("http://eikeon.com/foaf.rdf")
-+ >>> result = g.parse("http://www.w3.org/2000/10/swap/test/meet/white.rdf")
-
- >>> print "graph has %s statements." % len(g)
-- graph has 34 statements.
-+ graph has 19 statements.
- >>>
- >>> for s, p, o in g:
- ... if (s, p, o) not in g:
diff --git a/dev-python/rdflib/rdflib-4.2.0.ebuild b/dev-python/rdflib/rdflib-4.2.0.ebuild
index 88878be..e18f716 100644
--- a/dev-python/rdflib/rdflib-4.2.0.ebuild
+++ b/dev-python/rdflib/rdflib-4.2.0.ebuild
@@ -6,7 +6,7 @@ EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_REQ_USE="sqlite?"
-DISTUTILS_NO_PARALLEL_BUILD=true
+
# The usual required for tests
DISTUTILS_IN_SOURCE_BUILD=1
@@ -26,8 +26,8 @@ RDEPEND="
dev-python/html5lib[${PYTHON_USEDEP}]
dev-python/pyparsing[${PYTHON_USEDEP}]
berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
- mysql? ( dev-python/mysql-python[$(python_gen_usedep 'python2*')] )
- redland? ( dev-libs/redland-bindings[python,$(python_gen_usedep 'python2*')] )"
+ mysql? ( dev-python/mysql-python[$(python_gen_usedep python2_7)] )
+ redland? ( dev-libs/redland-bindings[python,$(python_gen_usedep python2_7)] )"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/sparql-wrapper[${PYTHON_USEDEP}]
diff --git a/dev-python/rdflib/rdflib-4.2.0.ebuild b/dev-python/rdflib/rdflib-4.2.1.ebuild
similarity index 64%
copy from dev-python/rdflib/rdflib-4.2.0.ebuild
copy to dev-python/rdflib/rdflib-4.2.1.ebuild
index 88878be..12414be 100644
--- a/dev-python/rdflib/rdflib-4.2.0.ebuild
+++ b/dev-python/rdflib/rdflib-4.2.1.ebuild
@@ -6,7 +6,7 @@ EAPI=5
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
PYTHON_REQ_USE="sqlite?"
-DISTUTILS_NO_PARALLEL_BUILD=true
+
# The usual required for tests
DISTUTILS_IN_SOURCE_BUILD=1
@@ -19,22 +19,20 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="berkdb examples mysql redland sqlite test"
+IUSE="doc berkdb examples mysql redland sqlite test"
RDEPEND="
dev-python/isodate[${PYTHON_USEDEP}]
dev-python/html5lib[${PYTHON_USEDEP}]
dev-python/pyparsing[${PYTHON_USEDEP}]
berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
- mysql? ( dev-python/mysql-python[$(python_gen_usedep 'python2*')] )
- redland? ( dev-libs/redland-bindings[python,$(python_gen_usedep 'python2*')] )"
+ mysql? ( dev-python/mysql-python[$(python_gen_usedep python2_7)] )
+ redland? ( dev-libs/redland-bindings[python,$(python_gen_usedep python2_7)] )"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/sparql-wrapper[${PYTHON_USEDEP}]
>=dev-python/nose-1.3.1-r1[${PYTHON_USEDEP}] )"
-PATCHES=( "${FILESDIR}"/${PN}-4-test.patch )
-
python_prepare_all() {
# Upstream manufactured .pyc files which promptly break distutils' src_test
find -name "*.py[oc~]" -delete || die
@@ -43,9 +41,32 @@ python_prepare_all() {
sed -e "/'--with-doctest',/d" -e "/'--doctest-extension=.doctest',/d" \
-e "/'--doctest-tests',/d" -i run_tests.py || die
+ sed -e "s: 'sphinx.ext.intersphinx',::" -i docs/conf.py || die
+
+ # doc build requires examples folder at the upper level of docs
+ if use doc; then
+ cd docs || die
+ ln -sf ../examples . || die
+ cd ../ || die
+ fi
+
distutils-r1_python_prepare_all
}
+python_compile_all() {
+ # https://github.com/RDFLib/rdflib/issues/510
+ if use doc; then
+ einfo ""; einfo "Several warnings and Errors present in the build"
+ einfo "For a complete build, it is required to install"
+ einfo "github.com/gjhiggins/n3_pygments_lexer and"
+ einfo "github.com/gjhiggins/sparql_pygments_lexer"
+ einfo "outside portage via pip or by cloning. These have not been"
+ einfo "given a tagged release by the author and are not in portage"
+ einfo ""
+ emake -C docs html
+ fi
+}
+
python_test() {
# the default; nose with: --where=./ does not work for python3
if python_is_python3; then
@@ -58,6 +79,9 @@ python_test() {
}
python_install_all() {
+ use doc && local HTML_DOCS=( "${BUILD_DIR}"/../docs/_build/html/. )
use examples && local EXAMPLES=( examples/. )
- distutils-r1_python_install_all
+
+ distutils-r1_python_install_all
}
+
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/, dev-python/rdflib/files/
@ 2019-04-21 12:19 David Seifert
0 siblings, 0 replies; 5+ messages in thread
From: David Seifert @ 2019-04-21 12:19 UTC (permalink / raw
To: gentoo-commits
commit: 9f7091cb8622b9b530f2311481ee32f0e4f22396
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 21 12:19:02 2019 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Apr 21 12:19:02 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f7091cb
dev-python/rdflib: Add python3_7 to PYTHON_COMPAT
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: David Seifert <soap <AT> gentoo.org>
.../rdflib-4.2.2-python3.7-StopIteration.patch | 72 ++++++++++++++++
dev-python/rdflib/rdflib-4.2.2-r1.ebuild | 99 ++++++++++++++++++++++
2 files changed, 171 insertions(+)
diff --git a/dev-python/rdflib/files/rdflib-4.2.2-python3.7-StopIteration.patch b/dev-python/rdflib/files/rdflib-4.2.2-python3.7-StopIteration.patch
new file mode 100644
index 00000000000..389d220dc1b
--- /dev/null
+++ b/dev-python/rdflib/files/rdflib-4.2.2-python3.7-StopIteration.patch
@@ -0,0 +1,72 @@
+Traceback (most recent call last):
+ File "/var/tmp/portage/dev-python/rdflib-4.2.2/work/rdflib-4.2.2-python3_7/build/src/rdflib/plugins/sparql/evaluate.py", line 330, in evalSlice
+ next(res)
+StopIteration
+
+The above exception was the direct cause of the following exception:
+
+Traceback (most recent call last):
+ File "/usr/lib/python3.7/site-packages/nose/case.py", line 197, in runTest
+ self.test(*self.arg)
+ File "/var/tmp/portage/dev-python/rdflib-4.2.2/work/rdflib-4.2.2-python3_7/build/src/test/test_dawg.py", line 434, in query_test
+ set(res2)
+ File "/var/tmp/portage/dev-python/rdflib-4.2.2/work/rdflib-4.2.2-python3_7/build/src/rdflib/query.py", line 258, in __iter__
+ for b in self._genbindings:
+RuntimeError: generator raised StopIteration
+
+Patch backported from
+https://github.com/RDFLib/rdflib/commit/58c45d6f30af88a22f60edcb9a459648a885e226
+
+--- a/rdflib/plugins/sparql/evaluate.py
++++ b/rdflib/plugins/sparql/evaluate.py
+@@ -15,6 +15,7 @@
+ """
+
+ import collections
++import itertools
+
+ from rdflib import Variable, Graph, BNode, URIRef, Literal
+
+@@ -323,22 +324,9 @@
+
+
+ def evalSlice(ctx, slice):
+- # import pdb; pdb.set_trace()
+ res = evalPart(ctx, slice.p)
+- i = 0
+- while i < slice.start:
+- res.next()
+- i += 1
+- i = 0
+- for x in res:
+- i += 1
+- if slice.length is None:
+- yield x
+- else:
+- if i <= slice.length:
+- yield x
+- else:
+- break
++
++ return itertools.islice(res, slice.start, slice.start+slice.length if slice.length is not None else None)
+
+
+ def evalReduced(ctx, part):
+--- a/rdflib/query.py
++++ b/rdflib/query.py
+@@ -1,5 +1,6 @@
+
+ import os
++import itertools
+ import shutil
+ import tempfile
+ import warnings
+@@ -181,7 +182,7 @@
+ return self._bindings
+
+ def _set_bindings(self, b):
+- if isinstance(b, types.GeneratorType):
++ if isinstance(b, (types.GeneratorType, itertools.islice)):
+ self._genbindings = b
+ self._bindings = []
+ else:
diff --git a/dev-python/rdflib/rdflib-4.2.2-r1.ebuild b/dev-python/rdflib/rdflib-4.2.2-r1.ebuild
new file mode 100644
index 00000000000..2181a2dec6c
--- /dev/null
+++ b/dev-python/rdflib/rdflib-4.2.2-r1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
+PYTHON_REQ_USE="sqlite?,threads(+)"
+
+# The usual required for tests
+DISTUTILS_IN_SOURCE_BUILD=1
+
+inherit distutils-r1
+
+DESCRIPTION="RDF library containing a triple store and parser/serializer"
+HOMEPAGE="https://github.com/RDFLib/rdflib https://pypi.org/project/rdflib/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc berkdb examples mysql redland sqlite test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-python/isodate[${PYTHON_USEDEP}]
+ dev-python/html5lib[${PYTHON_USEDEP}]
+ dev-python/pyparsing[${PYTHON_USEDEP}]
+ berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
+ mysql? ( dev-python/mysql-python[$(python_gen_usedep 'python2*')] )
+ redland? ( dev-libs/redland-bindings[python,$(python_gen_usedep 'python2*')] )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? (
+ dev-python/sparql-wrapper[${PYTHON_USEDEP}]
+ >=dev-python/nose-1.3.1-r1[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=(
+ # Python 3.7 StopIteration bug
+ "${FILESDIR}"/${PN}-4.2.2-python3.7-StopIteration.patch
+)
+
+python_prepare_all() {
+ # Upstream manufactured .pyc files which promptly break distutils' src_test
+ find -name "*.py[oc~]" -delete || die
+
+ # Bug 358189; take out tests that attempt to connect to the network
+ sed -e "/'--with-doctest',/d" -e "/'--doctest-extension=.doctest',/d" \
+ -e "/'--doctest-tests',/d" -i run_tests.py || die
+
+ sed -e "s: 'sphinx.ext.intersphinx',::" -i docs/conf.py || die
+
+ # doc build requires examples folder at the upper level of docs
+ if use doc; then
+ cd docs || die
+ ln -sf ../examples . || die
+ cd ../ || die
+ fi
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ # https://github.com/RDFLib/rdflib/issues/510
+ if use doc; then
+ einfo ""
+ einfo "Several warnings and Errors present in the build"
+ einfo "For a complete build, it is required to install"
+ einfo "github.com/gjhiggins/n3_pygments_lexer and"
+ einfo "github.com/gjhiggins/sparql_pygments_lexer"
+ einfo "outside portage via pip or by cloning. These have not been"
+ einfo "given a tagged release by the author and are not in portage"
+ einfo ""
+
+ emake -C docs html
+ HTML_DOCS=( docs/_build/html/. )
+ fi
+}
+
+python_test() {
+ # the default; nose with: --where=./ does not work for python3
+ if python_is_python3; then
+ pushd "${BUILD_DIR}/src/" >/dev/null || die
+ "${EPYTHON}" ./run_tests.py || die "Tests failed under ${EPYTHON}"
+ popd >/dev/null || die
+ else
+ "${EPYTHON}" ./run_tests.py || die "Tests failed under ${EPYTHON}"
+ fi
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/, dev-python/rdflib/files/
@ 2020-07-30 20:41 Michał Górny
0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2020-07-30 20:41 UTC (permalink / raw
To: gentoo-commits
commit: c2e747d2d09a994683ba80ce40b941153acbf650
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 30 20:33:38 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jul 30 20:40:43 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2e747d2
dev-python/rdflib: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/rdflib/Manifest | 1 -
.../rdflib-4.2.2-python3.7-StopIteration.patch | 72 -----------------
dev-python/rdflib/metadata.xml | 3 -
dev-python/rdflib/rdflib-4.2.2-r1.ebuild | 93 ----------------------
4 files changed, 169 deletions(-)
diff --git a/dev-python/rdflib/Manifest b/dev-python/rdflib/Manifest
index a905e635164..3f0092e6d69 100644
--- a/dev-python/rdflib/Manifest
+++ b/dev-python/rdflib/Manifest
@@ -1,2 +1 @@
-DIST rdflib-4.2.2.tar.gz 905094 BLAKE2B fe17b5752f67c745bfdf4a160c2f5d49da19f0d85b6eddc4a65fa0ddb660de8bcc19c3ccecf893fb67f725b973cb94481374d9ee0c82072416a93e44952dba9b SHA512 efc24d8ce1080e59950cecc9c779ae0d63673c8690f74db1772f6c2dbf24d6f4de5214d5870a074bffe549b42d8d5f5d131df29bbfd174b763ae1f843aec7d5c
DIST rdflib-5.0.0.tar.gz 818586 BLAKE2B d0046590b00211ccb4f0f586dc829c061a5f426b1cefed44a63d21d46396354b9012dbe0a63c8f9de138b25ca7d73ba624c49da6fb305ececd983c62c917fd8a SHA512 ba98ab6a7bb9d993d11c559a739761f297282eb9307f3e333db8dd1c6b365b408a59b701d823bef9be774a59b3f44f64c9444e3bb0115c0c549cb00945385dab
diff --git a/dev-python/rdflib/files/rdflib-4.2.2-python3.7-StopIteration.patch b/dev-python/rdflib/files/rdflib-4.2.2-python3.7-StopIteration.patch
deleted file mode 100644
index 389d220dc1b..00000000000
--- a/dev-python/rdflib/files/rdflib-4.2.2-python3.7-StopIteration.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-Traceback (most recent call last):
- File "/var/tmp/portage/dev-python/rdflib-4.2.2/work/rdflib-4.2.2-python3_7/build/src/rdflib/plugins/sparql/evaluate.py", line 330, in evalSlice
- next(res)
-StopIteration
-
-The above exception was the direct cause of the following exception:
-
-Traceback (most recent call last):
- File "/usr/lib/python3.7/site-packages/nose/case.py", line 197, in runTest
- self.test(*self.arg)
- File "/var/tmp/portage/dev-python/rdflib-4.2.2/work/rdflib-4.2.2-python3_7/build/src/test/test_dawg.py", line 434, in query_test
- set(res2)
- File "/var/tmp/portage/dev-python/rdflib-4.2.2/work/rdflib-4.2.2-python3_7/build/src/rdflib/query.py", line 258, in __iter__
- for b in self._genbindings:
-RuntimeError: generator raised StopIteration
-
-Patch backported from
-https://github.com/RDFLib/rdflib/commit/58c45d6f30af88a22f60edcb9a459648a885e226
-
---- a/rdflib/plugins/sparql/evaluate.py
-+++ b/rdflib/plugins/sparql/evaluate.py
-@@ -15,6 +15,7 @@
- """
-
- import collections
-+import itertools
-
- from rdflib import Variable, Graph, BNode, URIRef, Literal
-
-@@ -323,22 +324,9 @@
-
-
- def evalSlice(ctx, slice):
-- # import pdb; pdb.set_trace()
- res = evalPart(ctx, slice.p)
-- i = 0
-- while i < slice.start:
-- res.next()
-- i += 1
-- i = 0
-- for x in res:
-- i += 1
-- if slice.length is None:
-- yield x
-- else:
-- if i <= slice.length:
-- yield x
-- else:
-- break
-+
-+ return itertools.islice(res, slice.start, slice.start+slice.length if slice.length is not None else None)
-
-
- def evalReduced(ctx, part):
---- a/rdflib/query.py
-+++ b/rdflib/query.py
-@@ -1,5 +1,6 @@
-
- import os
-+import itertools
- import shutil
- import tempfile
- import warnings
-@@ -181,7 +182,7 @@
- return self._bindings
-
- def _set_bindings(self, b):
-- if isinstance(b, types.GeneratorType):
-+ if isinstance(b, (types.GeneratorType, itertools.islice)):
- self._genbindings = b
- self._bindings = []
- else:
diff --git a/dev-python/rdflib/metadata.xml b/dev-python/rdflib/metadata.xml
index c27203b015b..b6848176643 100644
--- a/dev-python/rdflib/metadata.xml
+++ b/dev-python/rdflib/metadata.xml
@@ -6,9 +6,6 @@
<name>Python</name>
</maintainer>
<stabilize-allarches/>
- <use>
- <flag name="redland">enable support for Redland triplestore</flag>
- </use>
<upstream>
<remote-id type="pypi">rdflib</remote-id>
<remote-id type="github">RDFLib/rdflib</remote-id>
diff --git a/dev-python/rdflib/rdflib-4.2.2-r1.ebuild b/dev-python/rdflib/rdflib-4.2.2-r1.ebuild
deleted file mode 100644
index a6eb50c7d38..00000000000
--- a/dev-python/rdflib/rdflib-4.2.2-r1.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DISTUTILS_USE_SETUPTOOLS=rdepend
-PYTHON_COMPAT=( python3_{6..9} )
-PYTHON_REQ_USE="sqlite?,threads(+)"
-
-# The usual required for tests
-DISTUTILS_IN_SOURCE_BUILD=1
-
-inherit distutils-r1
-
-DESCRIPTION="RDF library containing a triple store and parser/serializer"
-HOMEPAGE="https://github.com/RDFLib/rdflib https://pypi.org/project/rdflib/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
-IUSE="doc berkdb examples redland sqlite test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- dev-python/isodate[${PYTHON_USEDEP}]
- dev-python/html5lib[${PYTHON_USEDEP}]
- dev-python/pyparsing[${PYTHON_USEDEP}]
- berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
- redland? ( dev-libs/redland-bindings[python,${PYTHON_USEDEP}] )"
-DEPEND="${RDEPEND}
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
- test? (
- dev-python/sparql-wrapper[${PYTHON_USEDEP}]
- >=dev-python/nose-1.3.1-r1[${PYTHON_USEDEP}]
- )"
-
-PATCHES=(
- # Python 3.7 StopIteration bug
- "${FILESDIR}"/${PN}-4.2.2-python3.7-StopIteration.patch
-)
-
-python_prepare_all() {
- # Upstream manufactured .pyc files which promptly break distutils' src_test
- find -name "*.py[oc~]" -delete || die
-
- # Bug 358189; take out tests that attempt to connect to the network
- sed -e "/'--with-doctest',/d" -e "/'--doctest-extension=.doctest',/d" \
- -e "/'--doctest-tests',/d" -i run_tests.py || die
-
- sed -e "s: 'sphinx.ext.intersphinx',::" -i docs/conf.py || die
-
- # doc build requires examples folder at the upper level of docs
- if use doc; then
- cd docs || die
- ln -sf ../examples . || die
- cd ../ || die
- fi
-
- distutils-r1_python_prepare_all
-}
-
-python_compile_all() {
- # https://github.com/RDFLib/rdflib/issues/510
- if use doc; then
- einfo ""
- einfo "Several warnings and Errors present in the build"
- einfo "For a complete build, it is required to install"
- einfo "github.com/gjhiggins/n3_pygments_lexer and"
- einfo "github.com/gjhiggins/sparql_pygments_lexer"
- einfo "outside portage via pip or by cloning. These have not been"
- einfo "given a tagged release by the author and are not in portage"
- einfo ""
-
- emake -C docs html
- HTML_DOCS=( docs/_build/html/. )
- fi
-}
-
-python_test() {
- pushd "${BUILD_DIR}/src/" >/dev/null || die
- "${EPYTHON}" ./run_tests.py -v || die "Tests failed under ${EPYTHON}"
- popd >/dev/null || die
-}
-
-python_install_all() {
- distutils-r1_python_install_all
-
- if use examples; then
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/, dev-python/rdflib/files/
@ 2024-11-16 9:02 Michał Górny
0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2024-11-16 9:02 UTC (permalink / raw
To: gentoo-commits
commit: 0205d31f60f4b85b7da82577cddb04ea3ab99002
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 16 08:59:12 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 16 09:02:09 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0205d31f
dev-python/rdflib: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/rdflib/Manifest | 2 -
.../files/rdflib-7.0.0-py3_13-fix-pickler.diff | 64 --------------------
dev-python/rdflib/rdflib-7.0.0-r2.ebuild | 65 --------------------
dev-python/rdflib/rdflib-7.1.0.ebuild | 70 ----------------------
4 files changed, 201 deletions(-)
diff --git a/dev-python/rdflib/Manifest b/dev-python/rdflib/Manifest
index 671153f0eb17..f8a4af856b87 100644
--- a/dev-python/rdflib/Manifest
+++ b/dev-python/rdflib/Manifest
@@ -1,3 +1 @@
-DIST rdflib-7.0.0.tar.gz 4765796 BLAKE2B 60ca36160f4f6588892853adde9dd4b795e549cc7fd52127cf1e50de3853b25b3a333cabd584ccf22827cb6f89d215d225c4ba767d0775feeefb481e4b1ed93b SHA512 56d110ab24c74c6ddb2e75320f60a82b4945e6ea1ce9d10ad4ae53d44c679b35826e3d7406e7d0e321ef9b042d32d2ba327a6dbd5c2c1780f552131d80c09445
-DIST rdflib-7.1.0.tar.gz 4863439 BLAKE2B 0f06d272a6b8b0d9356fe8fd67e9df5c1ceb0d9e102a9e954edc17ee3633f45e61520a9db3598777420f501dbb9e63085249211466fc8412d23986ee2b585c7e SHA512 40a3afba52161c2e642a0770d88b08d5bfd6d84325757cef13ad5dc620bcc7f13395c4a51e32b44db56b54568893af44f51b723ceebae1cc089e99b7e0e93c25
DIST rdflib-7.1.1.tar.gz 4864216 BLAKE2B b583e6f9afab95fc0818c4f11740ab8cab540b774a3db15fc8be7b836149f40af6eb445a61b61e020c55f9b561c17f5019275070272449bd4ea25827e4925e39 SHA512 6eafaebfb604446399b214496aabc91fe0c689e9b35d5637de35a5d9784a1acb9d727c7ad5eebe8700d0be2b1e54b3d51cd3fe723a2a6cbd38f0e259d42bc2c5
diff --git a/dev-python/rdflib/files/rdflib-7.0.0-py3_13-fix-pickler.diff b/dev-python/rdflib/files/rdflib-7.0.0-py3_13-fix-pickler.diff
deleted file mode 100644
index d2fbf4928972..000000000000
--- a/dev-python/rdflib/files/rdflib-7.0.0-py3_13-fix-pickler.diff
+++ /dev/null
@@ -1,64 +0,0 @@
---- a/rdflib/store.py
-+++ b/rdflib/store.py
-@@ -113,27 +113,39 @@ 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.0.0-r2.ebuild b/dev-python/rdflib/rdflib-7.0.0-r2.ebuild
deleted file mode 100644
index ec8faa1ba61d..000000000000
--- a/dev-python/rdflib/rdflib-7.0.0-r2.ebuild
+++ /dev/null
@@ -1,65 +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-0.7[${PYTHON_USEDEP}]
- >=dev-python/isodate-0.6.0[${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.0.0-py3_13-fix-pickler.diff"
-)
-
-distutils_enable_tests pytest
-
-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
-
- distutils-r1_python_prepare_all
-}
-
-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.0.ebuild b/dev-python/rdflib/rdflib-7.1.0.ebuild
deleted file mode 100644
index 045fd23592a0..000000000000
--- a/dev-python/rdflib/rdflib-7.1.0.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, html5lib-modern has no real changes
- sed -e 's:html5lib-modern:html5lib:' \
- -e '/html5lib/s:1\.2:1.1:' \
- -i pyproject.toml || 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
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/, dev-python/rdflib/files/
@ 2025-02-01 10:13 Michał Górny
0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2025-02-01 10:13 UTC (permalink / raw
To: gentoo-commits
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
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-02-01 10:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19 16:33 [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/, dev-python/rdflib/files/ Ian Delaney
-- strict thread matches above, loose matches on Subject: below --
2019-04-21 12:19 David Seifert
2020-07-30 20:41 Michał Górny
2024-11-16 9:02 Michał Górny
2025-02-01 10:13 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox