Skip to content
Snippets Groups Projects
Select Git revision
  • 67758c963bb6f316c8b1709510180e644155c54b
  • 3.9 default
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
41 results

AdherentTest.php

Blame
  • setup.py 1.59 KiB
    #!/usr/bin/env python
    
    import os
    import sys
    
    try:
        from setuptools import setup
    except ImportError:
        from distutils.core import setup
    
    from defect_dojo_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='defectdojo_api',
        packages=['defectdojo_api'],
        version=version,
        description='An API wrapper to facilitate interactions with Defect Dojo.',
        long_description=readme,
        author='Aaron Weaver',
        author_email='aaron.weaver2@gmail.com',
        url='https://github.com/aaronweaver/defect_dojo_api',
        download_url='https://github.com/aaronweaver/defect_dojo_api/tarball/' + version,
        license='MIT',
        install_requires=['requests'],
        keywords=['dojo', 'api', 'security', 'software'],
        classifiers=[
            'Development Status :: 1 - 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',
        ]
    )