import re
from setuptools import setup

version = '1.0.0'


def parse_requirements(file_name):
    requirements = []
    for line in open(file_name, 'r').read().split('\n'):
        if re.match(r'(\s*#)|(\s*$)', line):
            continue
        if re.match(r'\s*-e\s+', line):
            requirements.append(re.sub(r'\s*-e\s+.*#egg=(.*)$', r'\1', line))
        elif re.match(r'\s*-f\s+', line):
            pass
        else:
            requirements.append(line)

    return requirements

package_name='activizer'
base_url = 'https://github.com/s18k/ativizer/'
setup(
    name='activizer',
    version=version,
    description='An Interface for Active Learning',
    author='Shreyas Kamath',
    author_email='shreyaskamath18@gmail.com',
    license='MIT',
    url='https://github.com/s18k/activizer',
    
	download_url='{0}/archive/{1}-{2}'.format(base_url, package_name,version),
    packages=['activizer'],
    include_package_data=True,
    zip_safe=False,
    install_requires=parse_requirements("requirements.txt"),
   
)