import os

from setuptools import setup, find_packages


here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()

version = '0.2.9'

requires = [
    'pymongo >= 2.8.0, < 3.0.0',  # CI fails to build unless a version (same as in eduid_am) is required here :(
    'eduid_am >= 0.6.0, < 0.7.0',
    'eduid_userdb >= 0.0.1, < 0.1.0',
]

testing_extras = [
    'nose==1.2.1',
    'nosexcover==1.0.8',
    'coverage==3.6',
]


setup(
    name='eduid_signup_amp',
    version=version,
    description='eduID Sign Up Attribute Manager Plugin',
    long_description=README + '\n\n' + CHANGES,
    # TODO: add classifiers
    classifiers=[
        # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
    ],
    keywords='',
    author='NORDUnet A/S',
    url='https://github.com/SUNET/eduid-signup-amp',
    license='BSD',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=requires,
    extras_require={
        'testing': testing_extras,
    },
    test_suite='eduid_signup_amp',
    entry_points="""\
    [eduid_am.attribute_fetcher]
    eduid_signup = eduid_signup_amp:attribute_fetcher

    [eduid_am.plugin_init]
    eduid_signup = eduid_signup_amp:plugin_init

    """,
)

@@ -421,18 +421,9 @@
 0.0.
-1, %3C 0.1.0
+4
 ',%0A%5D

Consolidate eduid_userdb version