diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-01-27 17:19:19 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-01-29 08:14:03 +0200 |
commit | 1ca265ad84848a4651736ab53dbd8dc642a78248 (patch) | |
tree | 2338f1aa1e37364fe7e8054071c7131d1e15aa3a /dev-python/jedi | |
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')
-rw-r--r-- | dev-python/jedi/Manifest | 1 | ||||
-rw-r--r-- | dev-python/jedi/jedi-0.14.1.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-python/jedi/Manifest b/dev-python/jedi/Manifest index 4960101dd427..94d45257b3f0 100644 --- a/dev-python/jedi/Manifest +++ b/dev-python/jedi/Manifest @@ -2,5 +2,6 @@ DIST jedi-0.10.2.tar.gz 373879 BLAKE2B 8007b31dc6c96d9538ab141b976fd4554ea16f01b DIST jedi-0.11.1.tar.gz 332402 BLAKE2B bc0a8df89c3d8b6cccc387a22cc08f613c990c59e360c58ae1d2becf521a755892afa4972195f6e40ec3bb48b74b20a966034d0e5bcad5051f90e5b4cc082270 SHA512 61389704a318f89d12b053b786bfb6bda21d2696830c001d6d6e66191fc060d731bc05ea71f2e70725532dcbe109c5c7346a36d227e6f8ab0eb2512f4c1a8945 DIST jedi-0.12.0.tar.gz 354329 BLAKE2B ef203f2ba57a90de1e16b80c8786fa25d6d459244873dfb22044aa6d080435efa976daeb80949c3fba41ca2f57feb5bfed255b3bb490e17b40b3f13dfbb31e14 SHA512 3e8280b16855cf2c891666f0fb02ac30d801279b72b5bcb64541ef7c152d9f9b165015405ee291cbccd6c9cb3c0481c24f30e6100cb4463888153021b946f16d DIST jedi-0.12.1.tar.gz 356736 BLAKE2B 515cbc27e065c24fb2cebae5a3807d2e025f22110f3de60d26a74475eadc985bb32bea60b691c580473fffe2fdfc86705187dea1fb730ef3f510b7bdb52e0d59 SHA512 92f9ac34abf908a8143dff360400dd8d6643dc3502bb7973f92bd05db94c2af151c2063f2de0481a14e26d11c009cc39c46189e1ea31d274b80802e3a10cd665 +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 typeshed-jedi_v0.15.0.tar.gz 466890 BLAKE2B 7c4956c60646ecb7f21704e3ce95cd38a44e40849e4efba352a0be11c4511fc28d77f32308a3f136cd72833f937f802194ae57f1cdf1d53ae7824ebe4f4bc323 SHA512 46250822eb4aa20203db9b99626e33f2b60ec77072e20dbd94219d782cf204e2cc5a94579b1753c634f931445ad4ef9f0bd7ccfed287d86bca96b945d2eb27c1 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}" +} |