This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
67 lines (64 loc) · 1.98 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
import os
import sys
from setuptools import setup, find_packages
import versioneer
# vagrant doesn't appreciate hard-linking
if os.environ.get('USER') == 'vagrant' or os.path.isdir('/vagrant'):
del os.link
# 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 requirements." % err_msg
raise ImportError(msg)
r = os.system('py.test test -v --cov=cifsdk --cov-fail-under=65')
if r == 0:
sys.exit()
else:
raise RuntimeError('tests failed')
setup(
name="cifsdk",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="CIFv3 SDK",
long_description="Software Development Kit for CIFv3",
url="https://github.com/csirtgadgets/bearded-avenger-sdk-py",
license='MPLv2',
classifiers=[
"Topic :: System :: Networking",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python",
],
keywords=['security'],
author="Wes Young",
author_email="[email protected]",
packages=find_packages(),
install_requires=[
'PyYAML>=3.11',
'prettytable>=0.7.2',
'pyaml>=15.03.1',
'pyzmq>=16.0',
'requests>=2.6.0',
'urllib3>=1.10.2',
'csirtg_indicator>=1.0.0,<2.0',
'msgpack-python>=0.4.8,<0.5.0',
'ujson'
],
scripts=[],
entry_points={
'console_scripts': [
'cif=cifsdk.client:main',
'cif-tokens=cifsdk.client.tokens:main',
'cif-tail=cifsdk.ztail:main'
]
},
)