import sys

from setuptools import find_packages, setup


with open('VERSION') as version_fp:
    VERSION = version_fp.read().strip()


# Base dependencies
install_requires = [
    'certifi>=2017.1.23',
    'django-local-settings>=1.0b6',
    'pytz>=2016.10',
    'raven>=6.0.0',
    'stashward',
]

if sys.version_info[:2] < (3, 4):
    django_version = '1.8'
    install_requires.append('enum34')
else:
    django_version = '1.11'

# Dependencies that are used in multiple places
deps = {
    'ldap3': 'ldap3>=2.2.1',
    'djangorestframework': 'djangorestframework>=3.6.2',
}

setup(
    name='django-arcutils',
    version=VERSION,
    url='https://github.com/PSU-OIT-ARC/django-arcutils',
    author='PSU - OIT - ARC',
    author_email='consultants@pdx.edu',
    description='Common utilities used in ARC Django projects',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=install_requires,
    extras_require={
        'ldap': [
            deps['ldap3'],
        ],
        'dev': [
            'django>={django_version},<{django_version}.999'.format_map(locals()),
            deps['djangorestframework'],
            'flake8',
            deps['ldap3'],
            'psu.oit.arc.tasks',
            'tox>=2.6.0',
        ],
        'tox': [
            deps['djangorestframework'],
            deps['ldap3'],
        ]
    },
    entry_points="""
    [console_scripts]
    arcutils = arcutils.__main__:main

    """,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
)

@@ -193,12 +193,12 @@
 017.
-1.23
+4.17
 ',%0A 
@@ -250,12 +250,11 @@
 =201
-6.10
+7.2
 ',%0A 
@@ -487,37 +487,8 @@
 = %7B%0A
-    'ldap3': 'ldap3%3E=2.2.1',%0A
     
@@ -540,16 +540,45 @@
 3.6.2',%0A
+    'ldap3': 'ldap3%3E=2.2.2',%0A
 %7D%0A%0Asetup
@@ -1260,17 +1260,17 @@
 'tox%3E=2.
-6
+7
 .0',%0A   

Upgrade miscellaneous dependencies