This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
67 lines (61 loc) · 1.78 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
from setuptools import setup, find_packages
import os
import sys
import versioneer
# https://www.pydanny.com/python-dot-py-tricks.html
if sys.argv[-1] == 'test':
test_requirements = [
'pytest',
'coverage',
'pytest_cov',
]
try:
modules = map(__import__, test_requirements)
except ImportError as e:
err_msg = e.message.replace("No module named ", "")
msg = "%s is not installed. Install your test requirments." % err_msg
raise ImportError(msg)
r = os.system('py.test test -v --cov=cifsdk --cov-fail-under=65 && '
'xenon -b B -m A -a A -e "cifsdk/_version*,cifsdk/client/http/utils.py,cifsdk/cli.py,cifsdk/client/zeromq/base.py" cifsdk')
if r == 0:
raise SystemExit
raise RuntimeError('tests failed')
setup(
name="cifsdk",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="CIFv5 SDK",
long_description="CIFv5 Software Development Kit",
url="https://github.com/csirtgadgets/cifsdk-v5",
license='MPL2',
classifiers=[
"Topic :: System :: Networking",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Programming Language :: Python"
],
keywords=['network', 'security'],
author="Wes Young",
author_email="[email protected]",
packages=find_packages(exclude='test'),
install_requires=[
'ujson',
'tornado',
'msgpack',
'pyzmq',
'python-snappy',
'arrow',
'csirtg-dt',
'csirtg-re',
'csirtg-peers',
'csirtg-spamhaus',
'csirtg-indicator',
'csirtgsdk',
],
entry_points={
'console_scripts': [
'cif=cifsdk.cli:main'
]
},
test_suite="test"
)