1 |
commit: ffc428e971ef22c54efef7d2d792c5d6faae8252 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 4 13:20:32 2019 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 4 13:21:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffc428e9 |
7 |
|
8 |
dev-python/bpython: bump to 0.18 |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
dev-python/bpython/Manifest | 1 + |
14 |
dev-python/bpython/bpython-0.18.ebuild | 57 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/bpython/Manifest b/dev-python/bpython/Manifest |
18 |
index 7746ce02c60..befb2be97ec 100644 |
19 |
--- a/dev-python/bpython/Manifest |
20 |
+++ b/dev-python/bpython/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST bpython-0.17.1.tar.gz 213638 BLAKE2B 42530a38f8cf714a0415957a46374b83ad14dfab89a76317507763c2f83b3dbc8f71c7cc967ec353fabd38b6631130d34df99c0d53f3728fa2390d4a6f64b25d SHA512 5b5e861646df90510db75520dff9533b71501d35b7af1d152adf2c929b171fa6a2b1c0a6b7eda0311f9315703db161c6a78698a6cd434e5321464d6d1c033e4e |
23 |
+DIST bpython-0.18.tar.gz 213321 BLAKE2B 476c18fbec1d4ef3c5e206e7586b0e982656160474b64ceaecf5b49f560115af0e51d964553aad25bc765f7b431bc4f062581f9f30c0cb2e8da51cdbf2bca5ca SHA512 760143c286e686d4b8d706e38f3b2d2e7c865f960fa8d828ec08a7d0dd198bfa09686ab3c4b27ea365400d60c45b69a3c03ee726879a8825cc91af2a75d28dab |
24 |
|
25 |
diff --git a/dev-python/bpython/bpython-0.18.ebuild b/dev-python/bpython/bpython-0.18.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..f93dc731b5a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/bpython/bpython-0.18.ebuild |
30 |
@@ -0,0 +1,57 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" |
41 |
+HOMEPAGE="https://www.bpython-interpreter.org/ https://github.com/bpython/bpython https://pypi.org/project/bpython/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="doc test" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ >=dev-python/curtsies-0.2.11[${PYTHON_USEDEP}] |
51 |
+ dev-python/greenlet[${PYTHON_USEDEP}] |
52 |
+ dev-python/jedi[${PYTHON_USEDEP}] |
53 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
54 |
+ dev-python/requests[${PYTHON_USEDEP}] |
55 |
+ dev-python/setuptools[${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 |
+} |