diff options
author | 2018-02-05 20:46:31 -0500 | |
---|---|---|
committer | 2018-02-05 20:51:59 -0500 | |
commit | cdb4a4c747fcabfbdbc5c709c559b1669d0b0ae6 (patch) | |
tree | ab26c153efd6d848df11e12372ab4d1db2740289 /dev-python/jedi | |
parent | dev-python/parso: initial import, required by latest version of jedi (diff) | |
download | gentoo-cdb4a4c747fcabfbdbc5c709c559b1669d0b0ae6.tar.gz gentoo-cdb4a4c747fcabfbdbc5c709c559b1669d0b0ae6.tar.bz2 gentoo-cdb4a4c747fcabfbdbc5c709c559b1669d0b0ae6.zip |
dev-python/jedi: version bump to 0.11.1
Diffstat (limited to 'dev-python/jedi')
-rw-r--r-- | dev-python/jedi/Manifest | 1 | ||||
-rw-r--r-- | dev-python/jedi/files/jedi-0.11.1-exclude-tests.patch | 26 | ||||
-rw-r--r-- | dev-python/jedi/jedi-0.11.1.ebuild | 51 |
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-python/jedi/Manifest b/dev-python/jedi/Manifest index 2ac7fdc76cd3..aa9d365820a9 100644 --- a/dev-python/jedi/Manifest +++ b/dev-python/jedi/Manifest @@ -1 +1,2 @@ DIST jedi-0.10.2.tar.gz 373879 BLAKE2B 8007b31dc6c96d9538ab141b976fd4554ea16f01bb277692534a2972a6dcf61ee809c7573a7a3f7c0eceb29505de6ffe3ec0a7234a427579333b453fc9cd9dbc SHA512 847b000894b5e17cf5582c88245989ce1f0e17b595c79a2cdf4cc7a805fe7360ea08f28ac31473408be795c9ea210c85541cffa5fc7e7119da8c0228eb509351 +DIST jedi-0.11.1.tar.gz 332402 BLAKE2B bc0a8df89c3d8b6cccc387a22cc08f613c990c59e360c58ae1d2becf521a755892afa4972195f6e40ec3bb48b74b20a966034d0e5bcad5051f90e5b4cc082270 SHA512 61389704a318f89d12b053b786bfb6bda21d2696830c001d6d6e66191fc060d731bc05ea71f2e70725532dcbe109c5c7346a36d227e6f8ab0eb2512f4c1a8945 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 new file mode 100644 index 000000000000..a85af80d4c98 --- /dev/null +++ b/dev-python/jedi/files/jedi-0.11.1-exclude-tests.patch @@ -0,0 +1,26 @@ +From 4e52acbf26b6d52e26e757cb04817d17c5464331 Mon Sep 17 00:00:00 2001 +From: Dave Halter <davidhalter88@gmail.com> +Date: Sun, 7 Jan 2018 14:13:21 +0100 +Subject: [PATCH] Using setup.py build should not include part of tests + +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. +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 3f3b7e54..c7081858 100755 +--- a/setup.py ++++ b/setup.py +@@ -32,7 +32,7 @@ setup(name='jedi', + license='MIT', + keywords='python completion refactoring vim', + long_description=readme, +- packages=find_packages(exclude=['test']), ++ packages=find_packages(exclude=['test', 'test.*']), + install_requires=install_requires, + extras_require={'dev': ['docopt']}, + package_data={'jedi': ['evaluate/compiled/fake/*.pym']}, +-- +2.16.1 + diff --git a/dev-python/jedi/jedi-0.11.1.ebuild b/dev-python/jedi/jedi-0.11.1.ebuild new file mode 100644 index 000000000000..7aac943f7a2f --- /dev/null +++ b/dev-python/jedi/jedi-0.11.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Autocompletion library for Python" +HOMEPAGE="https://github.com/davidhalter/jedi" +SRC_URI="https://github.com/davidhalter/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc test" + +RDEPEND=">=dev-python/parso-0.1.1[${PYTHON_USEDEP}]" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx ) + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + ${RDEPEND} + )" + +PATCHES=( "${FILESDIR}"/${PN}-0.11.1-exclude-tests.patch ) + +# various misc failures +RESTRICT="test" + +src_prepare() { + # skip integration and speed tests + rm test/test_{integration,speed}* || die + + distutils-r1_python_prepare_all +} + +python_test() { + PYTHONPATH="${PYTHONPATH%:}${PYTHONPATH+:}${S}/test" py.test -v test \ + || die "Tests failed under ${EPYTHON}" +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_install_all() { + use doc && HTML_DOCS=( "${S}"/docs/_build/html/. ) + distutils-r1_python_install_all +} |