-
Notifications
You must be signed in to change notification settings - Fork 120
/
setup.py
61 lines (48 loc) · 1.45 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
"""setup.py for pynvim."""
import os.path
import platform
import sys
__PATH__ = os.path.abspath(os.path.dirname(__file__))
from setuptools import setup
install_requires = [
'msgpack>=0.5.0',
'greenlet>=3.0; python_implementation != "PyPy"',
'typing-extensions>=4.5; python_version < "3.12"',
]
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
setup_requires = [
]
tests_require = [
'pytest',
'pytest_timeout',
]
docs_require = [
'sphinx',
'sphinx-rtd-theme',
]
extras_require = {
'test': tests_require,
'docs': docs_require,
}
# __version__: see pynvim/_version.py
with open(os.path.join(__PATH__, "pynvim/_version.py"),
"r", encoding="utf-8") as fp:
_version_env = {}
exec(fp.read(), _version_env) # pylint: disable=exec-used
version = _version_env['__version__']
setup(name='pynvim',
version=version,
description='Python client for Neovim',
url='http://github.com/neovim/pynvim',
download_url=f'https://github.com/neovim/pynvim/archive/{version}.tar.gz',
author='Neovim Authors',
license='Apache',
packages=['pynvim', 'pynvim.api', 'pynvim.msgpack_rpc',
'pynvim.msgpack_rpc.event_loop', 'pynvim.plugin',
'neovim', 'neovim.api'],
python_requires=">=3.7",
install_requires=install_requires,
setup_requires=setup_requires,
tests_require=tests_require,
extras_require=extras_require,
)