Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bpython/, profiles/
Date: Sat, 07 Mar 2020 17:57:17
Message-Id: 1583603790.4bd3056066c2ecbfebd14196f25101afe5fd2a43.sping@gentoo
1 commit: 4bd3056066c2ecbfebd14196f25101afe5fd2a43
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 7 17:52:11 2020 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 7 17:56:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bd30560
7
8 dev-python/bpython: EAPI 7 + py37 + py38
9
10 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
11 Package-Manager: Portage-2.3.92, Repoman-2.3.20
12
13 dev-python/bpython/bpython-0.18-r1.ebuild | 57 +++++++++++++++++++++++++++++++
14 profiles/package.mask | 1 -
15 2 files changed, 57 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-python/bpython/bpython-0.18-r1.ebuild b/dev-python/bpython/bpython-0.18-r1.ebuild
18 new file mode 100644
19 index 00000000000..fa686ecb025
20 --- /dev/null
21 +++ b/dev-python/bpython/bpython-0.18-r1.ebuild
22 @@ -0,0 +1,57 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +PYTHON_COMPAT=( python3_{6,7,8} )
29 +DISTUTILS_USE_SETUPTOOLS=rdepend
30 +
31 +inherit distutils-r1
32 +
33 +DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter"
34 +HOMEPAGE="https://www.bpython-interpreter.org/ https://github.com/bpython/bpython https://pypi.org/project/bpython/"
35 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
36 +
37 +LICENSE="MIT"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +IUSE="doc test"
41 +
42 +RDEPEND="
43 + >=dev-python/curtsies-0.2.11[${PYTHON_USEDEP}]
44 + dev-python/greenlet[${PYTHON_USEDEP}]
45 + dev-python/jedi[${PYTHON_USEDEP}]
46 + dev-python/pygments[${PYTHON_USEDEP}]
47 + dev-python/requests[${PYTHON_USEDEP}]
48 + >=dev-python/six-1.5[${PYTHON_USEDEP}]
49 + dev-python/urwid[${PYTHON_USEDEP}]
50 + dev-python/watchdog[${PYTHON_USEDEP}]
51 + "
52 +DEPEND="${RDEPEND}
53 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
54 + test? ( dev-python/mock[${PYTHON_USEDEP}] )"
55 +
56 +DOCS=( AUTHORS CHANGELOG sample.theme light.theme )
57 +
58 +# Req'd for clean build by each impl
59 +DISTUTILS_IN_SOURCE_BUILD=1
60 +
61 +RESTRICT="test" #659110
62 +
63 +python_compile_all() {
64 + if use doc; then
65 + sphinx-build -b html -c doc/sphinx/source/ \
66 + doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed"
67 + fi
68 +}
69 +
70 +python_test() {
71 + pushd build/lib > /dev/null
72 + "${PYTHON}" -m unittest discover || die
73 + popd > /dev/null
74 +}
75 +
76 +python_install_all() {
77 + use doc && local HTML_DOCS=( doc/sphinx/source/html/. )
78 + distutils-r1_python_install_all
79 +}
80
81 diff --git a/profiles/package.mask b/profiles/package.mask
82 index af352e79797..2d052301c5e 100644
83 --- a/profiles/package.mask
84 +++ b/profiles/package.mask
85 @@ -54,7 +54,6 @@ dev-python/bcolz
86 dev-python/beaker
87 dev-python/biplist
88 dev-python/blaze
89 -dev-python/bpython
90 dev-python/cgroup-utils
91 dev-python/chameleon
92 dev-python/colander