Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jedi/, dev-python/jedi/files/
Date: Tue, 06 Feb 2018 01:53:38
Message-Id: 1517881919.cdb4a4c747fcabfbdbc5c709c559b1669d0b0ae6.radhermit@gentoo
1 commit: cdb4a4c747fcabfbdbc5c709c559b1669d0b0ae6
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 6 01:46:31 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 6 01:51:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdb4a4c7
7
8 dev-python/jedi: version bump to 0.11.1
9
10 dev-python/jedi/Manifest | 1 +
11 .../jedi/files/jedi-0.11.1-exclude-tests.patch | 26 +++++++++++
12 dev-python/jedi/jedi-0.11.1.ebuild | 51 ++++++++++++++++++++++
13 3 files changed, 78 insertions(+)
14
15 diff --git a/dev-python/jedi/Manifest b/dev-python/jedi/Manifest
16 index 2ac7fdc76cd..aa9d365820a 100644
17 --- a/dev-python/jedi/Manifest
18 +++ b/dev-python/jedi/Manifest
19 @@ -1 +1,2 @@
20 DIST jedi-0.10.2.tar.gz 373879 BLAKE2B 8007b31dc6c96d9538ab141b976fd4554ea16f01bb277692534a2972a6dcf61ee809c7573a7a3f7c0eceb29505de6ffe3ec0a7234a427579333b453fc9cd9dbc SHA512 847b000894b5e17cf5582c88245989ce1f0e17b595c79a2cdf4cc7a805fe7360ea08f28ac31473408be795c9ea210c85541cffa5fc7e7119da8c0228eb509351
21 +DIST jedi-0.11.1.tar.gz 332402 BLAKE2B bc0a8df89c3d8b6cccc387a22cc08f613c990c59e360c58ae1d2becf521a755892afa4972195f6e40ec3bb48b74b20a966034d0e5bcad5051f90e5b4cc082270 SHA512 61389704a318f89d12b053b786bfb6bda21d2696830c001d6d6e66191fc060d731bc05ea71f2e70725532dcbe109c5c7346a36d227e6f8ab0eb2512f4c1a8945
22
23 diff --git a/dev-python/jedi/files/jedi-0.11.1-exclude-tests.patch b/dev-python/jedi/files/jedi-0.11.1-exclude-tests.patch
24 new file mode 100644
25 index 00000000000..a85af80d4c9
26 --- /dev/null
27 +++ b/dev-python/jedi/files/jedi-0.11.1-exclude-tests.patch
28 @@ -0,0 +1,26 @@
29 +From 4e52acbf26b6d52e26e757cb04817d17c5464331 Mon Sep 17 00:00:00 2001
30 +From: Dave Halter <davidhalter88@×××××.com>
31 +Date: Sun, 7 Jan 2018 14:13:21 +0100
32 +Subject: [PATCH] Using setup.py build should not include part of tests
33 +
34 +It looks like that we have to not only exclude the test package but also 'test.*'. Thanks to @david-geiger for noticing this. Fixes #1024.
35 +---
36 + setup.py | 2 +-
37 + 1 file changed, 1 insertion(+), 1 deletion(-)
38 +
39 +diff --git a/setup.py b/setup.py
40 +index 3f3b7e54..c7081858 100755
41 +--- a/setup.py
42 ++++ b/setup.py
43 +@@ -32,7 +32,7 @@ setup(name='jedi',
44 + license='MIT',
45 + keywords='python completion refactoring vim',
46 + long_description=readme,
47 +- packages=find_packages(exclude=['test']),
48 ++ packages=find_packages(exclude=['test', 'test.*']),
49 + install_requires=install_requires,
50 + extras_require={'dev': ['docopt']},
51 + package_data={'jedi': ['evaluate/compiled/fake/*.pym']},
52 +--
53 +2.16.1
54 +
55
56 diff --git a/dev-python/jedi/jedi-0.11.1.ebuild b/dev-python/jedi/jedi-0.11.1.ebuild
57 new file mode 100644
58 index 00000000000..7aac943f7a2
59 --- /dev/null
60 +++ b/dev-python/jedi/jedi-0.11.1.ebuild
61 @@ -0,0 +1,51 @@
62 +# Copyright 1999-2018 Gentoo Foundation
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=6
66 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
67 +
68 +inherit distutils-r1
69 +
70 +DESCRIPTION="Autocompletion library for Python"
71 +HOMEPAGE="https://github.com/davidhalter/jedi"
72 +SRC_URI="https://github.com/davidhalter/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
73 +
74 +LICENSE="MIT"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~arm64 ~x86"
77 +IUSE="doc test"
78 +
79 +RDEPEND=">=dev-python/parso-0.1.1[${PYTHON_USEDEP}]"
80 +DEPEND="
81 + dev-python/setuptools[${PYTHON_USEDEP}]
82 + doc? ( dev-python/sphinx )
83 + test? (
84 + dev-python/pytest[${PYTHON_USEDEP}]
85 + ${RDEPEND}
86 + )"
87 +
88 +PATCHES=( "${FILESDIR}"/${PN}-0.11.1-exclude-tests.patch )
89 +
90 +# various misc failures
91 +RESTRICT="test"
92 +
93 +src_prepare() {
94 + # skip integration and speed tests
95 + rm test/test_{integration,speed}* || die
96 +
97 + distutils-r1_python_prepare_all
98 +}
99 +
100 +python_test() {
101 + PYTHONPATH="${PYTHONPATH%:}${PYTHONPATH+:}${S}/test" py.test -v test \
102 + || die "Tests failed under ${EPYTHON}"
103 +}
104 +
105 +python_compile_all() {
106 + use doc && emake -C docs html
107 +}
108 +
109 +python_install_all() {
110 + use doc && HTML_DOCS=( "${S}"/docs/_build/html/. )
111 + distutils-r1_python_install_all
112 +}