This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
forked from aparsons/threadfix_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (46 loc) · 1.57 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
#!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from threadfix_api import __version__ as version
with open('README.rst', 'r') as f:
readme = f.read()
# Publish helper
if sys.argv[-1] == 'build':
os.system('python setup.py sdist bdist_wheel')
sys.exit(0)
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist bdist_wheel upload -r pypi')
sys.exit(0)
if sys.argv[-1] == 'publish-test':
os.system('python setup.py sdist bdist_wheel upload -r pypitest')
sys.exit(0)
setup(
name='threadfix_api',
packages=['threadfix_api'],
version=version,
description='An API wrapper to facilitate interactions with ThreadFix.',
long_description=readme,
author='Adam Parsons',
author_email='adam@aparsons.net',
url='https://github.com/aparsons/threadfix_api',
download_url='https://github.com/aparsons/threadfix_api/tarball/' + version,
license='MIT',
install_requires=['requests'],
keywords=['threadfix', 'api', 'security', 'software'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
]
)