Skip to content

Commit

Permalink
Python-client 0.2.2
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bfredl committed Mar 1, 2018
1 parent 9c934f3 commit 9f30572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion neovim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'shutdown_hook', 'attach', 'setup_logging', 'ErrorResponse')


VERSION = Version(major=0, minor=2, patch=2, prerelease='dev')
VERSION = Version(major=0, minor=2, patch=2, prerelease='')


def start_host(session=None):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
install_requires.append('greenlet')

setup(name='neovim',
version='0.2.2dev',
version='0.2.2',
description='Python client to neovim',
url='http://github.com/neovim/python-client',
download_url='https://github.com/neovim/python-client/archive/0.2.1.tar.gz',
download_url='https://github.com/neovim/python-client/archive/0.2.2.tar.gz',
author='Thiago de Arruda',
author_email='[email protected]',
license='Apache',
Expand Down

0 comments on commit 9f30572

Please sign in to comment.