forked from terryyin/lizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (48 loc) · 2 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
'''
Setup script.
To install lizard:
[sudo] python setup.py install
'''
import lizard
from setuptools import setup, find_packages
import os
def install(appname):
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as fobj:
readme = fobj.read()
setup(
name = appname,
version = lizard.VERSION,
description = ''' A code analyzer without caring the C/C++ header files.
It works with Java, C/C++, JavaScript, Python, Objective C. Metrics includes cyclomatic complexity number etc.''',
long_description = readme,
url = 'http://www.lizard.ws',
download_url='https://pypi.python.org/lizard/',
license='MIT',
platforms='any',
classifiers = ['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: Freeware',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Topic :: Software Development :: Quality Assurance',
'Programming Language :: C',
'Programming Language :: C++',
'Programming Language :: Java',
'Programming Language :: JavaScript',
'Programming Language :: Objective C',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3'],
packages = ['lizard_ext'],
py_modules = ['lizard'],
author = 'Terry Yin',
author_email = '[email protected]',
scripts = ['lizard.bat', 'lizard', 'hfcca.bat', 'hfcca']
)
if __name__ == "__main__":
import sys
install('hfcca')
install('lizard')