forked from metagriffin/modseclogc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·94 lines (85 loc) · 3.4 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# file: $Id$
# auth: metagriffin <mg.github@metagriffin.net>
# date: 2016/03/17
# copy: (C) Copyright 2016-EOT metagriffin -- see LICENSE.txt
#------------------------------------------------------------------------------
# This software 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 3 of the
# License, or (at your option) any later version.
#
# This software 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.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#------------------------------------------------------------------------------
import sys, os, setuptools
from setuptools import setup, find_packages
# require python 2.7+
if sys.hexversion < 0x02070000:
raise RuntimeError('This package requires python 2.7 or better')
heredir = os.path.abspath(os.path.dirname(__file__))
def read(*parts, **kw):
try: return open(os.path.join(heredir, *parts)).read()
except: return kw.get('default', '')
test_dependencies = [
'nose >= 1.3.0',
'coverage >= 3.5.3',
]
dependencies = [
'blessings >= 1.5.1',
'six >= 1.6.0',
'pytz >= 2016.1',
'globre >= 0.1.3',
]
entrypoints = {
'console_scripts': [
'modseclogc = modseclogc.cli:main',
'mslc = modseclogc.cli:main',
],
}
classifiers = [
'Development Status :: 3 - Alpha',
# 'Development Status :: 4 - Beta',
# 'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
]
setup(
name = 'modseclogc',
version = read('VERSION.txt', default='0.0.1').strip(),
description = 'A tool to manipulate and analyze ModSecurity audit log files.',
long_description = read('README.rst'),
classifiers = classifiers,
author = 'metagriffin',
author_email = 'mg.pypi@uberdev.org',
url = 'http://github.com/metagriffin/modseclogc',
keywords = 'modsecurity audit log manipulate analyze command-line library',
packages = find_packages(),
platforms = ['any'],
include_package_data = True,
zip_safe = True,
install_requires = dependencies,
tests_require = test_dependencies,
test_suite = 'modseclogc',
entry_points = entrypoints,
license = 'GPLv3+',
)
#------------------------------------------------------------------------------
# end of $Id$
# $ChangeLog$
#------------------------------------------------------------------------------