Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/jedi/
Date: Fri, 25 Dec 2020 18:49:28
Message-Id: 1608922161.f6c5712ec98ccce73eb53dadc6051b8643b476d8.mgorny@gentoo
1 commit: f6c5712ec98ccce73eb53dadc6051b8643b476d8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 25 17:24:51 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 25 18:49:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6c5712e
7
8 dev-python/jedi: Bump to 0.18.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/jedi/Manifest | 1 +
13 dev-python/jedi/jedi-0.18.0.ebuild | 70 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/dev-python/jedi/Manifest b/dev-python/jedi/Manifest
17 index c0f227eb9fa..a83fc82dd24 100644
18 --- a/dev-python/jedi/Manifest
19 +++ b/dev-python/jedi/Manifest
20 @@ -1,4 +1,5 @@
21 DIST django-stubs-1.5.0.tar.gz 180400 BLAKE2B 0619a76f89fe4fad456a82e3048009f25fdfd8b8e3071fd5a0cc0eebd62b3e9e8b77d29c5e4e8d1e0297fc466cc7e0c49771750b609fff49516e2aa1499c198b SHA512 c3e89f02a22561b5446e1cc0f01be791767984b5791fe5bd362ec6128e2ba7b32e921f9ee719a80ace05f7f0c84a912731700b457761f64617c1415cd232c7da
22 DIST jedi-0.17.1.tar.gz 472489 BLAKE2B 7486925cb307f6a25538c2f5d52763802222561cfc4beca1637e433f4450b06ef328204e75779b6b2ac4ca2cfcf5ab647daecd329941ca6fb0ae2a5dd2bd8b5f SHA512 0a9d552d2b4c45730c9cccf06ebb434b159b755acea0dbaddf5f628dccf8e9c752e03d151258e377b817f1a25fb9ca8e0289dbd2da290f55dc719883413b65cf
23 DIST jedi-0.17.2.tar.gz 474372 BLAKE2B cd0bf217202e4413a7d4f1d4095fb22ad5c3de557993fd33e246a1fb516992a16a7382db9e18e0c0414ff5d927008c8148e9bbd8ee0dbd62368d01a31611c326 SHA512 cd96faa6f9cd6e8ad8b9a52ceaa6a84f30c8ced51b20d621932f0babf1b90bbc445fbe5ffd11a4f0e356bf20bdd1da756ccc3574e5fc978883de72dfdb519977
24 +DIST jedi-0.18.0.tar.gz 462786 BLAKE2B 35021ed1566fffc24056060f16b8a0aa6f8b6e382f716ff5978711fd66340e96f4e0b628463aadead5605db32cfc20df06a6c53a9b435658f1c455a6212da6e5 SHA512 fcee84496285a0b0b1cf1f3827593d0603bd87c84baf725cc7bdbf594979f49729b18a29b7465848413bdd3a5670fcc41187dd3eadbd9750d77788c5a9408dbf
25 DIST typeshed-jedi_v0.16.0.tar.gz 497407 BLAKE2B d322d70d3c46d1abcedddbd10aed5c6f213698f4e9f9aec1b4bd7e7186ab7ce384ec6a95d6adc46c7459e3bbb748d6ff432115cae744a315aed60972d2390eee SHA512 1551082938b52717f90e28ffd25e838ab04798ea86ea719fa35975a9de006bcc063a00cc8c8babd994990cdff694d48490f4d8c898c322666450d7ef3be8688a
26
27 diff --git a/dev-python/jedi/jedi-0.18.0.ebuild b/dev-python/jedi/jedi-0.18.0.ebuild
28 new file mode 100644
29 index 00000000000..f85ac8301b9
30 --- /dev/null
31 +++ b/dev-python/jedi/jedi-0.18.0.ebuild
32 @@ -0,0 +1,70 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6..9} )
39 +
40 +inherit distutils-r1
41 +
42 +TYPESHED_P="typeshed-jedi_v0.16.0"
43 +DJANGO_STUBS_P="django-stubs-v1.5.0"
44 +
45 +DESCRIPTION="Autocompletion library for Python"
46 +HOMEPAGE="https://github.com/davidhalter/jedi"
47 +SRC_URI="
48 + https://github.com/davidhalter/${PN}/archive/v${PV}.tar.gz
49 + -> ${P}.tar.gz
50 + https://github.com/davidhalter/typeshed/archive/${TYPESHED_P#typeshed-}.tar.gz
51 + -> ${TYPESHED_P}.tar.gz
52 + https://github.com/davidhalter/django-stubs/archive/${DJANGO_STUBS_P#django-stubs-}.tar.gz
53 + -> ${DJANGO_STUBS_P/v/}.tar.gz"
54 +
55 +LICENSE="MIT
56 + test? ( Apache-2.0 )"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
59 +
60 +RDEPEND="=dev-python/parso-0.8*[${PYTHON_USEDEP}]"
61 +
62 +distutils_enable_sphinx docs \
63 + dev-python/sphinx_rtd_theme
64 +distutils_enable_tests pytest
65 +
66 +python_prepare_all() {
67 + # upstream includes these as submodules ...
68 + rmdir "${S}"/jedi/third_party/{django-stubs,typeshed} || die
69 + mv "${WORKDIR}/${DJANGO_STUBS_P/v/}" \
70 + "${S}/jedi/third_party/django-stubs" || die
71 + mv "${WORKDIR}/${TYPESHED_P}" \
72 + "${S}/jedi/third_party/typeshed" || die
73 +
74 + # don't run doctests, don't depend on colorama
75 + sed -i "s:'docopt',:: ; s:'colorama',::" setup.py || die
76 + sed -i "s: --doctest-modules::" pytest.ini || die
77 +
78 + # test_complete_expanduser relies on $HOME not being empty
79 + > "${HOME}"/somefile || die
80 +
81 + # TODO: investigate
82 + sed -e 's:test_local_import:_&:' \
83 + -i test/test_utils.py || die
84 + sed -e '/with sqlite3\.connect/,+2d' \
85 + -i test/completion/stdlib.py || die
86 + rm test/completion/django.py || die
87 +
88 + # these tests fail with various pytest<->python version combinations
89 + rm test/completion/pytest.py || die
90 +
91 + # tests relying on pristine virtualenv
92 + # this relies on test* not matching anything else
93 + sed -e "/#\? \['test'\]/,+1d" \
94 + -i test/completion/on_import.py || die
95 + # this one's broken by 'path' module (dev-python/path-py)
96 + sed -e 's:test_os_issues:_&:' \
97 + -i test/test_inference/test_imports.py || die
98 + sed -e 's:test_venv_and_pths:_&:' \
99 + -i test/test_inference/test_sys_path.py || die
100 +
101 + distutils-r1_python_prepare_all
102 +}