Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rdflib/
Date: Sun, 29 Mar 2020 07:04:15
Message-Id: 1585464595.22d1dab4ab03561d30b6c6ea99a102e38a58f148.mgorny@gentoo
1 commit: 22d1dab4ab03561d30b6c6ea99a102e38a58f148
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 29 06:49:55 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 29 06:49:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22d1dab4
7
8 dev-python/rdflib: Remove redundant versions
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/rdflib/rdflib-4.2.2.ebuild | 89 -----------------------------------
13 1 file changed, 89 deletions(-)
14
15 diff --git a/dev-python/rdflib/rdflib-4.2.2.ebuild b/dev-python/rdflib/rdflib-4.2.2.ebuild
16 deleted file mode 100644
17 index ed7ae1aa746..00000000000
18 --- a/dev-python/rdflib/rdflib-4.2.2.ebuild
19 +++ /dev/null
20 @@ -1,89 +0,0 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -PYTHON_COMPAT=( python{2_7,3_6} )
27 -PYTHON_REQ_USE="sqlite?,threads(+)"
28 -
29 -# The usual required for tests
30 -DISTUTILS_IN_SOURCE_BUILD=1
31 -
32 -inherit distutils-r1
33 -
34 -DESCRIPTION="RDF library containing a triple store and parser/serializer"
35 -HOMEPAGE="https://github.com/RDFLib/rdflib https://pypi.org/project/rdflib/"
36 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 -
38 -LICENSE="BSD"
39 -SLOT="0"
40 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
41 -IUSE="doc berkdb examples mysql redland sqlite test"
42 -RESTRICT="!test? ( test )"
43 -
44 -RDEPEND="
45 - dev-python/isodate[${PYTHON_USEDEP}]
46 - dev-python/html5lib[${PYTHON_USEDEP}]
47 - dev-python/pyparsing[${PYTHON_USEDEP}]
48 - berkdb? ( dev-python/bsddb3[${PYTHON_USEDEP}] )
49 - mysql? ( dev-python/mysql-python[$(python_gen_usedep python2_7)] )
50 - redland? ( dev-libs/redland-bindings[python,$(python_gen_usedep python2_7)] )"
51 -DEPEND="${RDEPEND}
52 - dev-python/setuptools[${PYTHON_USEDEP}]
53 - test? ( dev-python/sparql-wrapper[${PYTHON_USEDEP}]
54 - >=dev-python/nose-1.3.1-r1[${PYTHON_USEDEP}] )"
55 -
56 -python_prepare_all() {
57 - # Upstream manufactured .pyc files which promptly break distutils' src_test
58 - find -name "*.py[oc~]" -delete || die
59 -
60 - # Bug 358189; take out tests that attempt to connect to the network
61 - sed -e "/'--with-doctest',/d" -e "/'--doctest-extension=.doctest',/d" \
62 - -e "/'--doctest-tests',/d" -i run_tests.py || die
63 -
64 - sed -e "s: 'sphinx.ext.intersphinx',::" -i docs/conf.py || die
65 -
66 - # doc build requires examples folder at the upper level of docs
67 - if use doc; then
68 - cd docs || die
69 - ln -sf ../examples . || die
70 - cd ../ || die
71 - fi
72 -
73 - distutils-r1_python_prepare_all
74 -}
75 -
76 -python_compile_all() {
77 - # https://github.com/RDFLib/rdflib/issues/510
78 - if use doc; then
79 - einfo ""; einfo "Several warnings and Errors present in the build"
80 - einfo "For a complete build, it is required to install"
81 - einfo "github.com/gjhiggins/n3_pygments_lexer and"
82 - einfo "github.com/gjhiggins/sparql_pygments_lexer"
83 - einfo "outside portage via pip or by cloning. These have not been"
84 - einfo "given a tagged release by the author and are not in portage"
85 - einfo ""
86 - emake -C docs html
87 - fi
88 -}
89 -
90 -python_test() {
91 - # the default; nose with: --where=./ does not work for python3
92 - if python_is_python3; then
93 - pushd "${BUILD_DIR}/src/" > /dev/null
94 - "${PYTHON}" ./run_tests.py || die "Tests failed under ${EPYTHON}"
95 - popd > /dev/null
96 - else
97 - "${PYTHON}" ./run_tests.py || die "Tests failed under ${EPYTHON}"
98 - fi
99 -}
100 -
101 -python_install_all() {
102 - use doc && local HTML_DOCS=( docs/_build/html/. )
103 - if use examples ; then
104 - docinto examples
105 - dodoc -r examples/.
106 - fi
107 -
108 - distutils-r1_python_install_all
109 -}