diff options
author | 2020-01-27 17:19:19 +0100 | |
---|---|---|
committer | 2020-01-29 08:14:03 +0200 | |
commit | 1ca265ad84848a4651736ab53dbd8dc642a78248 (patch) | |
tree | 2338f1aa1e37364fe7e8054071c7131d1e15aa3a /dev-python/jedi/jedi-0.14.1.ebuild | |
parent | dev-libs/libzip: keyword on ~ppc64, bug #706986 (diff) | |
download | gentoo-1ca265ad84848a4651736ab53dbd8dc642a78248.tar.gz gentoo-1ca265ad84848a4651736ab53dbd8dc642a78248.tar.bz2 gentoo-1ca265ad84848a4651736ab53dbd8dc642a78248.zip |
dev-python/jedi: Add v0.14.1
>=dev-python/spyder-4.0.0 requires =dev-python/jedi-0.14.1
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/14475
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/jedi/jedi-0.14.1.ebuild')
-rw-r--r-- | dev-python/jedi/jedi-0.14.1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/jedi/jedi-0.14.1.ebuild b/dev-python/jedi/jedi-0.14.1.ebuild new file mode 100644 index 000000000000..5a24e84331e2 --- /dev/null +++ b/dev-python/jedi/jedi-0.14.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Autocompletion library for Python" +HOMEPAGE="https://github.com/davidhalter/jedi" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +RDEPEND="dev-python/parso[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest +distutils_enable_sphinx docs + +python_prepare_all() { + # speed tests are fragile + rm test/test_speed.py || die + + # 'path' completion test does not account for 'path' being a valid + # package (i.e. dev-python/path-py) + # https://github.com/davidhalter/jedi/issues/1210 + sed -i -e 's:test_get_modules_containing_name:_&:' \ + test/test_evaluate/test_imports.py || die + sed -i -e 's:test_os_issues:_&:' \ + test/test_evaluate/test_imports.py || die + sed -i -e 's:test_os_issues:_&:' \ + test/test_api/test_full_name.py || die + sed -i -e 's:test_os_nowait:_&:' \ + test/test_api/test_full_name.py || die + sed -i -e 's:test_os_nowait:_&:' \ + test/test_api/test_completion.py || die + sed -i -e 's:test_import:_&:' \ + test/test_utils.py || die + + # don't run doctests, don't depend on colorama + sed -i "s:'docopt',:: ; s:'colorama',::" setup.py || die + sed -i "s: --doctest-modules::" pytest.ini || die + + # no clue why it fails but we don't really care about .pyc files + # without sources anyway + rm test/test_evaluate/test_pyc.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + if [[ ${EPYTHON} = python3.6 ]]; then + # our very useful patching changes libdir for no good reason + sed -i -e 's:test_venv_and_pths:_&:' \ + test/test_evaluate/test_sys_path.py || die + fi + + pytest -vv || die "Tests fail with ${EPYTHON}" +} |