forked from mne-tools/mne-qt-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (45 loc) · 1.82 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import pathlib
from setuptools import setup
readme = (pathlib.Path(__file__).parent / "README.md").read_text()
version = None
with open(pathlib.Path('mne_qt_browser') / '_version.py', 'r') as fid:
for line in (line.strip() for line in fid):
if line.startswith('__version__'):
version = line.split('=')[1].strip().strip('\'')
break
if version is None:
raise RuntimeError('Could not determine version')
setup(name='mne-qt-browser',
version=version,
maintainer='Martin Schulz',
maintainer_email='[email protected]',
description='A new backend based on pyqtgraph for the 2D-Data-Browser '
'in MNE-Python.',
long_description=readme,
long_description_content_type='text/markdown',
license='License :: OSI Approved :: BSD License',
url='https://github.com/mne-tools/mne-qt-browser',
download_url='https://github.com/mne-tools/mne-qt-browser/archive/refs'
f'/tags/v{version}.tar.gz',
project_urls={'Bug Tracker':
'https://github.com/mne-tools/mne-qt-browser/issues'},
classifiers=['Programming Language :: Python :: 3',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent'],
packages=['mne_qt_browser'],
include_package_data=True,
install_requires=['numpy',
'scipy',
'matplotlib',
'PyQt5>=5.12',
'qtpy',
'scooby',
'mne>=0.24',
'pyqtgraph>=0.12.3',
'colorspacious',
'pyopengl; platform_system=="Darwin"',
],
extras_require={
'opengl': ['pyopengl'],
},
)