forked from viper-framework/viper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·86 lines (76 loc) · 2.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is part of Viper - https://github.com/viper-framework/viper
# See the file 'LICENSE' for copying permission.
import os
from setuptools import setup
from viper.common.version import __version__
__description__ = "Binary Analysis & Management Framework"
def get_packages(package):
"""
Return root package and all sub-packages.
"""
return [dirpath
for dirpath, dirnames, filenames in os.walk(package)
if os.path.exists(os.path.join(dirpath, "__init__.py"))]
def get_package_data(package):
"""
Return all files under the root package, that are not in a
package themselves.
"""
walk = [(dirpath.replace(package + os.sep, "", 1), filenames)
for dirpath, dirnames, filenames in os.walk(package)
if not os.path.exists(os.path.join(dirpath, "__init__.py"))]
filepaths = []
for base, filenames in walk:
filepaths.extend([os.path.join(base, filename)
for filename in filenames
if not filename.endswith('pyc')])
return {package: filepaths}
setup(
name="viper-framework",
version=__version__,
author="Claudio Guarnieri",
author_email="[email protected]",
description=__description__,
long_description=__description__,
url="http://viper.li",
platforms="any",
entry_points={
"console_scripts": [
"viper = viper.core.ui.main:main",
],
},
packages=get_packages("viper"),
package_data=get_package_data("viper"),
include_package_data=True,
install_requires=[
"python-magic==0.4.15",
"requests[socks]==2.22.0",
"requests-cache==0.5.2",
"scandir==1.10",
"six==1.14.0",
"sqlalchemy==1.3.13",
"terminaltables==3.1.0",
"pydeep==0.4",
"rarfile==3.1",
],
zip_safe=False,
tests_require=["pytest"],
# BSD 3-Clause License:
# - http://choosealicense.com/licenses/bsd-3-clause
# - http://opensource.org/licenses/BSD-3-Clause
license="BSD 3-Clause",
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Topic :: Security",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Operating System :: POSIX :: Linux",
],
keywords="binary analysis management malware research",
)