diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-04-15 09:57:12 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-04-15 10:33:53 +0200 |
commit | 699064cf32fd7c4ab6025d86f0bc99f646e0bc4f (patch) | |
tree | 8935d3576067bb31e3ffccb3edbd51172d9370d7 /dev-python | |
parent | dev-python/hypothesis: Bump to 5.8.6 (diff) | |
download | gentoo-699064cf32fd7c4ab6025d86f0bc99f646e0bc4f.tar.gz gentoo-699064cf32fd7c4ab6025d86f0bc99f646e0bc4f.tar.bz2 gentoo-699064cf32fd7c4ab6025d86f0bc99f646e0bc4f.zip |
dev-python/jedi: Bump to 0.17.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/jedi/Manifest | 2 | ||||
-rw-r--r-- | dev-python/jedi/files/jedi-0.17.0-tests.patch | 26 | ||||
-rw-r--r-- | dev-python/jedi/jedi-0.17.0.ebuild | 72 |
3 files changed, 100 insertions, 0 deletions
diff --git a/dev-python/jedi/Manifest b/dev-python/jedi/Manifest index 4e76ed72a116..75d01ed7bdbc 100644 --- a/dev-python/jedi/Manifest +++ b/dev-python/jedi/Manifest @@ -1,4 +1,6 @@ DIST jedi-0.14.1.tar.gz 860206 BLAKE2B d1234ceb417f531c5a29908843a47bec5b198abbc848248517f2796d95319e2d930f7c01af9759cb9a3d44a28fb73c4080802642aea1be32f16689e76c1a49ce SHA512 d68c350259921792788917440c9dd6eb923c90eb1b8d0e078a6d428fad852c4d6bbdc74d8caa88ba5a87db344e4b372dc9cfc959d7bab922888d70402fcf4776 DIST jedi-0.15.1.tar.gz 412356 BLAKE2B a7738e8825b3f578db5e64d50cbf65219b4d2f2f81c45cbae9e3dbb858b0e1ef26d76972c112bfae839daaf73bba0d00b30b5708404d16b0385452500a1c2d35 SHA512 0f6e0185f3f10dbc000f09ddfed7b9596fe5dc270682544173dc156d505618ea14f1f44ede5d2357745ab8ded0b15b2788d064ca4db39fe70196982dd0a16893 DIST jedi-0.15.2.tar.gz 422520 BLAKE2B f382e4026e1d0388c03b5116ea49fe4abf117c1555ccf0159541557e8d0d344774e15b983fbc66f996f60ae38552bb3b89f3f9cc809ab57f511a01664612f08f SHA512 079d9fc104125d188c72cfc0bd0ccd4de88eb5e7cdfba86e44f840e2427d0ab114bb812dad8e814e502e773d3a59f166547f5f6f287a5eedae64af99e8b5616e +DIST jedi-0.17.0.tar.gz 462810 BLAKE2B 71eeb3e3fa23786c577fbcb3727a49111d6188c2a5d9e13538123c7c6817b67d457f3bb88423dc9dac6ee09dec89d7281c86166bc771fa0215cd327a4432ebd7 SHA512 562ae25f0c4709cfe36fe4e737d383190d8ad435b3ff580b9fbe966544c8d035cfa29815459ceecfafd704547560a8dc397f841989043e6e18c8f9d639f75399 DIST typeshed-jedi_v0.15.0.tar.gz 466890 BLAKE2B 7c4956c60646ecb7f21704e3ce95cd38a44e40849e4efba352a0be11c4511fc28d77f32308a3f136cd72833f937f802194ae57f1cdf1d53ae7824ebe4f4bc323 SHA512 46250822eb4aa20203db9b99626e33f2b60ec77072e20dbd94219d782cf204e2cc5a94579b1753c634f931445ad4ef9f0bd7ccfed287d86bca96b945d2eb27c1 +DIST typeshed-jedi_v0.16.0.tar.gz 497407 BLAKE2B d322d70d3c46d1abcedddbd10aed5c6f213698f4e9f9aec1b4bd7e7186ab7ce384ec6a95d6adc46c7459e3bbb748d6ff432115cae744a315aed60972d2390eee SHA512 1551082938b52717f90e28ffd25e838ab04798ea86ea719fa35975a9de006bcc063a00cc8c8babd994990cdff694d48490f4d8c898c322666450d7ef3be8688a diff --git a/dev-python/jedi/files/jedi-0.17.0-tests.patch b/dev-python/jedi/files/jedi-0.17.0-tests.patch new file mode 100644 index 000000000000..d045340d0930 --- /dev/null +++ b/dev-python/jedi/files/jedi-0.17.0-tests.patch @@ -0,0 +1,26 @@ +From 57f2a731d2e5c4fe5794d823154983e44e8df003 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 15 Apr 2020 07:54:01 +0200 +Subject: [PATCH] Sort test_project::test_search results to fix failures + +Fixes #1542 +--- + test/test_api/test_project.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/test_api/test_project.py b/test/test_api/test_project.py +index a7d4846e..c21579a5 100644 +--- a/test/test_api/test_project.py ++++ b/test/test_api/test_project.py +@@ -135,7 +135,7 @@ def test_search(string, full_names, kwargs, skip_pre_python36): + defs = project.complete_search(string, **kwargs) + else: + defs = project.search(string, **kwargs) +- assert [('stub:' if d.is_stub() else '') + d.full_name for d in defs] == full_names ++ assert sorted([('stub:' if d.is_stub() else '') + d.full_name for d in defs]) == full_names + + + @pytest.mark.parametrize( +-- +2.26.0 + diff --git a/dev-python/jedi/jedi-0.17.0.ebuild b/dev-python/jedi/jedi-0.17.0.ebuild new file mode 100644 index 000000000000..ec64254f90cb --- /dev/null +++ b/dev-python/jedi/jedi-0.17.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +TYPESHED_PV="0.16.0" +TYPESHED_P="typeshed-jedi_v${TYPESHED_PV}" + +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" + +LICENSE="MIT + test? ( Apache-2.0 )" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +RDEPEND=">=dev-python/parso-0.5.2[${PYTHON_USEDEP}]" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}"/jedi-0.17.0-tests.patch + ) + + # upstream includes this as a submodule ... + rmdir "${S}/jedi/third_party/typeshed" || 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 + + # really silly assumptions, not fit for py3.8 + sed -e '/len(difference)/s:20:22:' \ + -i test/test_utils.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 +} |