forked from jtpereyda/boofuzz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
97 lines (86 loc) · 2.98 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
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env python
import ast
import os
import re
from io import open
from setuptools import find_packages, setup
setup_dir = os.path.abspath(os.path.dirname(__file__))
def find_version(*path_elements):
"""Search a file for `__version__ = 'version number'` and return version.
@param path_elements: Arguments specifying file to search.
@return: Version number string.
"""
path = os.path.join(setup_dir, *path_elements)
for line in open(path):
for match in re.finditer(r"__version__\s*=\s(.*)$", line):
return ast.literal_eval(match.group(1))
raise RuntimeError("version string not found in {0}".format(path))
def get_long_description():
descr = []
for fname in "README.rst", "CHANGELOG.rst":
with open(os.path.join(setup_dir, fname), encoding="utf-8") as f:
descr.append(f.read())
return "\n\n".join(descr)
extra_requirements = {
"dev": [
"black",
"tox",
"flake8",
"check-manifest",
"mock",
"pytest",
"pytest-bdd",
"pytest-cov",
"netifaces",
"ipaddress",
"wheel",
],
"docs": ["sphinx", "sphinx_rtd_theme", "pygments>=2.4.0"],
}
extra_requirements["dev"] += extra_requirements["docs"]
setup(
name="boofuzz",
version=find_version("boofuzz", "__init__.py"),
description="A fork and successor of the Sulley Fuzzing Framework",
long_description=get_long_description(),
long_description_content_type="text/x-rst",
maintainer="Joshua Pereyda",
maintainer_email="joshua.t.pereyda@gmail.com",
url="https://github.com/jtpereyda/boofuzz",
packages=find_packages(exclude=["docs", "examples", "request_definitions", "unit_tests", "utils"]),
package_data={"boofuzz.web": ["static/*", "static/*/*", "templates/*", "templates/*/*"]},
install_requires=[
"attrs",
"click",
"colorama",
"Flask",
"funcy",
"psutil",
"pyserial",
"pydot",
"tornado",
],
extras_require=extra_requirements,
python_requires=">=3.7",
entry_points={"console_scripts": ["boo=boofuzz.cli:main"]},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Security",
"Topic :: System :: Networking",
"Topic :: Software Development :: Testing :: Traffic Generation",
],
)