forked from target/fortifyapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (51 loc) · 1.79 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
55
56
57
58
59
60
#!/usr/bin/env python
import os
import sys
from fortifyapi import __version__ as version
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
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 --formats=zip')
sys.exit(0)
if sys.argv[-1] == 'tag':
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
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='fortifyapi',
packages=['fortifyapi'],
version=version,
description='Python library for Fortify Software Security Center (SSC) RESTFul API',
long_description=readme,
author='Brandon Spruth, Jim Nelson',
author_email='brandon.spruth2@target.com, jim.nelson2@target.com',
url='https://github.com/target/fortifyapi',
download_url='https://github.com/target/fortifyapi/tarball/' + version,
license='MIT',
zip_safe=True,
install_requires=['requests'],
keywords=['fortify', 'api', 'security', 'software', 'hpe', 'micro focus', 'ssc', 'sast'],
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 :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
]
)