-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
82 lines (74 loc) · 3.05 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
"""
MCAFEE CONFIDENTIAL
Copyright (c) 2019 McAfee, LLC
The source code contained or described herein and all documents related
to the source code ("Material") are owned by McAfee or its
suppliers or licensors. Title to the Material remains with McAfee
or its suppliers and licensors. The Material contains trade
secrets and proprietary and confidential information of McAfee or its
suppliers and licensors. The Material is protected by worldwide copyright
and trade secret laws and treaty provisions. No part of the Material may
be used, copied, reproduced, modified, published, uploaded, posted,
transmitted, distributed, or disclosed in any way without McAfee's prior
express written permission.
No license under any patent, copyright, trade secret or other intellectual
property right is granted to or conferred upon you by disclosure or
delivery of the Materials, either expressly, by implication, inducement,
estoppel or otherwise. Any license under such intellectual property rights
must be express and approved by McAfee in writing.
"""
import os
import ast
from setuptools import setup
CWD = os.path.abspath(os.path.dirname(__file__))
def get_version():
f = open(os.path.join(CWD,'mvision_edr_activity_feed/__init__.py'), 'r')
code = ast.parse(f.read())
for item in code.body:
if type(item) == ast.Assign:
if item.targets[0].id == '__version__':
return item.value.s
raise Exception("Cloud not read version from package")
reqs = [
'dxlstreamingclient==0.1.2',
'requests==2.22.0',
'jmespath==0.9.4',
'furl==2.0.0',
'future'
]
test_reqs = [
'mock==3.0.5',
'pytest==4.5.0',
'coverage==4.5.3',
'coveralls==1.7.0',
'pytest-cov==2.7.1',
'numpy==1.16.3'
]
opts = dict(
name="mvision_edr_activity_feed",
version=get_version(),
maintainer="Camila Stock & Pablo Aguerre",
maintainer_email="[email protected]",
install_requires=reqs,
tests_require = test_reqs + reqs,
description="Open Source ActivityFeed integrated with OpenDXL streaming clien",
long_description="Open Source ActivityFeed integrated with OpenDXL streaming client (https://github.com/opendxl/opendxl-streaming-client-python).",
url="https://github.com/mcafee/mvision-edr-activity-feed",
download_url="https://github.com/mcafee/mvision-edr-activity-feed",
license="Apache License 2.0",
packages=['mvision_edr_activity_feed', 'samples'],
package_dir={'mvision_edr_activity_feed': 'mvision_edr_activity_feed', 'samples': 'samples'},
include_package_data=True,
entry_points={
'console_scripts': [
'mvision-edr-activity-feed = mvision_edr_activity_feed.__main__:main'
]
}
)
if __name__ == '__main__':
try:
setup(**opts)
print("mvedr-activity-feed setup successfully")
except Exception as e:
print(e)
raise Exception("Unable to setup mvedr-activity-feed")