forked from Intevation/intelmq-certbund-contact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·39 lines (34 loc) · 1.17 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pathlib import Path
from setuptools import find_packages, setup
REQUIRES = [
'intelmq>=3.0.2',
'psycopg2',
'intelmqmail',
]
BOTS = []
base_path = './intelmq/bots'
bots = [botfile for botfile in Path(base_path).glob('**/*.py') if botfile.is_file() and not botfile.name.startswith('_')]
for file in bots:
file = Path(str(file).replace(str(base_path), 'intelmq/bots'))
module = '.'.join(file.with_suffix('').parts)
BOTS.append('{0} = {0}:BOT.run'.format(module))
ENTRY_POINTS = [
"ripe_import = intelmq_certbund_contact.ripe.ripe_import:main",
"ripe_diff = intelmq_certbund_contact.ripe.ripe_diff:main",
]
setup(
name='intelmq_certbund_contact',
version="1.0.2",
maintainer='Intevation GmbH',
maintainer_email='[email protected]',
python_requires='>=3.4',
install_requires=REQUIRES,
packages=find_packages("."),
description=('IntelMQ Contacts is a contact database for IntelMQ'
' with related expert bots'),
entry_points={'console_scripts': BOTS + ENTRY_POINTS},
scripts=["bin/ripe_download",
"bin/import-national-certs"],
)