diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5ab3b20 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +bitstring +pygatt +pandas +scikit-learn +numpy +seaborn +pexpect +pylsl==1.10.5; "linux" in sys.platform +pylsl; "linux" not in sys.platform \ No newline at end of file diff --git a/setup.py b/setup.py index 24daa6a..fc924a7 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,5 @@ +from pathlib import Path + from setuptools import setup, find_packages from shutil import copyfile import os @@ -38,16 +40,7 @@ def copy_docs(): zip_safe=False, long_description=long_description, long_description_content_type='text/markdown', - install_requires=[ - "bitstring", - "pygatt", - "pandas", - "scikit-learn", - "numpy", - "seaborn", - "pexpect", - ] + - (["pylsl==1.10.5"] if os.sys.platform.startswith("linux") else ["pylsl"]), + install_requires=Path("requirements.txt").read_text().splitlines(), extras_require={"Viewer V2": ["mne", "vispy"]}, classifiers=[ # How mature is this project? Common values are