setup.py 1.77 KB
Newer Older
1 2 3 4
# -*- coding: utf-8 -*-
# Copyright (c) 2016-2018 Braintech Sp. z o.o. [Ltd.] <http://www.braintech.pl>
# All rights reserved.

Maciej Pawlisz's avatar
Maciej Pawlisz committed
5 6 7 8 9 10 11 12 13 14 15
import sys
from setuptools import setup, find_packages
import versioneer

test_requirements = [
    'pytest>=3.0',
    'pytest-cov>=2.3.1',
    'pytest-timeout>=1.0',
    'pytest-catchlog>=1.2.2',
    'flaky>=3.3.0',
    'nose>=1.3.7',
16
    'mne~=0.17.0',
17 18
    'scipy',
    'matplotlib',
Maciej Pawlisz's avatar
Maciej Pawlisz committed
19
]
20 21 22 23

install_requires = ['mne~=0.17.0',
                    ]

Maciej Pawlisz's avatar
Maciej Pawlisz committed
24 25 26 27 28 29 30 31 32 33 34 35
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner_requirement = ['pytest-runner>=2.9']

setup_requires = pytest_runner_requirement if needs_pytest else []

setup(
    name='obci-readmanager',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    zip_safe=False,
    author='BrainTech',
    author_email='admin@braintech.pl',
36 37 38 39 40 41 42 43 44 45 46 47 48
    license='GNU General Public License v3 or later (GPLv3+)',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Natural Language :: English',
        'Topic :: Scientific/Engineering',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Operating System :: POSIX :: Linux',
        'Environment :: Console',
    ],
    keywords='bci eeg openbci',
Maciej Pawlisz's avatar
Maciej Pawlisz committed
49 50 51 52
    description='OpenBCI 2 readmanager support module',
    packages=find_packages(exclude=['scripts', ]),
    include_package_data=True,
    exclude_package_data={'': ['.gitignore', '.gitlab-ci.yml']},
53
    install_requires=install_requires,
Maciej Pawlisz's avatar
Maciej Pawlisz committed
54 55
    tests_require=test_requirements,
    setup_requires=setup_requires,
56
    extras_require={
57 58 59
        'test': pytest_runner_requirement + test_requirements,
    },
)