# flake8: noqa

import re
import setuptools

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()

with open("src/remoshock/core/version.py", "r", encoding="utf-8") as fh:
    version = re.search("VERSION *= *[\"']([^\"']+).*", fh.read()).group(1)

setuptools.setup(
    name = 'remoshock',
    version = version,
    author = 'Nils Winter',
    author_email = 'nils.winter@yahoo.com',
    classifiers = [
        'Programming Language :: Python :: 3',
        'Operating System :: POSIX :: Linux',
    ],
    description = 'Computer based shock-collar remote control with "evil" features.',
    entry_points={
        'console_scripts': [
            'remoshockcli = remoshock.application.cli:main',
            'remoshockrnd = remoshock.application.randomizer:main',
            'remoshockserver = remoshock.application.server:main'
        ],
    },
    install_requires=['numpy', 'serial'],
    long_description = long_description,
    long_description_content_type = 'text/markdown',
    license="GNU Affero General Public License v3 (AGPL)",
    license_files = ['docs/LICENSE.md'],
    package_data={
      '': ['*'],
    },
    package_dir={'': 'src'},
    packages=setuptools.find_namespace_packages(where='src'),
    python_requires = '>=3.6',
    url = 'https://remoshock.github.io',
)