forked from madsc13ntist/threatconnect-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (48 loc) · 1.77 KB
/
setup.py
File metadata and controls
52 lines (48 loc) · 1.77 KB
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
import re
import sys
from setuptools import setup, find_packages
with open('threatconnect/__init__.py', 'r') as fd:
version = re.search(
r'^__version__(?:\s+)?=(?:\s+)?[\'|\"]((?:[0-9]{1,3}(?:\.)?){1,3})[\'|\"]', fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
install_requires = [
'python-dateutil==2.6.0',
'requests==2.17.3',
]
if sys.version_info < (3, ):
install_requires.append('enum34')
setup(
author='ThreatConnect (support@threatconnect.com)',
author_email='support@threatconnect.com',
# convert_2to3_doctests = [''],
description='Python SDK for ThreatConnect API',
download_url='https://github.com/ThreatConnect-Inc/threatconnect-python/archive/{}.tar.gz'.format(version),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7'
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
entry_points={
'console_scripts': [
'stanchion=bin.stanchion:main'
],
},
install_requires=install_requires,
license='Apache License, Version 2',
name='threatconnect',
# package_dir = {'': 'src'},
packages=find_packages(),
url='https://github.com/ThreatConnect-Inc/threatconnect-python',
use_2to3=True,
use_2to3_exclude_fixers=['lib2to3.fixes.fix_print'],
# use_2to3_fixers = [''],
version=version
)