forked from ajinabraham/njsscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (47 loc) · 1.46 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
"""Setup for libsast."""
from setuptools import (
find_packages,
setup,
)
from pathlib import Path
def read(rel_path):
init = Path(__file__).resolve().parent / rel_path
return init.read_text('utf-8', 'ignore')
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
return line.split('\'')[1]
raise RuntimeError('Unable to find version string.')
description = ('njsscan is a SAST tool that can find insecure code'
' patterns in your Node.js applications.')
setup(
name='njsscan',
version=get_version('njsscan/__init__.py'),
description=description,
author='Ajin Abraham',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
('License :: OSI Approved :: '
'GNU Lesser General Public License v2 (LGPLv2)'),
'Programming Language :: Python :: 3.6',
],
packages=find_packages(include=[
'njsscan', 'njsscan.*',
]),
entry_points={
'console_scripts': [
'njsscan = njsscan.__main__:main',
'nodejsscan = njsscan.__main__:main',
],
},
include_package_data=True,
url='https://github.com/ajinabraham/njsscan',
long_description=read('README.md'),
long_description_content_type='text/markdown',
install_requires=[
'colorama>=0.4.3',
'libsast>=1.1.1',
],
)