forked from certtools/intelmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
106 lines (98 loc) · 3.43 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
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/python3
#
# SPDX-FileCopyrightText: 2014-2021 Tomás Lima, Sebastian Wagner
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# -*- coding: utf-8 -*-
import os
from pathlib import Path
from setuptools import find_packages, setup
REQUIRES = [
'dnspython>=2.0.0',
'psutil>=1.2.1',
'python-dateutil>=2.5',
'python-termstyle>=0.1.10',
'redis>=2.10',
'requests>=2.2.0',
'ruamel.yaml',
'importlib-metadata; python_version < "3.8"'
]
TESTS_REQUIRES = [
'Cerberus!=1.3.0',
'requests_mock',
]
DOCS_REQUIRES = [
'mkdocs-material',
'mike',
'lunr',
'pygments',
'mkdocstrings[python]',
'mkdocs-material',
'mkdocs-glightbox',
'mkdocs-redirects',
'mkdocs-minify-plugin'
]
exec(open(os.path.join(os.path.dirname(__file__),
'intelmq/version.py')).read()) # defines __version__
BOTS = []
base_path = Path(__file__).parent / 'intelmq/bots'
botfiles = [botfile for botfile in Path(base_path).glob('**/*.py') if botfile.is_file() and not botfile.name.startswith('_')]
for file in botfiles:
file = Path(str(file).replace(str(base_path), 'intelmq/bots'))
module = '.'.join(file.with_suffix('').parts)
BOTS.append('{0} = {0}:BOT.run'.format(module))
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as handle:
README = handle.read()
setup(
name='intelmq',
version=__version__, # noqa: F821
maintainer='Sebastian Wagner',
maintainer_email='[email protected]',
python_requires='>=3.7',
install_requires=REQUIRES,
tests_require=TESTS_REQUIRES,
test_suite='intelmq.tests',
extras_require={
'development': TESTS_REQUIRES + DOCS_REQUIRES,
},
packages=find_packages(),
include_package_data=True,
url='https://github.com/certtools/intelmq/',
project_urls={
'Documentation': 'https://intelmq.readthedocs.io/',
'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,
long_description_content_type='text/markdown',
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.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'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',
'intelmqsetup = intelmq.bin.intelmqsetup:main',
] + BOTS,
},
)