"""
Setup script for picoCosmo 
"""

from setuptools import setup
from setuptools.command.test import test as TestCommand

import picocosmo  # from this directory
import sys


# class for running unit tests
# from: https://pytest.org/latest/goodpractices.html
class PyTest(TestCommand):
    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = []

    def run_tests(self):
        import pytest
        errcode = pytest.main(self.pytest_args)
        sys.exit(errcode)

setup(
    name='picocosmo',
    version=picocosmo.__version__,
    author='Guenter Quast',
    author_email='Guenter.Quast@online.de',
    packages=['picocosmo'],
    inlcude_package_data=True,
    package_data={'picocosmo': ['images/*', 'doc/*']},
    install_requires = [],
    scripts=['CosmoGui.py', 'runCosmo.py'],
    classifiers=[
    #'Development Status :: 5 - Stable',
    'Development Status :: 4 - Beta',
    # Specify the Python versions you support here. In particular, ensure
    # that you indicate whether you support Python 2, Python 3 or both.
    'Programming Language :: Python :: 3.6',
    'Programming Language :: Python :: 3.7',
    'Programming Language :: Python :: 3.8',
    'Programming Language :: Python :: 3.9',
    ],
    url='https://www.etp.kit.edu/~quast/',
    license='GNU Public Licence',
    description=' Analysis of waveforms from cosmic ray detectors',
    long_description=open('README').read(),
    setup_requires=[\
        "picodaqa",
        "NumPy >= 1.17.0",
        "SciPy >= 1.1.0",
        "matplotlib >= 3.4.0",]
)
