forked from nkmathew/yasi-sexp-indenter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (51 loc) · 1.85 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Setup for yasi """
import io
import sys
import ast
import setuptools
README = ''
with io.open('README.rst') as f:
README = f.read()
DEPS = ['colorama'] + (['argparse'] if sys.version_info < (2, 7) else [])
def version():
"""Return version string."""
with io.open('yasi.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
setuptools.setup(
name='yasi',
version=version(),
description='A dialect aware s-expression indenter',
long_description=README,
author="Mathew Ng'etich",
author_email='[email protected]',
download_url="https://github.com/nkmathew/yasi-sexp-indenter/zipball/master",
url='https://github.com/nkmathew/yasi-sexp-indenter',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
"License :: OSI Approved",
"License :: OSI Approved :: MIT License",
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Quality Assurance',
],
keywords='scheme, formatter, newlisp, beautifier, clojure, lisp, indenter',
test_suite='test.test_yasi',
py_modules=['yasi'],
install_requires=DEPS,
entry_points={'console_scripts': ['yasi = yasi:main']}
)