Hi,
On Tue, Dec 05, 2023 at 06:59:08PM +0100, Justin Berthault wrote:
> Update for py-neovim to 0.5.0
A few tweaks from me:
- py3-exceptiongroup doesn't appear to be needed. Tests pass without it, and
grepping the sources for it shows up nothing. Correct me if I'm wrong.
- Since the tests all pass now, remove the comment about test failures.
Will commit tomorrow unless anyone objects.
Index: Makefile
===================================================================
RCS file: /cvs/ports/editors/py-neovim/Makefile,v
diff -u -p -r1.18 Makefile
--- Makefile 26 Nov 2022 23:28:13 -0000 1.18
+++ Makefile 6 Dec 2023 20:18:13 -0000
@@ -1,9 +1,8 @@
COMMENT = Python plugin support for Neovim
-MODPY_EGG_VERSION = 0.4.3
+MODPY_EGG_VERSION = 0.5.0
DISTNAME = pynvim-${MODPY_EGG_VERSION}
PKGNAME = py-neovim-${MODPY_EGG_VERSION}
-REVISION = 3
CATEGORIES = editors devel
HOMEPAGE = https://github.com/neovim/pynvim
@@ -26,11 +25,6 @@ RUN_DEPENDS = net/py-msgpack${MODPY_FLA
devel/py-greenlet${MODPY_FLAVOR}
TEST_DEPENDS = editors/neovim
-# You may need to increase the file descriptor ulimits to run tests.
-#
-# Test suite hangs if $HOME isn't valid.
-#
-# Some failures:
-# https://github.com/neovim/pynvim/issues/416
+# Note: You may need to increase the file descriptor ulimits to run tests.
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/editors/py-neovim/distinfo,v
diff -u -p -r1.7 distinfo
--- distinfo 18 Jul 2021 09:20:57 -0000 1.7
+++ distinfo 6 Dec 2023 20:09:56 -0000
@@ -1,2 +1,2 @@
-SHA256 (pynvim-0.4.3.tar.gz) = OnlTeL3l6AkvvrOhqZvpxhPSaFVC8dsOXG/UZ+7Vbf8=
-SIZE (pynvim-0.4.3.tar.gz) = 56239
+SHA256 (pynvim-0.5.0.tar.gz) = 6AoR9vXRlMake+pBNbkLVfrKJNo1RNp89KX3uo+wkhU=
+SIZE (pynvim-0.5.0.tar.gz) = 47584
Index: patches/patch-test_conftest_py
===================================================================
RCS file: patches/patch-test_conftest_py
diff -N patches/patch-test_conftest_py
--- patches/patch-test_conftest_py 11 Mar 2022 18:58:33 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,81 +0,0 @@
-Although this file is present in the upstream source tree, it was not
-included when the release tarball was created. This file is needed to
-run unit tests and was copied from the release tag matching this
-version.
-
-Index: test/conftest.py
---- test/conftest.py.orig
-+++ test/conftest.py
-@@ -1,5 +1,72 @@
- import json
- import os
-+import textwrap
-+
-+import pynvim
-+import pytest
-+
-+pynvim.setup_logging("test")
-+
-+
[email protected](autouse=True)
-+def cleanup_func(vim):
-+ fun = textwrap.dedent('''function! BeforeEachTest()
-+ set all&
-+ redir => groups
-+ silent augroup
-+ redir END
-+ for group in split(groups)
-+ exe 'augroup '.group
-+ autocmd!
-+ augroup END
-+ endfor
-+ autocmd!
-+ tabnew
-+ let curbufnum = eval(bufnr('%'))
-+ redir => buflist
-+ silent ls!
-+ redir END
-+ let bufnums = []
-+ for buf in split(buflist, '\\n')
-+ let bufnum = eval(split(buf, '[ u]')[0])
-+ if bufnum != curbufnum
-+ call add(bufnums, bufnum)
-+ endif
-+ endfor
-+ if len(bufnums) > 0
-+ exe 'silent bwipeout! '.join(bufnums, ' ')
-+ endif
-+ silent tabonly
-+ for k in keys(g:)
-+ exe 'unlet g:'.k
-+ endfor
-+ filetype plugin indent off
-+ mapclear
-+ mapclear!
-+ abclear
-+ comclear
-+ endfunction
-+ ''')
-+ vim.command(fun)
-+ vim.command('call BeforeEachTest()')
-+ assert len(vim.tabpages) == len(vim.windows) == len(vim.buffers) == 1
-+
-+
[email protected]
-+def vim():
-+ child_argv = os.environ.get('NVIM_CHILD_ARGV')
-+ listen_address = os.environ.get('NVIM_LISTEN_ADDRESS')
-+ if child_argv is None and listen_address is None:
-+ child_argv = '["nvim", "-u", "NONE", "--embed"]'
-+
-+ if child_argv is not None:
-+ editor = pynvim.attach('child', argv=json.loads(child_argv))
-+ else:
-+ editor = pynvim.attach('socket', path=listen_address)
-+
-+ return editor
-+import json
-+import os
-
- import pytest
-
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/editors/py-neovim/pkg/PLIST,v
diff -u -p -r1.6 PLIST
--- pkg/PLIST 11 Mar 2022 18:58:33 -0000 1.6
+++ pkg/PLIST 6 Dec 2023 20:09:56 -0000
@@ -13,14 +13,15 @@ lib/python${MODPY_VERSION}/site-packages
lib/python${MODPY_VERSION}/site-packages/pynvim-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/pynvim-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/pynvim-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
-lib/python${MODPY_VERSION}/site-packages/pynvim-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
lib/python${MODPY_VERSION}/site-packages/pynvim-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/pynvim-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/pynvim/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pynvim/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pynvim/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/pynvim/${MODPY_PYCACHE}_version.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pynvim/${MODPY_PYCACHE}compat.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pynvim/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/pynvim/_version.py
lib/python${MODPY_VERSION}/site-packages/pynvim/api/
lib/python${MODPY_VERSION}/site-packages/pynvim/api/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pynvim/api/${MODPY_PYCACHE}/
--
Best Regards
Edd Barrett
https://www.theunixzoo.co.uk