Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-neovim: update to 0.5.0.
@ 2023-12-10 14:31 dataCobra
  2023-12-12 15:05 ` [PR PATCH] [Merged]: " ahesford
  0 siblings, 1 reply; 2+ messages in thread
From: dataCobra @ 2023-12-10 14:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

There is a new pull request by dataCobra against master on the void-packages repository

https://github.com/dataCobra/void-packages python3-neovim
https://github.com/void-linux/void-packages/pull/47677

python3-neovim: update to 0.5.0.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686


A patch file from https://github.com/void-linux/void-packages/pull/47677.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-neovim-47677.patch --]
[-- Type: text/x-diff, Size: 4998 bytes --]

From 2b3ea9bd5a8749dacb052928468165d70c096fb4 Mon Sep 17 00:00:00 2001
From: dataCobra <datacobra@thinkbot.de>
Date: Sun, 10 Dec 2023 15:30:05 +0100
Subject: [PATCH] python3-neovim: update to 0.5.0.

---
 .../python3-neovim/patches/python3.12.patch   | 105 ------------------
 srcpkgs/python3-neovim/template               |   6 +-
 2 files changed, 3 insertions(+), 108 deletions(-)
 delete mode 100644 srcpkgs/python3-neovim/patches/python3.12.patch

diff --git a/srcpkgs/python3-neovim/patches/python3.12.patch b/srcpkgs/python3-neovim/patches/python3.12.patch
deleted file mode 100644
index 1e5c6c43dee3f..0000000000000
--- a/srcpkgs/python3-neovim/patches/python3.12.patch
+++ /dev/null
@@ -1,105 +0,0 @@
-backport of:
-https://github.com/neovim/pynvim/commit/eaa862dec340cad523a691d6441e890b800f8b65
-https://github.com/neovim/pynvim/commit/919217d9211adabd7fd57085657096a5060aece4
-https://github.com/neovim/pynvim/commit/dd540b08e1a13c89557aa91a122ca6fbc9dfe2ef
-
---- a/pynvim/compat.py
-+++ b/pynvim/compat.py
-@@ -2,7 +2,6 @@
- 
- import sys
- import warnings
--from imp import find_module as original_find_module
- 
- 
- IS_PYTHON3 = sys.version_info >= (3, 0)
-@@ -27,6 +26,8 @@
-                 else:
-                     newpath.append(element)
-             path = newpath
-+
-+        from imp import find_module as original_find_module
-         return original_find_module(fullname, path)
- 
-     # There is no 'long' type in Python3 just int
---- a/pynvim/plugin/script_host.py
-+++ b/pynvim/plugin/script_host.py
-@@ -1,5 +1,4 @@
- """Legacy python/python3-vim emulation."""
--import imp
- import io
- import logging
- import os
-@@ -214,6 +213,7 @@
-         return discover_runtime_directories(nvim)
- 
-     def _find_module(fullname, oldtail, path):
-+        import imp
-         idx = oldtail.find('.')
-         if idx > 0:
-             name = oldtail[:idx]
-@@ -234,6 +234,7 @@
-                 return sys.modules[fullname]
-             except KeyError:
-                 pass
-+            import imp
-             return imp.load_module(fullname, *self.module)
- 
-     class VimPathFinder(object):
---- a/pynvim/plugin/host.py
-+++ b/pynvim/plugin/host.py
-@@ -1,5 +1,4 @@
- """Implements a Nvim host for python plugins."""
--import imp
- import inspect
- import logging
- import os
-@@ -9,7 +8,7 @@
- from traceback import format_exc
- 
- from pynvim.api import decode_if_bytes, walk
--from pynvim.compat import IS_PYTHON3, find_module
-+from pynvim.compat import IS_PYTHON3
- from pynvim.msgpack_rpc import ErrorResponse
- from pynvim.plugin import script_host
- from pynvim.util import format_exc_skip, get_client_info
-@@ -23,6 +22,26 @@
- host_method_spec = {"poll": {}, "specs": {"nargs": 1}, "shutdown": {}}
- 
- 
-+def handle_import(directory, name):
-+    """Import a python file given a known location.
-+    Currently works on both python2 or 3.
-+    """
-+    try:  # Python3
-+        from importlib.util import module_from_spec, spec_from_file_location
-+    except ImportError:  # Python2.7
-+        import imp
-+        from pynvim.compat import find_module
-+        file, pathname, descr = find_module(name, [directory])
-+        module = imp.load_module(name, file, pathname, descr)
-+        return module
-+    else:
-+        spec = spec_from_file_location(name, location=directory)
-+        if spec is not None:
-+            return module_from_spec(spec)
-+        else:
-+            raise ImportError
-+
-+
- class Host(object):
- 
-     """Nvim host for python plugins.
-@@ -161,8 +180,10 @@
-                     has_script = True
-                 else:
-                     directory, name = os.path.split(os.path.splitext(path)[0])
--                    file, pathname, descr = find_module(name, [directory])
--                    module = imp.load_module(name, file, pathname, descr)
-+                    try:
-+                        module = handle_import(directory, name)
-+                    except ImportError:
-+                        return
-                 handlers = []
-                 self._discover_classes(module, handlers, path)
-                 self._discover_functions(module, handlers, path, False)
diff --git a/srcpkgs/python3-neovim/template b/srcpkgs/python3-neovim/template
index cb723c64cd164..be2fd507e9c50 100644
--- a/srcpkgs/python3-neovim/template
+++ b/srcpkgs/python3-neovim/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-neovim'
 pkgname=python3-neovim
-version=0.4.3
-revision=5
+version=0.5.0
+revision=1
 build_style="python3-module"
 hostmakedepends="python3-setuptools"
 depends="neovim python3-greenlet python3-msgpack"
@@ -10,4 +10,4 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="Apache-2.0"
 homepage="https://github.com/neovim/pynvim"
 distfiles="https://github.com/neovim/pynvim/archive/${version}.tar.gz"
-checksum=e7c9de44b0201ad874a608270b7a9b10fd48bda65f49bada05815d973ca79391
+checksum=448414e8d005b6d99868c8badeec7a20b10a7a37fb6b85fb12846b80c044c279

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: python3-neovim: update to 0.5.0.
  2023-12-10 14:31 [PR PATCH] python3-neovim: update to 0.5.0 dataCobra
@ 2023-12-12 15:05 ` ahesford
  0 siblings, 0 replies; 2+ messages in thread
From: ahesford @ 2023-12-12 15:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 446 bytes --]

There's a merged pull request on the void-packages repository

python3-neovim: update to 0.5.0.
https://github.com/void-linux/void-packages/pull/47677

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl
  - i686


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-12 15:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-10 14:31 [PR PATCH] python3-neovim: update to 0.5.0 dataCobra
2023-12-12 15:05 ` [PR PATCH] [Merged]: " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).