2017-01-17 17:54:39 +01:00
|
|
|
#!/usr/bin/env python
|
2017-04-25 00:29:56 +02:00
|
|
|
from setuptools import find_packages, setup
|
2017-01-17 17:54:39 +01:00
|
|
|
|
2017-07-06 15:39:33 +02:00
|
|
|
|
|
|
|
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__")
|
|
|
|
|
|
|
|
|
2017-01-17 22:58:19 +01:00
|
|
|
install_requires = [
|
|
|
|
'pytz',
|
2017-04-10 16:18:54 +02:00
|
|
|
'six',
|
2017-04-11 18:10:55 +02:00
|
|
|
'python-dateutil',
|
2017-06-01 23:00:22 +02:00
|
|
|
'requests',
|
2017-08-11 21:07:25 +02:00
|
|
|
'simplejson',
|
2017-01-17 22:58:19 +01:00
|
|
|
]
|
|
|
|
|
2017-01-17 17:54:39 +01:00
|
|
|
setup(
|
|
|
|
name='stix2',
|
|
|
|
description="Produce and consume STIX 2 JSON content",
|
2017-07-06 15:39:33 +02:00
|
|
|
version=get_version(),
|
2017-01-17 17:54:39 +01:00
|
|
|
packages=find_packages(),
|
2017-01-17 22:58:19 +01:00
|
|
|
install_requires=install_requires,
|
2017-01-17 17:54:39 +01:00
|
|
|
keywords="stix stix2 json cti cyber threat intelligence",
|
|
|
|
)
|