forked from pyRiemann/pyRiemann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (53 loc) · 1.68 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
import sys
import os.path as op
from setuptools import setup, find_packages
# get the version (don't import mne here, so dependencies are not needed)
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="[email protected]",
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.7",
install_requires=[
"numpy!=1.24.0",
"scipy",
"scikit-learn",
"joblib",
],
extras_require={
"docs": [
"sphinx-gallery",
"sphinx-bootstrap_theme",
"numpydoc",
"mne",
"seaborn",
"pandas",
],
"tests": ["pytest", "seaborn", "flake8"],
},
zip_safe=False,
)