forked from oasis-open/cti-python-stix2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (23 loc) · 694 Bytes
/
setup.py
File metadata and controls
28 lines (23 loc) · 694 Bytes
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
#!/usr/bin/env python
from setuptools import find_packages, setup
def get_version():
with open('stix2/version.py') as f:
for line in f.readlines():
if line.startswith("__version__"):
version = line.split()[-1].strip('"')
return version
raise AttributeError("Package does not have a __version__")
install_requires = [
'pytz',
'six',
'python-dateutil',
'requests',
]
setup(
name='stix2',
description="Produce and consume STIX 2 JSON content",
version=get_version(),
packages=find_packages(),
install_requires=install_requires,
keywords="stix stix2 json cti cyber threat intelligence",
)