forked from mozilla/Garmr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
53 lines (46 loc) · 1.72 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
import os, sys
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def main():
setup(
name = "Garmr",
version = "0.3",
author = "David Burns, Yvan Boily",
author_email = "dburns at mozilladotcom",
description='A tool for testing a web application for basic security holes',
url = "https://github.com/AutomatedTester/Garmr",
packages=['Garmr'],
long_description=read('README.md'),
entry_points = make_entry_points(),
classifiers=['Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Mozilla Public License 1.1 (MPL 1.1)',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python'],
install_requires= ['requests>=0.6.2']
)
def cmdline_entrypoints(versioninfo, platform, basename):
target = 'Garmr.garmr:main'
if platform.startswith('java'):
points = {'garmr': target}
else:
if basename.startswith("pypy"):
points = {'garmr-%s' % basename: target}
else: # cpython
points = {'garmr-%s.%s' % versioninfo[:2] : target,}
points['garmr'] = target
return points
def make_entry_points():
basename = os.path.basename(sys.executable)
points = cmdline_entrypoints(sys.version_info, sys.platform, basename)
keys = list(points.keys())
keys.sort()
l = ["%s = %s" % (x, points[x]) for x in keys]
return {'console_scripts': l}
if __name__ == '__main__':
main()