-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
81 lines (63 loc) · 2.62 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
#!/usr/bin/env python
import sys
import os
SETUPTOOLS_VERSION = '11.3.1'
PROFILES_DIR = 'w3af-repo/profiles/'
try:
from setuptools.version import __version__
assert __version__ == SETUPTOOLS_VERSION
except (ImportError, AssertionError) as e:
print >> sys.stderr, (
"The required version of setuptools (==%s) is not available,"
" %s was found instead.\n"
"Please install a more recent version first, using 'pip install "
"--upgrade setuptools==%s'.") % (SETUPTOOLS_VERSION,
__version__,
SETUPTOOLS_VERSION)
sys.exit(2)
from setuptools import setup, find_packages
from mod_utils.get_version import get_version
from mod_utils.pip import get_pip_git_requirements, get_pip_requirements
setup(
name='w3af',
version=get_version(),
license='GNU General Public License v2 (GPLv2)',
platforms='Linux',
description='w3af is an open source web application security scanner.',
long_description=file('README.rst').read(),
author='Andres Riancho',
author_email='[email protected]',
url='https://github.com/andresriancho/w3af/',
packages=find_packages(where='.', exclude=['tests*', 'mod_utils*']),
# include everything in source control which lives inside one of the
# packages identified by find_packages, depends on setuptools_git==1.0
include_package_data=True,
# include the data files, which don't live inside the directory
data_files=[('profiles',
[PROFILES_DIR + '/' + f for f in os.listdir(PROFILES_DIR)])],
# This allows w3af plugins to read the data_files which we deploy with
# data_files.
zip_safe=False,
# Run the module tests using nose
test_suite='nose.collector',
# Require at least the easiest PIP requirements from w3af
setup_requires=['setuptools==%s' % SETUPTOOLS_VERSION,
"setuptools_git==1.0"],
install_requires=get_pip_requirements(),
dependency_links=get_pip_git_requirements(),
# Install these scripts
scripts=['w3af-repo/w3af_console',
'w3af-repo/w3af_gui',
'w3af-repo/w3af_api'],
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Security'
],
)