#!/usr/bin/env python
# -*- coding: utf-8 -*-

import re
import sys

from setuptools import setup, find_packages

from openslides import get_version


with open('README.rst') as readme:
    long_description = readme.read()


dependency_line = re.compile('[^#-]')
with open('requirements_production.txt') as requirements_production:
    install_requires = [line for line in requirements_production.readlines()
                        if dependency_line.match(line)]


setup(
    name='openslides',
    version=get_version(),
    author='OpenSlides-Team',
    author_email='support@openslides.org',
    url='http://openslides.org',
    description='Presentation and assembly system',
    long_description=long_description,
    classifiers=[
        # http://pypi.python.org/pypi?%3Aaction=list_classifiers
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2',
    ],
    license='MIT',
    packages=find_packages(exclude=['tests', 'tests.*']),
    include_package_data=True,
    install_requires=install_requires,
    entry_points={'console_scripts': ['openslides = openslides.__main__:main']})
