forked from xmendez/wfuzz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
91 lines (81 loc) · 2.47 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
import os
import sys
import re
from setuptools import setup, find_packages
with open("README.md", "rb") as f:
long_descr = f.read().decode("utf-8")
version = re.search(
r'^__version__\s*=\s*"(.*)"',
open('src/wfuzz/__init__.py').read(),
re.M
).group(1)
docs_requires = [
"Sphinx",
]
dev_requires = [
'mock',
'coverage',
'codecov',
'netaddr', # tests/api/test_payload.py uses ipranges payload
'pip-tools',
'flake8==3.8.3',
'black==19.10b0;python_version>"3.5"',
'pytest',
]
install_requires = [
'pycurl',
'pyparsing<2.4.2;python_version<="3.4"',
'pyparsing>=2.4*;python_version>="3.5"',
'six',
'configparser;python_version<"3.5"',
'chardet',
]
if sys.platform.startswith("win"):
install_requires += ["colorama>=0.4.0"]
try:
os.symlink('../../docs/user/advanced.rst', 'src/wfuzz/advanced.rst')
setup(
name="wfuzz",
packages=find_packages(where='src'),
package_dir={'wfuzz': 'src/wfuzz'},
include_package_data=True,
package_data={'wfuzz': ['*.rst']},
entry_points={
'console_scripts': [
'wfuzz = wfuzz.wfuzz:main',
'wfpayload = wfuzz.wfuzz:main_filter',
'wfencode = wfuzz.wfuzz:main_encoder',
],
'gui_scripts': [
'wxfuzz = wfuzz.wfuzz:main_gui',
]
},
version=version,
description="Wfuzz - The web fuzzer",
long_description=long_descr,
long_description_content_type='text/markdown',
author="Xavi Mendez (@x4vi_mendez)",
author_email="xmendez@edge-security.com",
url="http://wfuzz.org",
license="GPLv2",
install_requires=install_requires,
extras_require={
'dev': dev_requires,
'docs': docs_requires,
},
python_requires=">=2.6",
classifiers=(
'Development Status :: 4 - Beta',
'Natural Language :: English',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
),
)
finally:
os.unlink('src/wfuzz/advanced.rst')