/
setup.py
70 lines (61 loc) · 1.92 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
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
import os.path
from setuptools import setup, find_packages
install_requires = [
'PyYAML~=3.11',
'ansicolor~=0.2.4',
'chardet>=2.3.0',
'setuptools>=36.2.2', # for enhanced marker support (used below).
'enum34>=1.0.4;python_version<"3.4"',
'pathlib==1.0.1;python_version<"3.4"',
'typing>=3.6.2;python_version<"3.6"',
]
test_requires = [
'pytest==3.6.3',
'pytest-cov==2.5.1',
'coverage==4.5.1',
'mock==1.0.1;python_version<"3.3"',
]
def get_version():
vint_root = os.path.dirname(__file__)
version_file = open(os.path.join(vint_root, 'VERSION.txt'))
return version_file.read().strip()
VERSION = get_version()
setup(
name='vim-vint',
version=VERSION,
description='Lint tool for Vim script Language',
author='Kuniwak',
author_email='orga.chem.job+vint@gmail.com',
url='https://github.com/Kuniwak/vint',
download_url='https://github.com/Kuniwak/vint/archive/v{version}.tar.gz'.format(version=VERSION), # noqa: E501
install_requires=install_requires,
tests_require=test_requires,
extras_require={
'testing': test_requires,
},
packages=find_packages(exclude=['dev_tool', 'test*']),
package_data={
'vint': [
'asset/default_config.yaml',
'asset/void_config.yaml',
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Topic :: Software Development :: Quality Assurance',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Text Editors',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
],
entry_points={
'console_scripts': [
'vint = vint:main',
],
},
)