forked from pyRiemann/pyRiemann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (58 loc) · 1.71 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
50
51
52
53
54
55
56
57
58
59
60
61
62
import os.path as op
import sys
from setuptools import find_packages, setup
version = None
with open(op.join("pyriemann", "_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")
is_python3 = sys.version_info.major >= 3
kwargs_open = {"encoding": "utf8"} if is_python3 else {}
with open('README.md', 'r', **kwargs_open) as fid:
long_description = fid.read()
setup(
name="pyriemann",
version=version,
description="Biosignals classification with Riemannian geometry",
url="https://pyriemann.readthedocs.io",
author="Alexandre Barachant",
author_email="alexandre.barachant@gmail.com",
license="BSD (3-clause)",
packages=find_packages(),
long_description=long_description,
long_description_content_type="text/markdown",
project_urls={
"Documentation": "https://pyriemann.readthedocs.io",
"Source": "https://github.com/pyRiemann/pyRiemann",
"Tracker": "https://github.com/pyRiemann/pyRiemann/issues/",
},
platforms="any",
python_requires=">=3.8",
install_requires=[
"numpy!=1.24.0",
"scipy",
"scikit-learn>=0.24",
"joblib",
"matplotlib",
],
extras_require={
"docs": [
"sphinx>=6.0.0,<=7.0.1",
"sphinx-gallery",
"sphinx-bootstrap_theme",
"numpydoc",
"mne",
"seaborn",
"pandas",
],
"tests": [
"pytest",
"seaborn",
"flake8"
],
},
zip_safe=False,
)