From 95f6059050b64c2cde9c318dfc7c80bf6173f377 Mon Sep 17 00:00:00 2001 From: felix Date: Fri, 10 Apr 2020 13:52:17 +0200 Subject: [PATCH] refactor to requirements.txt --- requirements.txt | 9 +++++++++ setup.py | 13 +++---------- 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 requirements.txt 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