cti-python-stix2/setup.py

29 lines
694 B
Python
Raw Normal View History

2017-01-17 17:54:39 +01:00
#!/usr/bin/env python
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',
'requests',
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",
)