import re
from setuptools import setup, find_packages

with open('README.rst') as fp:
    long_description = fp.read()
    # pypi's renderer doesn't support the entire command set of sphinx, and we need to strip some
    long_description = re.sub(r':py:\w+:`(.*?)`', r'``\1``', long_description)

setup(
    name='idxhound',
    version='0.3.0',
    author='Till Hoffmann',
    install_requires=[
        'bidict',
        'numpy',
    ],
    packages=find_packages(),
    url='https://github.com/tillahoffmann/idxhound',
    long_description_content_type="text/x-rst",
    long_description=long_description,
)
