#!/usr/bin/env python
import sys
from setuptools import setup, find_packages


dev_requires = [
    'Sphinx==1.2.2',
]

tests_require = [
    'django-celery==3.1.16',
]

install_requires = [
    'django-gm2m==0.3',
    'nodeconductor>0.87.0',
    # transitive dependency from nodeconductor core requires Pillow version <3.0.0
    'Pillow>=2.0.0,<3.0.0',
]

# RPM installation does not need oslo, cliff and stevedore libs -
# they are required only for installation with setuptools
try:
    action = sys.argv[1]
except IndexError:
    pass
else:
    if action in ['develop', 'install', 'test']:
        install_requires += [
            'cliff==1.7.0',
            'oslo.config==1.4.0',
            'oslo.i18n==1.0.0',
            'oslo.utils==1.0.0',
            'stevedore==1.0.0',
        ]
    # handle the case when plugins are installed in develop mode
    if action in ['develop']:
        install_requires += tests_require


setup(
    name='nodeconductor-saltstack',
    version='0.1.3',
    author='OpenNode Team',
    author_email='info@opennodecloud.com',
    url='http://nodeconductor.com',
    description='NodeConductor SaltStack plugin allows to manage applications via SaltStack RPC',
    long_description=open('README.rst').read(),
    package_dir={'': 'src'},
    packages=find_packages('src', exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
    install_requires=install_requires,
    zip_safe=False,
    extras_require={
        'dev': dev_requires,
    },
    entry_points={
        'nodeconductor_extensions': (
            'saltstack = nodeconductor_saltstack.saltstack.extension:SaltStackExtension',
            'exchange = nodeconductor_saltstack.exchange.extension:ExchangeExtension',
            'sharepoint = nodeconductor_saltstack.sharepoint.extension:SharepointExtension',
        ),
    },
    # tests_require=tests_require,
    include_package_data=True,
    classifiers=[
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'License :: OSI Approved :: Apache Software License',
    ],
)

@@ -160,16 +160,79 @@
 .1.16',%0A
+    'mock==1.0.1',%0A    'mock-django==0.6.6',%0A    'six%3E=1.9.0',%0A
 %5D%0A%0Ainsta

Add missing test dependencies