-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
setup.py
58 lines (51 loc) · 1.58 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
"""Setup for njsscan."""
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 v3 or later (LGPLv3+)'),
'Programming Language :: Python :: 3.7',
],
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.5',
'libsast>=3.1.4',
'semgrep==1.86.0',
'sarif-om>=1.0.4',
'jschema-to-python>=1.2.3',
'tabulate>=0.8.10',
],
)