from distutils.command.build import build
from setuptools import setup
from setuptools.command.install import install as _install

class install(_install):
    def run(self):
        self.run_command('build')
        _install.run(self)

setup(name="aws_ir",
      version="0.1.1",
      author="Andrew Krug, Alex McCormack, Joel Ferrier",
      author_email="andrewkrug@gmail.com,developer@amccormack.net,joel@ferrier.io",
      packages=["aws_ir", "aws_ir/libs", "aws_ir/plugins"],
      license="MIT",
      description="AWS Incident Response ToolKit",
      scripts=['bin/aws_ir'],
      url='https://github.com/ThreatResponse/aws_ir',
      download_url="https://github.com/ThreatResponse/aws_ir/archive/v0.1.0.tar.gz",
      use_2to3=True,
      install_requires=['boto3>=1.3.0',
                        'progressbar_latest',
                        'logutils',
                        'requests',
                        'structlog',
                        'pytz',
                        'ping',
                        'margaritashotgun>=0.3.1'],
      tests_require=['pytest',
                     'pytest-cov',
                     'moto',
                     'mock',
                     'magicmock'],
      )

from distutils.command.build import build
from setuptools import setup
from setuptools.command.install import install as _install

class install(_install):
    def run(self):
        self.run_command('build')
        _install.run(self)

setup(name="aws_ir",
      version="0.1.1",
      author="Andrew Krug, Alex McCormack, Joel Ferrier",
      author_email="andrewkrug@gmail.com,developer@amccormack.net,joel@ferrier.io",
      packages=["aws_ir", "aws_ir/libs", "aws_ir/plans", "aws_ir/plugins"],
      license="MIT",
      description="AWS Incident Response ToolKit",
      scripts=['bin/aws_ir'],
      url='https://github.com/ThreatResponse/aws_ir',
      download_url="https://github.com/ThreatResponse/aws_ir/archive/v0.1.0.tar.gz",
      use_2to3=True,
      install_requires=['boto3>=1.3.0',
                        'progressbar_latest',
                        'logutils',
                        'requests',
                        'structlog',
                        'pytz',
                        'ping',
                        'margaritashotgun>=0.3.1'],
      tests_require=['pytest',
                     'pytest-cov',
                     'moto',
                     'mock',
                     'magicmock'],
      )

include aws_ir.plans package in sdist