|
1 | | -from distutils.core import setup |
| 1 | +#!/usr/bin/env python |
2 | 2 |
|
| 3 | +import os |
| 4 | +import sys |
| 5 | + |
| 6 | +from ThreadFixPythonApi import __version__ as version |
| 7 | + |
| 8 | +try: |
| 9 | + from setuptools import setup |
| 10 | +except ImportError: |
| 11 | + from distutils.core import setup |
| 12 | + |
| 13 | +with open('README.rst', 'r') as f: |
| 14 | + readme = f.read() |
| 15 | + |
| 16 | +# Publish helper |
| 17 | +if sys.argv[-1] == 'build': |
| 18 | + os.system('python setup.py sdist bdist_wheel') |
| 19 | + sys.exit(0) |
| 20 | + |
| 21 | +if sys.argv[-1] == 'install': |
| 22 | + os.system('python setup.py sdist --formats=zip') |
| 23 | + sys.exit(0) |
| 24 | + |
3 | 25 | setup( |
4 | | - name='ThreadFixPythonAPI', |
5 | | - version='1.0.7', |
| 26 | + name='threadfixproapi', |
6 | 27 | packages=['ThreadFixPythonApi', '_utils',], |
| 28 | + version=version, |
| 29 | + description='Python library enumerating the ThreadFix Professional RESTFul API.', |
| 30 | + long_description='A python implementation of ThreadFix\'s API for easier use with python. Built off of original work by (c) 2018 Target Brands, Inc.', |
| 31 | + author='Dan Cornell', |
| 32 | + author_email='dancornell@gmail.com', |
| 33 | + url='https://github.com/denimgroup/threadfix-python-api', |
| 34 | + download_url='https://github.com/denimgroup/threadfix-python-api/tarball/' + version, |
7 | 35 | license='MIT', |
8 | | - long_description='A python implementation of ThreadFix\'s API for easier use with python. Built off of original work by (c) 2018 Target Brands, Inc.' |
| 36 | + zip_safe=True, |
| 37 | + install_requires=['requests'], |
| 38 | + keywords=['threadfix', 'api', 'security', 'software', 'denim group', 'sast', 'dast'], |
| 39 | + classifiers=[ |
| 40 | + 'Development Status :: 4 - Beta', |
| 41 | + 'Intended Audience :: Developers', |
| 42 | + 'Natural Language :: English', |
| 43 | + 'License :: OSI Approved :: MIT License', |
| 44 | + 'Topic :: Software Development', |
| 45 | + 'Topic :: Software Development :: Libraries :: Python Modules', |
| 46 | + 'Programming Language :: Python :: 2', |
| 47 | + 'Programming Language :: Python :: 2.7', |
| 48 | + 'Programming Language :: Python :: 3.0', |
| 49 | + 'Programming Language :: Python :: 3.6', |
| 50 | + 'Programming Language :: Python :: 3.7', |
| 51 | + ] |
9 | 52 | ) |
0 commit comments