import setuptools

import linien

assert linien.__version__ != "dev"

setuptools.setup(
    name="linien-server",
    version=linien.__version__,
    author="Benjamin Wiegand",
    author_email="highwaychile@posteo.de",
    description="Server of linien that runs on RedPitaya.",
    long_description="Have a look at the 'linien' package for installation instructions.",
    long_description_content_type="text/x-rst",
    url="https://hermitdemschoenenleben.github.io/linien/",
    packages=[
        "linien",
        "linien.server",
        "linien.server.autolock",
        "linien.server.optimization",
        "linien.server.pid_optimization",
    ],
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
        "Operating System :: OS Independent",
    ],
    install_requires=[
        "rpyc>=4.0,<5.0",
        "myhdl>=0.11",
        "click>=7.1.2",
        "cma>=3.0.3",
        "plumbum>=1.6.9",
        "pylpsd>=0.1.4",
        "numpy>=1.11.0",
        "scipy>=0.17.0",
    ],
    scripts=[
        "linien/server/linien_start_server",
        "linien/server/linien_stop_server",
        "linien/server/linien_install_requirements",
        "linien/server/linien_start_ethernet_blinking",
        "linien/server/linien_stop_ethernet_blinking",
    ],
    package_data={
        "": [
            "linien.bin",
            "linien_start_server",
            "linien_stop_server",
            "linien_start_ethernet_blinking",
            "linien_stop_ethernet_blinking",
            "linien_install_requirements",
            "VERSION",
        ]
    },
)
