import re
from setuptools import setup

init_py = open('wikipediabase/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]

setup(
    name='wikipediabase',
    version=metadata['version'],
    description=metadata['doc'],
    author=metadata['author'],
    author_email=metadata['email'],
    url=metadata['url'],
    packages=[
        'wikipediabase',
        'wikipediabase.resolvers',
        'wikipediabase.adhoc',
        'tests',
    ],
    include_package_data=True,
    install_requires=[
        'edn_format',
        'docopt',
        'flake8 < 3.0.0',
        'unittest2 < 1.0.0',
        'overlay-parse',
        'lxml',
        'sqlitedict',
        'requests',
        'beautifulsoup4',
        'redis',
        'redis',
        'hiredis',
    ],
    dependency_links=[
        'git+https://github.com/fakedrake/overlay_parse#egg=overlay-parse',
    ],
    tests_require=[
        'nose>=1.0',
        'sqlitedict',
    ],
    entry_points={
        'console_scripts': [
            'wikipediabase = wikipediabase.cli:main',
        ],
    },
    test_suite='nose.collector',
    license=open('LICENSE').read(),
)

import re
from setuptools import setup

init_py = open('wikipediabase/__init__.py').read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py))
metadata['doc'] = re.findall('"""(.+)"""', init_py)[0]

setup(
    name='wikipediabase',
    version=metadata['version'],
    description=metadata['doc'],
    author=metadata['author'],
    author_email=metadata['email'],
    url=metadata['url'],
    packages=[
        'wikipediabase',
        'wikipediabase.resolvers',
        'wikipediabase.adhoc',
        'tests',
    ],
    include_package_data=True,
    install_requires=[
        'edn_format',
        'docopt',
        'flake8 < 3.0.0',
        'unittest2 < 1.0.0',
        'overlay-parse',
        'lxml',
        'sqlitedict',
        'requests',
        'beautifulsoup4',
        'redis',
        'redis',
        'hiredis',
        'unidecode',
    ],
    dependency_links=[
        'git+https://github.com/fakedrake/overlay_parse#egg=overlay-parse',
    ],
    tests_require=[
        'nose>=1.0',
        'sqlitedict',
    ],
    entry_points={
        'console_scripts': [
            'wikipediabase = wikipediabase.cli:main',
        ],
    },
    test_suite='nose.collector',
    license=open('LICENSE').read(),
)

Add unidecode as a dependency