# Based on PyPA sample project's setup script.

"""Pymultihash installation script."""

import os.path
from setuptools import setup, find_packages

thisdir = os.path.abspath(os.path.dirname(__file__))

# Fetch version from source.
with open(os.path.join(thisdir, 'multihash', 'version.py')) as verfile:
    version = {}
    exec(verfile.read(), version)
    version=version['__version__']

# Load readme file into long description.
with open(os.path.join(thisdir, 'README.rst')) as readme:
    long_description = readme.read()

setup(
    name='pymultihash',
    version=version,

    description="Python implementation of the multihash specification",
    long_description=long_description,

    url='https://github.com/ivilata/pymultihash',
    author="Ivan Vilata-i-Balaguer",
    author_email='ivan@selidor.net',

    license='MIT',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3 :: Only',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: Security :: Cryptography',
    ],
    keywords="multihash hash digest format ASCII encoding",

    packages=find_packages(),
    install_requires=[],
    extras_require={
        'sha3': ['pysha3'],
        'blake2': ['pyblake2'],
    },
    test_suite='tests.test_multihash.suite',
)
