forked from ajinabraham/libsast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (49 loc) · 1.59 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 libsast."""
from setuptools import find_packages, setup
from pathlib import Path
def get_requires():
requires = [
'requests>=2.22.0',
'pyyaml>=5.3',
'semgrep==0.34.0;platform_system!="Windows"',
]
return requires
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 = ('A generic SAST core built on top of '
'semgrep and regex')
setup(
name='libsast',
version=get_version('libsast/__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=[
'libsast', 'libsast.*',
'libsast.core_matcher', 'libsast.core_matcher',
'libsast.core_sgrep', 'libsast.core_sgrep',
]),
entry_points={
'console_scripts': [
'libsast = libsast.__main__:main',
],
},
include_package_data=True,
url='https://github.com/ajinabraham/libsast',
long_description=read('README.md'),
long_description_content_type='text/markdown',
install_requires=get_requires(),
)