-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
82 lines (68 loc) · 2.5 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
#!/usr/bin/env python
# encoding: utf-8
# HoneySAP - SAP low-interaction honeypot
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Author:
# Martin Gallo (@martingalloar)
# Code contributed by SecureAuth to the OWASP CBAS project
#
# Standard imports
from sys import exit
from os import system
from setuptools import setup, find_packages, Command
# Custom imports
import honeysap
class DocumentationCommand(Command):
"""Custom command for building the documentation with Sphinx.
"""
description = "Builds the documentation using Sphinx"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
"""Runs Sphinx
"""
exit(system("cd docs && make html"))
setup(name=honeysap.__name__, # Package information
version=honeysap.__version__,
author='Martin Gallo, OWASP CBAS Project',
author_email='[email protected]',
description='SAP low-interaction honeypot',
long_description=honeysap.__doc__,
url=honeysap.__url__,
download_url=honeysap.__url__,
license=honeysap.__license__,
classifiers=['Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Programming Language :: Python',
'Topic :: Security'],
# Packages list
packages=find_packages(),
provides=['honeysap'],
# Script files
scripts=['bin/honeysap',
'bin/honeysapeater'],
# Tests command
test_suite='tests.test_suite',
# Documentation commands
cmdclass={'doc': DocumentationCommand},
# Requirements
install_requires=open('requirements.txt').read().splitlines(),
# Optional requirements for docs
extras_require={"docs": open('requirements-docs.txt').read().splitlines()}
)