forked from certtools/intelmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
92 lines (87 loc) · 3.31 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
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import json
import os
import sys
from setuptools import find_packages, setup
REQUIRES = [
'dnspython>=1.11.1',
'psutil>=1.2.1',
'python-dateutil>=2.5',
'python-termstyle>=0.1.10',
'pytz>=2012c',
'redis>=2.10',
'requests>=2.2.0',
]
exec(open(os.path.join(os.path.dirname(__file__),
'intelmq/version.py')).read()) # defines __version__
BOTS = []
bots = json.load(open(os.path.join(os.path.dirname(__file__), 'intelmq/bots/BOTS')))
for bot_type, bots in bots.items():
for bot_name, bot in bots.items():
module = bot['module']
BOTS.append('{0} = {0}:BOT.run'.format(module))
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as handle:
README = handle.read()
setup(
name='intelmq',
version=__version__, # noqa: F821
maintainer='Sebastian Wagner',
maintainer_email='[email protected]',
python_requires='>=3.6',
install_requires=REQUIRES,
tests_require=[
'Cerberus!=1.3',
'pyyaml',
'requests_mock',
],
test_suite='intelmq.tests',
extras_require={
'development': [
'Cerberus',
'pyyaml',
],
},
packages=find_packages(),
include_package_data=True,
url='https://github.com/certtools/intelmq/',
project_urls={
'Documentation': 'https://github.com/certtools/intelmq/blob/master/docs/',
'Source and Issue Tracker': 'https://github.com/certtools/intelmq/',
},
license='AGPLv3',
description='IntelMQ is a solution for IT security teams for collecting and '
'processing security feeds using a message queuing protocol.',
long_description=README,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Security',
],
keywords='incident handling cert csirt',
entry_points={
'console_scripts': [
'intelmqctl = intelmq.bin.intelmqctl:main',
'intelmqdump = intelmq.bin.intelmqdump:main',
'intelmq_psql_initdb = intelmq.bin.intelmq_psql_initdb:main',
'intelmq.bots.experts.sieve.validator = intelmq.bots.experts.sieve.validator:main',
'intelmqsetup = intelmq.bin.intelmqsetup:main',
'update-asn-data = intelmq.bots.experts.asn_lookup.expert:BOT.update_database',
'update-geoip-data = intelmq.bots.experts.maxmind_geoip.expert:BOT.update_database',
'update-rfiprisk-data = intelmq.bots.experts.recordedfuture_iprisk.expert:BOT.update_database',
'update-tor-nodes = intelmq.bots.experts.tor_nodes.expert:BOT.update_database',
] + BOTS,
},
)