summaryrefslogtreecommitdiff
path: root/app-vim
diff options
context:
space:
mode:
Diffstat (limited to 'app-vim')
-rw-r--r--app-vim/jedi/files/jedi-0.11.2-remove-unreasonable-test.patch33
-rw-r--r--app-vim/jedi/jedi-0.11.2.ebuild14
2 files changed, 41 insertions, 6 deletions
diff --git a/app-vim/jedi/files/jedi-0.11.2-remove-unreasonable-test.patch b/app-vim/jedi/files/jedi-0.11.2-remove-unreasonable-test.patch
new file mode 100644
index 000000000000..9a676d4ba218
--- /dev/null
+++ b/app-vim/jedi/files/jedi-0.11.2-remove-unreasonable-test.patch
@@ -0,0 +1,33 @@
+From 382d8a48d0e0b4d5ff8687dfa5b7d689f906999a Mon Sep 17 00:00:00 2001
+From: Dave Halter <davidhalter88@gmail.com>
+Date: Fri, 27 Dec 2024 23:10:27 +0100
+Subject: [PATCH] Remove a test that failed for no apparent reason
+
+---
+ test/vspec/completions.vim | 13 -------------
+ 1 file changed, 13 deletions(-)
+
+diff --git a/test/vspec/completions.vim b/test/vspec/completions.vim
+index 068e5392..5a9a3050 100644
+--- a/test/vspec/completions.vim
++++ b/test/vspec/completions.vim
+@@ -52,19 +52,6 @@ describe 'completions'
+ Expect getline('.') == 'IndentationError().filename'
+ end
+
+- it 'multi complete'
+- " NOTE: nvim results in "importErr()" here with completeopt+=longest,
+- " but Vim is fine.
+- " This is due to `pumvisible()` in jedi#complete_opened being true
+- " with nvim still, but it is 0 with Vim, i.e. Vim appears to close
+- " the pum already (with the tests).
+- "
+- " This might be a misunderstanding though, since the test might not
+- " expect the "import" keyword to be offered for completion?!
+- normal oImpXErrX()
+- Expect getline('.') == 'ImportError()'
+- end
+-
+ it 'cycling through entries popup_select_first=0'
+ set completeopt+=longest
+ let g:jedi#popup_select_first = 0
diff --git a/app-vim/jedi/jedi-0.11.2.ebuild b/app-vim/jedi/jedi-0.11.2.ebuild
index e86975f33653..f03122e45099 100644
--- a/app-vim/jedi/jedi-0.11.2.ebuild
+++ b/app-vim/jedi/jedi-0.11.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+PYTHON_COMPAT=( python3_{11..14} )
inherit edo vim-plugin python-single-r1
MY_PN="${PN}-vim"
@@ -35,15 +35,17 @@ BDEPEND="
DOCS=( AUTHORS.txt CONTRIBUTING.md README.rst )
+PATCHES=(
+ # https://github.com/davidhalter/jedi-vim/pull/1131
+ # Seemingly fallout from jedi/parso update
+ "${FILESDIR}"/${P}-remove-unreasonable-test.patch
+)
+
src_prepare() {
vim-plugin_src_prepare
rm doc/logotype-a.svg || die
rmdir pythonx/{jedi,parso} || die
-
- # Disable failing tests
- sed -i test/vspec/signatures.vim \
- -e "/it 'highlights correct argument'/a SKIP 'fail'" || die
}
# Makefile tries hard to call tests so let's silence this phase.