forked from sappelhoff/eeg_positions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (58 loc) · 1.79 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
63
64
"""Setup eeg_positions."""
import io
import os
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
# Get long description from README file
with io.open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
# get the version
version = None
with open(os.path.join("eeg_positions", "__init__.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="eeg_positions",
version=version,
description=(
"Functions and data to compute and plot standard EEG electrode positions."
),
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/sappelhoff/eeg_positions",
author="Stefan Appelhoff",
author_email="[email protected]",
license="BSD-3-Clause",
classifiers=[
"Topic :: Scientific/Engineering :: Mathematics",
"Programming Language :: Python",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
],
keywords=[
"EEG",
"electrodes",
"standard positions",
"1020",
"1010",
"1005",
"percent",
],
packages=find_packages(),
install_requires=[
"numpy>=1.14.2",
"matplotlib>=2.0.2",
"pandas>=0.24.0",
"mne>=0.19,<=0.21",
],
python_requires=">=3.5",
extras_require={"test": ["pytest"]},
project_urls={
"Bug Reports": "https://github.com/sappelhoff/eeg_positions/issues",
"Source": "https://github.com/sappelhoff/eeg_positions",
},
)