Skip to content

Commit 9f30572

Browse files
committed
Python-client 0.2.2
In this release support of python3.3 is dropped. Henceforth we want python3 rplugins to be able to assume the usage of asyncio, so they can use the asyncio event loop and libraries that build on it. Furthermore, a close() method is added on nvim session objects. When used as a library for externally connecting to a nvim instance (i e not rplugins), it is recommended to call the close() method on the session object when it is not needed anymore. Alternatively, sessions can be used as a context manager: with neovim.attach('socket', path=thepath) as nvim: # do stuff with nvim session in this block: print(nvim.funcs.getpid()) print(nvim.current.line) This will close the session automatically. Changes since 0.2.1: * 2689ddc add tests for plugin decorators #298 * 63f257f allow library users to properly cleanup the event loop #303 * 59c184f expose the asyncio event loop as nvim.loop (python 3.4+ only) #294
1 parent 9c934f3 commit 9f30572

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

neovim/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'shutdown_hook', 'attach', 'setup_logging', 'ErrorResponse')
2222

2323

24-
VERSION = Version(major=0, minor=2, patch=2, prerelease='dev')
24+
VERSION = Version(major=0, minor=2, patch=2, prerelease='')
2525

2626

2727
def start_host(session=None):

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
install_requires.append('greenlet')
2121

2222
setup(name='neovim',
23-
version='0.2.2dev',
23+
version='0.2.2',
2424
description='Python client to neovim',
2525
url='http://github.com/neovim/python-client',
26-
download_url='https://github.com/neovim/python-client/archive/0.2.1.tar.gz',
26+
download_url='https://github.com/neovim/python-client/archive/0.2.2.tar.gz',
2727
author='Thiago de Arruda',
2828
author_email='tpadilha84@gmail.com',
2929
license='Apache',

0 commit comments

Comments
 (0)