1 |
commit: cd5174b37c3dddd45adfa70312520210987ca785 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 30 16:33:49 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 30 17:24:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd5174b3 |
7 |
|
8 |
dev-python/jedi: Bump to 0.12.1 |
9 |
|
10 |
Bump to 0.12.1. Includes fixed test suite and dependencies. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/664352 |
13 |
Closes: https://bugs.gentoo.org/656382 |
14 |
|
15 |
dev-python/jedi/Manifest | 1 + |
16 |
dev-python/jedi/jedi-0.12.1.ebuild | 62 ++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 63 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/jedi/Manifest b/dev-python/jedi/Manifest |
20 |
index 9a60f7a3c2e..cf317547cbe 100644 |
21 |
--- a/dev-python/jedi/Manifest |
22 |
+++ b/dev-python/jedi/Manifest |
23 |
@@ -1,3 +1,4 @@ |
24 |
DIST jedi-0.10.2.tar.gz 373879 BLAKE2B 8007b31dc6c96d9538ab141b976fd4554ea16f01bb277692534a2972a6dcf61ee809c7573a7a3f7c0eceb29505de6ffe3ec0a7234a427579333b453fc9cd9dbc SHA512 847b000894b5e17cf5582c88245989ce1f0e17b595c79a2cdf4cc7a805fe7360ea08f28ac31473408be795c9ea210c85541cffa5fc7e7119da8c0228eb509351 |
25 |
DIST jedi-0.11.1.tar.gz 332402 BLAKE2B bc0a8df89c3d8b6cccc387a22cc08f613c990c59e360c58ae1d2becf521a755892afa4972195f6e40ec3bb48b74b20a966034d0e5bcad5051f90e5b4cc082270 SHA512 61389704a318f89d12b053b786bfb6bda21d2696830c001d6d6e66191fc060d731bc05ea71f2e70725532dcbe109c5c7346a36d227e6f8ab0eb2512f4c1a8945 |
26 |
DIST jedi-0.12.0.tar.gz 354329 BLAKE2B ef203f2ba57a90de1e16b80c8786fa25d6d459244873dfb22044aa6d080435efa976daeb80949c3fba41ca2f57feb5bfed255b3bb490e17b40b3f13dfbb31e14 SHA512 3e8280b16855cf2c891666f0fb02ac30d801279b72b5bcb64541ef7c152d9f9b165015405ee291cbccd6c9cb3c0481c24f30e6100cb4463888153021b946f16d |
27 |
+DIST jedi-0.12.1.tar.gz 356736 BLAKE2B 515cbc27e065c24fb2cebae5a3807d2e025f22110f3de60d26a74475eadc985bb32bea60b691c580473fffe2fdfc86705187dea1fb730ef3f510b7bdb52e0d59 SHA512 92f9ac34abf908a8143dff360400dd8d6643dc3502bb7973f92bd05db94c2af151c2063f2de0481a14e26d11c009cc39c46189e1ea31d274b80802e3a10cd665 |
28 |
|
29 |
diff --git a/dev-python/jedi/jedi-0.12.1.ebuild b/dev-python/jedi/jedi-0.12.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..29db2142248 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/jedi/jedi-0.12.1.ebuild |
34 |
@@ -0,0 +1,62 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="Autocompletion library for Python" |
44 |
+HOMEPAGE="https://github.com/davidhalter/jedi" |
45 |
+SRC_URI="https://github.com/davidhalter/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="MIT" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
50 |
+IUSE="doc test" |
51 |
+ |
52 |
+RDEPEND=">=dev-python/parso-0.3.1[${PYTHON_USEDEP}]" |
53 |
+DEPEND=" |
54 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
55 |
+ doc? ( dev-python/sphinx ) |
56 |
+ test? ( |
57 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
58 |
+ ${RDEPEND} |
59 |
+ )" |
60 |
+ |
61 |
+python_prepare_all() { |
62 |
+ # speed tests are fragile |
63 |
+ rm test/test_speed.py || die |
64 |
+ |
65 |
+ # 'path' completion test does not account for 'path' being a valid |
66 |
+ # package (i.e. dev-python/path-py) |
67 |
+ # https://github.com/davidhalter/jedi/issues/1210 |
68 |
+ sed -i -e '/path.*not in/d' test/test_evaluate/test_imports.py || die |
69 |
+ |
70 |
+ # no clue why it fails but we don't really care about .pyc files |
71 |
+ # without sources anyway |
72 |
+ rm test/test_evaluate/test_pyc.py || die |
73 |
+ |
74 |
+ # our very useful patching changes libdir for no good reason |
75 |
+ sed -i -e "/site_pkg_path/s:'lib':& if virtualenv.version_info >= (3,7) else '$(get_libdir)':" \ |
76 |
+ test/test_evaluate/test_sys_path.py || die |
77 |
+ |
78 |
+ # this super-secret feature of py3.4 apparently doesn't work for us |
79 |
+ sed -i -e 's:test_init_extension_module:_&:' \ |
80 |
+ test/test_evaluate/test_extension.py || die |
81 |
+ |
82 |
+ distutils-r1_python_prepare_all |
83 |
+} |
84 |
+ |
85 |
+python_test() { |
86 |
+ py.test -vv jedi test || die "Tests failed under ${EPYTHON}" |
87 |
+} |
88 |
+ |
89 |
+python_compile_all() { |
90 |
+ use doc && emake -C docs html |
91 |
+} |
92 |
+ |
93 |
+python_install_all() { |
94 |
+ use doc && HTML_DOCS=( "${S}"/docs/_build/html/. ) |
95 |
+ distutils-r1_python_install_all |
96 |
+} |