-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
66 lines (57 loc) · 1.96 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
#!/usr/bin/env python3.4
import sys
if '3.4' not in sys.version.split()[0]:
print("Needs python 3.4")
sys.exit(0)
import os
import codecs
import re
from setuptools import setup, find_packages
base_dir = os.path.abspath(os.path.dirname(__file__))
def find_version(*file_paths):
# Open in Latin-1 so that we avoid encoding errors.
# Use codecs.open for Python 2 compatibility
with codecs.open(os.path.join(base_dir, *file_paths), 'r', 'latin1') as f:
version_file = f.read()
# The version line must have the form
# __version__ = 'ver'
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
# Get the long description from the relevant file
with codecs.open('DESCRIPTION.rst', encoding='utf-8') as f:
long_description = f.read()
setup(
name = "vai",
version = find_version("vai", "__init__.py"),
author = "Stefano Borini",
author_email = "[email protected]",
description = "VAI is a console-based IDE similar to VIM",
license = "BSD",
keywords = "editor",
url="https://github.com/stefanoborini/vai",
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
long_description=long_description,
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Text Editors",
"License :: OSI Approved :: BSD License",
'Intended Audience :: Developers',
'Programming Language :: Python :: 3.4',
],
test_suite = 'nose.collector',
install_requires = ['pygments==2.0.1',
"pylint==1.3.0",
'pyflakes==0.8.1',
'yapsy==1.10.423',
"vaitk==1.7"],
entry_points={
'console_scripts': [
'vai_exec=vai:main',
],
},
scripts=['bin/vai'],
zip_safe=False,
)