Skip to content

Commit

Permalink
Added optional install requirements via extras_require
Browse files Browse the repository at this point in the history
  • Loading branch information
dafrose committed Sep 8, 2019
1 parent ea67f87 commit e3923e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- Added optional install requirements via `extras_require` in setup.py
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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
)

0 comments on commit e3923e2

Please sign in to comment.