diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-20 13:38:53 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-20 13:39:46 +0200 |
commit | b161791ca46c864c3ecac9c6c424371f36004a85 (patch) | |
tree | 3ac8f7ba2f10835cb184ec3272cbbd3eecc19981 /dev-python/jedi/jedi-0.17.2-r1.ebuild | |
parent | dev-python/jedi: Remove old (diff) | |
download | gentoo-b161791ca46c864c3ecac9c6c424371f36004a85.tar.gz gentoo-b161791ca46c864c3ecac9c6c424371f36004a85.tar.bz2 gentoo-b161791ca46c864c3ecac9c6c424371f36004a85.zip |
dev-python/jedi: Require parso-0.7*
Closes: https://bugs.gentoo.org/738178
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/jedi/jedi-0.17.2-r1.ebuild')
-rw-r--r-- | dev-python/jedi/jedi-0.17.2-r1.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/dev-python/jedi/jedi-0.17.2-r1.ebuild b/dev-python/jedi/jedi-0.17.2-r1.ebuild new file mode 100644 index 000000000000..f0eb683638b9 --- /dev/null +++ b/dev-python/jedi/jedi-0.17.2-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit distutils-r1 + +TYPESHED_P="typeshed-jedi_v0.16.0" +DJANGO_STUBS_P="django-stubs-v1.5.0" + +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 + https://github.com/davidhalter/typeshed/archive/${TYPESHED_P#typeshed-}.tar.gz + -> ${TYPESHED_P}.tar.gz + https://github.com/davidhalter/django-stubs/archive/${DJANGO_STUBS_P#django-stubs-}.tar.gz + -> ${DJANGO_STUBS_P/v/}.tar.gz" + +LICENSE="MIT + test? ( Apache-2.0 )" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 x86" + +RDEPEND="=dev-python/parso-0.7*[${PYTHON_USEDEP}]" + +distutils_enable_sphinx docs \ + dev-python/sphinx_rtd_theme +distutils_enable_tests pytest + +python_prepare_all() { + # upstream includes these as submodules ... + rmdir "${S}"/jedi/third_party/{django-stubs,typeshed} || die + mv "${WORKDIR}/${DJANGO_STUBS_P/v/}" \ + "${S}/jedi/third_party/django-stubs" || die + mv "${WORKDIR}/${TYPESHED_P}" \ + "${S}/jedi/third_party/typeshed" || 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 + + # speed tests are fragile + rm test/test_speed.py || die + + # test_complete_expanduser relies on $HOME not being empty + touch "${HOME}"/somefile || die + + # TODO: investigate + sed -e 's:test_local_import:_&:' \ + -i test/test_utils.py || die + sed -e '/with sqlite3\.connect/,+2d' \ + -i test/completion/stdlib.py || die + rm test/completion/django.py || die + + # tests relying on pristine virtualenv + # this relies on test* not matching anything else + sed -e "/#\? \['test'\]/,+1d" \ + -i test/completion/on_import.py || die + # this one's broken by 'path' module (dev-python/path-py) + sed -e 's:test_os_issues:_&:' \ + -i test/test_inference/test_imports.py || die + sed -e 's:test_venv_and_pths:_&:' \ + -i test/test_inference/test_sys_path.py || die + + distutils-r1_python_prepare_all +} |