1 |
commit: 8618876e6ed75a3d232ea165b07c5b720f72a1d2 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 30 12:25:14 2020 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 30 12:25:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8618876e |
7 |
|
8 |
dev-python/bpython: bump to 0.19 |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
dev-python/bpython/Manifest | 1 + |
14 |
dev-python/bpython/bpython-0.19.ebuild | 57 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/bpython/Manifest b/dev-python/bpython/Manifest |
18 |
index f320511b490..fb82fbfea50 100644 |
19 |
--- a/dev-python/bpython/Manifest |
20 |
+++ b/dev-python/bpython/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST bpython-0.18.tar.gz 213321 BLAKE2B 476c18fbec1d4ef3c5e206e7586b0e982656160474b64ceaecf5b49f560115af0e51d964553aad25bc765f7b431bc4f062581f9f30c0cb2e8da51cdbf2bca5ca SHA512 760143c286e686d4b8d706e38f3b2d2e7c865f960fa8d828ec08a7d0dd198bfa09686ab3c4b27ea365400d60c45b69a3c03ee726879a8825cc91af2a75d28dab |
23 |
+DIST bpython-0.19.tar.gz 216564 BLAKE2B a0b469ae28965e7926838b2d520aed0199a39ad5d9d5650e34446601e6e5f023a6c09cbdd85a30b2873dc72b5ef5774c483d5f627accaf29dce7e6f8628cc1df SHA512 7c746848671d5de0b63f0284d2af87c12480fa1ae3e89eb10093ab5dfd42f926171f29bd8bcc19fe173fc58f7eff7276da4639d580836f0d112dc5e85000dc55 |
24 |
|
25 |
diff --git a/dev-python/bpython/bpython-0.19.ebuild b/dev-python/bpython/bpython-0.19.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..fa686ecb025 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/bpython/bpython-0.19.ebuild |
30 |
@@ -0,0 +1,57 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" |
42 |
+HOMEPAGE="https://www.bpython-interpreter.org/ https://github.com/bpython/bpython https://pypi.org/project/bpython/" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="doc test" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ >=dev-python/curtsies-0.2.11[${PYTHON_USEDEP}] |
52 |
+ dev-python/greenlet[${PYTHON_USEDEP}] |
53 |
+ dev-python/jedi[${PYTHON_USEDEP}] |
54 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
55 |
+ dev-python/requests[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/six-1.5[${PYTHON_USEDEP}] |
57 |
+ dev-python/urwid[${PYTHON_USEDEP}] |
58 |
+ dev-python/watchdog[${PYTHON_USEDEP}] |
59 |
+ " |
60 |
+DEPEND="${RDEPEND} |
61 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
62 |
+ test? ( dev-python/mock[${PYTHON_USEDEP}] )" |
63 |
+ |
64 |
+DOCS=( AUTHORS CHANGELOG sample.theme light.theme ) |
65 |
+ |
66 |
+# Req'd for clean build by each impl |
67 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
68 |
+ |
69 |
+RESTRICT="test" #659110 |
70 |
+ |
71 |
+python_compile_all() { |
72 |
+ if use doc; then |
73 |
+ sphinx-build -b html -c doc/sphinx/source/ \ |
74 |
+ doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed" |
75 |
+ fi |
76 |
+} |
77 |
+ |
78 |
+python_test() { |
79 |
+ pushd build/lib > /dev/null |
80 |
+ "${PYTHON}" -m unittest discover || die |
81 |
+ popd > /dev/null |
82 |
+} |
83 |
+ |
84 |
+python_install_all() { |
85 |
+ use doc && local HTML_DOCS=( doc/sphinx/source/html/. ) |
86 |
+ distutils-r1_python_install_all |
87 |
+} |