Upload to PyPI

You can now install "nvr" via:

    pip3 install neovim-remote

References #8.
pull/14/head
Marco Hinz 8 years ago
parent f12722e8b3
commit c405bf48de

@ -24,18 +24,8 @@ call **nvr** from within Neovim (`:terminal`) without specifying `--servername`.
## Installation
Assuming `~/bin` is in your `$PATH`:
**1)** Install the Python provider for Neovim:
```
$ pip3 install neovim
```
**2a)** Using the git repo:
```
$ mkdir -p ~/github
$ git clone https://github.com/mhinz/neovim-remote.git ~/github/neovim-remote
$ ln -s ~/github/neovim-remote/nvr ~/bin/nvr
$ pip3 install neovim-remote
```
**2b)** Download the script directly:

@ -0,0 +1,16 @@
neovim-remote
=============
**nvr** is a tool that helps controlling nvim processes.
It basically does two things:
1. adds back the ``--remote`` family of options (see ``man vim``)
2. helps controlling the current nvim from within ``:terminal``
To target a certain nvim process, you either use the ``--servername`` option or
set the environment variable ``$NVIM_LISTEN_ADDRESS``.
Since ``$NVIM_LISTEN_ADDRESS`` is implicitely set by each nvim process, you can
call **nvr** from within Neovim (``:terminal``) without specifying
``--servername``.

@ -0,0 +1,5 @@
#!/usr/bin/env python3
from neovimremote import run
run()

@ -177,7 +177,7 @@ def open(n, filenames, cmd, async=False):
if c:
n.server.command(c)
def main():
def run():
args, unused = parse_args()
addr = os.environ.get('NVIM_LISTEN_ADDRESS')
@ -249,7 +249,3 @@ def main():
if args.c and n.attached():
for cmd in args.c:
n.server.command(cmd)
if __name__ == '__main__':
main()

@ -0,0 +1,35 @@
from setuptools import setup
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name = 'neovim-remote',
author = 'Marco Hinz',
author_email = 'mh.codebro@gmail.com',
url = 'https://github.com/mhinz/neovim-remote',
description = 'Control Neovim instances using "nvr" commandline tool',
long_description = long_description,
install_requires = ['neovim'],
scripts = ['bin/nvr'],
packages = ['neovimremote'],
version = '1.1',
license = 'MIT',
keywords = 'neovim nvim nvr remote helper',
classifiers = [
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)
Loading…
Cancel
Save