Hello community, here is the log from the commit of package python-neovim for openSUSE:Factory checked in at 2017-05-10 20:53:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-neovim (Old) and /work/SRC/openSUSE:Factory/.python-neovim.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-neovim" Wed May 10 20:53:05 2017 rev:7 rq:493813 version:0.1.13 Changes: -------- --- /work/SRC/openSUSE:Factory/python-neovim/python-neovim.changes 2016-11-18 22:02:26.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-neovim.new/python-neovim.changes 2017-05-10 20:53:10.096404441 +0200 @@ -1,0 +2,24 @@ +Tue May 9 16:55:41 UTC 2017 - ronisbr@gmail.com + +- Run spec-cleaner. +- Version bump to 0.1.13. + Upstream changelog: + + Version 0.1.13 + + * 549f721 Fix spawning a child on python 3.6 + * 171d137 Conform to pyuv 1.0 API + * 99a2150 use tox for testing and add python 3.6 to test matrix + +------------------------------------------------------------------- +Fri Dec 2 18:16:22 UTC 2016 - ronisbr@gmail.com + +- Version bump to 0.1.12. + Upstream changelog: + + Version 0.1.12 + + * 317abda export Object.handle and make Buffer.number + non-blocking + +------------------------------------------------------------------- python3-neovim.changes: same change Old: ---- python-client-0.1.11.tar.gz New: ---- python-client-0.1.13.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-neovim.spec ++++++ --- /var/tmp/diff_new_pack.Aq8ymN/_old 2017-05-10 20:53:10.932286488 +0200 +++ /var/tmp/diff_new_pack.Aq8ymN/_new 2017-05-10 20:53:10.936285924 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-neovim # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-neovim -Version: 0.1.11 +Version: 0.1.13 Release: 0 Summary: Python 2 client to Neovim License: Apache-2.0 python3-neovim.spec: same change ++++++ python-client-0.1.11.tar.gz -> python-client-0.1.13.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/.gitignore new/python-client-0.1.13/.gitignore --- old/python-client-0.1.11/.gitignore 2016-11-08 16:07:50.000000000 +0100 +++ new/python-client-0.1.13/.gitignore 2017-01-12 15:04:10.000000000 +0100 @@ -5,3 +5,6 @@ build/ dist/ *.pyc +.cache +.eggs +.tox diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/.travis.yml new/python-client-0.1.13/.travis.yml --- old/python-client-0.1.11/.travis.yml 2016-11-08 16:07:50.000000000 +0100 +++ new/python-client-0.1.13/.travis.yml 2017-01-12 15:04:10.000000000 +0100 @@ -10,9 +10,7 @@ - CI_TARGET=tests matrix: include: - - python: 2.7 - env: CI_TARGET=flake - - python: 3.4 + - python: 3.6 env: CI_TARGET=flake python: # If the build matrix gets bigger, also update the number of runs @@ -21,11 +19,12 @@ - 3.3 - 3.4 - 3.5 + - 3.6 - pypy before_install: - if [ $CI_TARGET = tests ]; then eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup....) nightly-x64"; - pip install -q scrutinizer-ocular; + pip install -q scrutinizer-ocular tox-travis; else pip install -q flake8 flake8-import-order flake8-docstrings pep8-naming; fi @@ -33,7 +32,7 @@ - pip install . script: - if [ $CI_TARGET = tests ]; then - nosetests; + tox; else flake8 neovim; fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/neovim/__init__.py new/python-client-0.1.13/neovim/__init__.py --- old/python-client-0.1.11/neovim/__init__.py 2016-11-08 16:07:50.000000000 +0100 +++ new/python-client-0.1.13/neovim/__init__.py 2017-01-12 15:04:10.000000000 +0100 @@ -21,7 +21,7 @@ 'shutdown_hook', 'attach', 'setup_logging', 'ErrorResponse') -VERSION = Version(major=0, minor=1, patch=11, prerelease="dev") +VERSION = Version(major=0, minor=1, patch=13, prerelease="") def start_host(session=None): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/neovim/api/buffer.py new/python-client-0.1.13/neovim/api/buffer.py --- old/python-client-0.1.11/neovim/api/buffer.py 2016-11-08 16:07:50.000000000 +0100 +++ new/python-client-0.1.13/neovim/api/buffer.py 2017-01-12 15:04:10.000000000 +0100 @@ -128,7 +128,7 @@ @property def number(self): """Get the buffer number.""" - return self.request('nvim_buf_get_number') + return self.handle class Range(object): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/neovim/api/common.py new/python-client-0.1.13/neovim/api/common.py --- old/python-client-0.1.11/neovim/api/common.py 2016-11-08 16:07:50.000000000 +0100 +++ new/python-client-0.1.13/neovim/api/common.py 2017-01-12 15:04:10.000000000 +0100 @@ -1,6 +1,8 @@ """Code shared between the API classes.""" import functools +from msgpack import unpackb + from ..compat import unicode_errors_default @@ -21,6 +23,7 @@ """ self._session = session self.code_data = code_data + self.handle = unpackb(code_data[1]) self.api = RemoteApi(self, self._api_prefix) self.vars = RemoteMap(self, self._api_prefix + 'get_var', self._api_prefix + 'set_var') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/neovim/msgpack_rpc/event_loop/asyncio.py new/python-client-0.1.13/neovim/msgpack_rpc/event_loop/asyncio.py --- old/python-client-0.1.11/neovim/msgpack_rpc/event_loop/asyncio.py 2016-11-08 16:07:50.000000000 +0100 +++ new/python-client-0.1.13/neovim/msgpack_rpc/event_loop/asyncio.py 2017-01-12 15:04:10.000000000 +0100 @@ -93,6 +93,8 @@ 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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/neovim/msgpack_rpc/event_loop/uv.py new/python-client-0.1.13/neovim/msgpack_rpc/event_loop/uv.py --- old/python-client-0.1.11/neovim/msgpack_rpc/event_loop/uv.py 2016-11-08 16:07:50.000000000 +0100 +++ new/python-client-0.1.13/neovim/msgpack_rpc/event_loop/uv.py 2017-01-12 15:04:10.000000000 +0100 @@ -73,12 +73,11 @@ 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 -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/setup.py new/python-client-0.1.13/setup.py --- old/python-client-0.1.11/setup.py 2016-11-08 16:07:50.000000000 +0100 +++ new/python-client-0.1.13/setup.py 2017-01-12 15:04:10.000000000 +0100 @@ -7,9 +7,12 @@ 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 @@ install_requires.append('greenlet') setup(name='neovim', - version='0.1.11', + 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.10.tar.gz', + download_url='https://github.com/neovim/python-client/archive/0.1.13.tar.gz', author='Thiago de Arruda', author_email='tpadilha84@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) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/test/test_window.py new/python-client-0.1.13/test/test_window.py --- old/python-client-0.1.11/test/test_window.py 2016-11-08 16:07:50.000000000 +0100 +++ new/python-client-0.1.13/test/test_window.py 2017-01-12 15:04:10.000000000 +0100 @@ -103,3 +103,17 @@ eq(vim.current.window.number, curnum + 1) vim.command('bot split') eq(vim.current.window.number, curnum + 2) + + +@with_setup(setup=cleanup) +def test_handle(): + hnd1 = vim.current.window.handle + vim.command('bot split') + hnd2 = vim.current.window.handle + ok(hnd2 != hnd1) + vim.command('bot split') + hnd3 = vim.current.window.handle + ok(hnd3 != hnd1) + ok(hnd3 != hnd2) + vim.command('wincmd w') + eq(vim.current.window.handle,hnd1) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-client-0.1.11/tox.ini new/python-client-0.1.13/tox.ini --- old/python-client-0.1.11/tox.ini 1970-01-01 01:00:00.000000000 +0100 +++ new/python-client-0.1.13/tox.ini 2017-01-12 15:04:10.000000000 +0100 @@ -0,0 +1,7 @@ +[tox] +envlist = py{27,33,34,35,36}-{asyncio,pyuv},pypy +[testenv] +deps= + nose + pyuv: pyuv +commands=nosetests