import os
from setuptools import setup

readme_path = os.path.join(os.path.dirname(
  os.path.abspath(__file__)),
  'README.rst',
)
long_description = open(readme_path).read()
version_path = os.path.join(os.path.dirname(
  os.path.abspath(__file__)),
  'VERSION',
)
version = open(version_path).read()

setup(
  name='flask-ldap3-login',
  version=version,
  packages=['flask_ldap3_login'],
  author="Nick Whyte",
  author_email='nick@nickwhyte.com',
  description="LDAP Support for Flask in Python3/2",
  long_description=long_description,
  url='https://github.com/nickw444/flask-ldap3-login',
  zip_safe=False,
  install_requires=[
        "ldap3",
        "Flask",
        "Flask-wtf",
        "enum34"
  ],
  classifiers=[
    'Intended Audience :: Developers',
    'Programming Language :: Python',
    'Environment :: Web Environment',
    'Framework :: Flask',
    'Programming Language :: Python :: 3.4',
    'Programming Language :: Python :: 3.3',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 2.6',
  ],
  test_suite="flask_ldap3_login_tests",
)

import os
from setuptools import setup

readme_path = os.path.join(os.path.dirname(
  os.path.abspath(__file__)),
  'README.rst',
)
long_description = open(readme_path).read()
version_path = os.path.join(os.path.dirname(
  os.path.abspath(__file__)),
  'VERSION',
)
version = open(version_path).read()



requires = ['ldap3' ,'Flask', 'Flask-wtf']
try:
  import enum
except Exception as e:
  requires.append('enum34')

setup(
  name='flask-ldap3-login',
  version=version,
  packages=['flask_ldap3_login'],
  author="Nick Whyte",
  author_email='nick@nickwhyte.com',
  description="LDAP Support for Flask in Python3/2",
  long_description=long_description,
  url='https://github.com/nickw444/flask-ldap3-login',
  zip_safe=False,
  install_requires=requires,
  classifiers=[
    'Intended Audience :: Developers',
    'Programming Language :: Python',
    'Environment :: Web Environment',
    'Framework :: Flask',
    'Programming Language :: Python :: 3.4',
    'Programming Language :: Python :: 3.3',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 2.6',
  ],
  test_suite="flask_ldap3_login_tests",
)

Fix for when using python3.5. Don't install enum34 if enum already exists (python35)