[Python-modules-commits] [python-neovim] 01/03: Import python-neovim_0.1.13.orig.tar.gz

Víctor Cuadrado Juan viccuad-guest at moszumanska.debian.org
Sat Jan 28 19:11:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

viccuad-guest pushed a commit to branch master
in repository python-neovim.

commit c3a62bf80a4f21a4ab58c6a753acfae3bdf06022
Author: Víctor Cuadrado Juan <me at viccuad.me>
Date:   Sat Jan 28 20:07:35 2017 +0100

    Import python-neovim_0.1.13.orig.tar.gz
---
 PKG-INFO                                 |  4 ++--
 neovim.egg-info/PKG-INFO                 |  4 ++--
 neovim.egg-info/requires.txt             |  3 +++
 neovim/__init__.py                       |  2 +-
 neovim/msgpack_rpc/event_loop/asyncio.py |  2 ++
 neovim/msgpack_rpc/event_loop/uv.py      | 11 +++++------
 setup.py                                 | 10 +++++++---
 7 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index a868801..15b8bfc 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,11 +1,11 @@
 Metadata-Version: 1.1
 Name: neovim
-Version: 0.1.12
+Version: 0.1.13
 Summary: Python client to neovim
 Home-page: http://github.com/neovim/python-client
 Author: Thiago de Arruda
 Author-email: tpadilha84 at gmail.com
 License: Apache
-Download-URL: https://github.com/neovim/python-client/archive/0.1.12.tar.gz
+Download-URL: https://github.com/neovim/python-client/archive/0.1.13.tar.gz
 Description: UNKNOWN
 Platform: UNKNOWN
diff --git a/neovim.egg-info/PKG-INFO b/neovim.egg-info/PKG-INFO
index a868801..15b8bfc 100644
--- a/neovim.egg-info/PKG-INFO
+++ b/neovim.egg-info/PKG-INFO
@@ -1,11 +1,11 @@
 Metadata-Version: 1.1
 Name: neovim
-Version: 0.1.12
+Version: 0.1.13
 Summary: Python client to neovim
 Home-page: http://github.com/neovim/python-client
 Author: Thiago de Arruda
 Author-email: tpadilha84 at gmail.com
 License: Apache
-Download-URL: https://github.com/neovim/python-client/archive/0.1.12.tar.gz
+Download-URL: https://github.com/neovim/python-client/archive/0.1.13.tar.gz
 Description: UNKNOWN
 Platform: UNKNOWN
diff --git a/neovim.egg-info/requires.txt b/neovim.egg-info/requires.txt
index d96c04d..b1d4264 100644
--- a/neovim.egg-info/requires.txt
+++ b/neovim.egg-info/requires.txt
@@ -1,2 +1,5 @@
 msgpack-python>=0.4.0
 greenlet
+
+[pyuv]
+pyuv>=1.0.0
diff --git a/neovim/__init__.py b/neovim/__init__.py
index 4e49af1..010b5b4 100644
--- a/neovim/__init__.py
+++ b/neovim/__init__.py
@@ -21,7 +21,7 @@ __all__ = ('tcp_session', 'socket_session', 'stdio_session', 'child_session',
            'shutdown_hook', 'attach', 'setup_logging', 'ErrorResponse')
 
 
-VERSION = Version(major=0, minor=1, patch=12, prerelease="")
+VERSION = Version(major=0, minor=1, patch=13, prerelease="")
 
 
 def start_host(session=None):
diff --git a/neovim/msgpack_rpc/event_loop/asyncio.py b/neovim/msgpack_rpc/event_loop/asyncio.py
index 1b28135..b2ea77b 100644
--- a/neovim/msgpack_rpc/event_loop/asyncio.py
+++ b/neovim/msgpack_rpc/event_loop/asyncio.py
@@ -93,6 +93,8 @@ class AsyncioEventLoop(BaseEventLoop, asyncio.Protocol,
         self._loop.run_until_complete(coroutine)
 
     def _connect_child(self, argv):
+        self._child_watcher = asyncio.get_child_watcher()
+        self._child_watcher.attach_loop(self._loop)
         coroutine = self._loop.subprocess_exec(self._fact, *argv)
         self._loop.run_until_complete(coroutine)
 
diff --git a/neovim/msgpack_rpc/event_loop/uv.py b/neovim/msgpack_rpc/event_loop/uv.py
index 449d28e..6a912c2 100644
--- a/neovim/msgpack_rpc/event_loop/uv.py
+++ b/neovim/msgpack_rpc/event_loop/uv.py
@@ -73,12 +73,11 @@ class UvEventLoop(BaseEventLoop):
                             flags=pyuv.UV_CREATE_PIPE + pyuv.UV_WRITABLE_PIPE)
         stderr = pyuv.StdIO(self._error_stream,
                             flags=pyuv.UV_CREATE_PIPE + pyuv.UV_WRITABLE_PIPE)
-        self._process = pyuv.Process(self._loop)
-        self._process.spawn(file=argv[0],
-                            exit_callback=self._on_exit,
-                            args=argv[1:],
-                            flags=pyuv.UV_PROCESS_WINDOWS_HIDE,
-                            stdio=(stdin, stdout, stderr,))
+        pyuv.Process.spawn(self._loop,
+                           args=argv,
+                           exit_callback=self._on_exit,
+                           flags=pyuv.UV_PROCESS_WINDOWS_HIDE,
+                           stdio=(stdin, stdout, stderr,))
         self._error_stream.start_read(self._on_read)
 
     def _start_reading(self):
diff --git a/setup.py b/setup.py
index 9d8b87f..caa6a77 100644
--- a/setup.py
+++ b/setup.py
@@ -7,9 +7,12 @@ from setuptools import setup
 install_requires = [
     'msgpack-python>=0.4.0',
 ]
+extras_require = {
+    'pyuv': ['pyuv>=1.0.0'],
+}
 
 if os.name == 'nt':
-    install_requires.append('pyuv')
+    install_requires.append('pyuv>=1.0.0')
 elif sys.version_info < (3, 4):
     # trollius is just a backport of 3.4 asyncio module
     install_requires.append('trollius')
@@ -19,14 +22,15 @@ if platform.python_implementation() != 'PyPy':
     install_requires.append('greenlet')
 
 setup(name='neovim',
-      version='0.1.12',
+      version='0.1.13',
       description='Python client to neovim',
       url='http://github.com/neovim/python-client',
-      download_url='https://github.com/neovim/python-client/archive/0.1.12.tar.gz',
+      download_url='https://github.com/neovim/python-client/archive/0.1.13.tar.gz',
       author='Thiago de Arruda',
       author_email='tpadilha84 at gmail.com',
       license='Apache',
       packages=['neovim', 'neovim.api', 'neovim.msgpack_rpc',
                 'neovim.msgpack_rpc.event_loop', 'neovim.plugin'],
       install_requires=install_requires,
+      extras_require=extras_require,
       zip_safe=False)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-neovim.git



More information about the Python-modules-commits mailing list