From e3923e27460413fd46f842402d0367904bfee88f Mon Sep 17 00:00:00 2001 From: drose Date: Sun, 8 Sep 2019 17:25:33 +0200 Subject: [PATCH] Added optional install requirements via `extras_require` --- CHANGELOG.md | 4 +--- setup.py | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e9e8462..595b4453 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,4 @@ get all nodes within that particular level. For example `mysubcircuit1/all/mynode` will get all nodes with label `mynode` that are in one level of sub-circuits below `mysubcircuit`. - Tensorflow support now relies on the current 2.0 release candidate `tensorflow-2.0-rc` - -#### Further planned changes for this release -- create light-weight version of `ComputeGraph` that only has the `run` method and get/set methods to adapt values. \ No newline at end of file +- Added optional install requirements via `extras_require` in setup.py \ No newline at end of file diff --git a/setup.py b/setup.py index d8d48e63..a5755aa2 100755 --- a/setup.py +++ b/setup.py @@ -21,6 +21,14 @@ "Topic :: Scientific/Engineering", ] +EXTRAS = {"tf": ["tensorflow==2.0.0-rc0"], + "plot": ["seaborn", "pydot"], + "proc": ["mne", "scipy"], + "cluster": ["paramiko", "h5py"], + "numba": ["numba"]} + +EXTRAS["all"] = [item for sublist in EXTRAS.values() for item in sublist] + with open("README.md", "r", encoding="utf8") as fh: DESCRIPTION = fh.read() @@ -35,6 +43,7 @@ zip_safe=False, python_requires='>=3.6', install_requires=INSTALL_REQUIREMENTS, + extras_require=EXTRAS, classifiers=CLASSIFIERS, include_package_data=True # include additional non-python files specified in MANIFEST.in )