# -*- coding: utf-8 -*-
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

def get_long_description():
    import os, codecs
    fpath_here = os.path.dirname(__file__)
    fpath_readme = os.path.join(fpath_here, 'README.rst')
    return codecs.open(fpath_readme, 'r', 'utf8').read()

setup(
    name="anchorman",
    version="0.5.2",
    author="matthias rebel",
    author_email="webmaster@rebeling.net",
    url="https://github.com/rebeling/anchorman",
    description=(
        "Anchorman takes a list of terms and a text. It finds the "
        "terms in this text and replaces them with another "
        "representation."
    ),
    long_description=get_long_description(),
    license='Apache 2.0',
    keywords=[
        "intext-links",
        "linking",
        "annotations",
        "tags",
        "hypertext",
        "markup"
    ],
    packages=["anchorman"],
    # pytest_plugins=['pytest_profiling'],
    install_requires=[
        "beautifulsoup4==4.4.1",
        "html5lib==1.0b8",
        "lxml",
        "pytest-cov",
        "pytest",
        "pyyaml"
    ],
    tests_require=['pytest==2.8.3', 'pytest-cov==2.2.0'],
    classifiers=(
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
        'Topic :: Text Processing :: Markup'
    )
)
