Skip to content

Commit

Permalink
Update extras_require to include requirements for examples (#1140)
Browse files Browse the repository at this point in the history
* Update extras_require to include requirements for examples

* Add demo dependencies back

* Add comment to reference issue

* Add pandas to the examples requirements

* Update etstools.py for consistency, pandas is in the dependencies traitsui's own test already

* numpy is in the examples requirements too
  • Loading branch information
kitchoi committed Aug 14, 2020
1 parent 88f4cd8 commit e6163f9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions etstool.py
Expand Up @@ -116,10 +116,14 @@
}

# Additional toolkit-independent dependencies for demo testing
# This should correspond to the "examples" dependencies in extras_requires but
# the following names are used by EDM.
test_dependencies = {
"apptools",
"chaco",
"h5py",
"numpy",
"pandas",
"pytables",
}

Expand Down
14 changes: 13 additions & 1 deletion traitsui/__init__.py
Expand Up @@ -27,7 +27,19 @@
"pyqt": ["pyqt>=4.10", "pygments"],
"pyqt5": ["pyqt5", "pygments"],
"pyside2": ["pyside2", "shiboken2", "pygments"],
"demo": ["configobj", "docutils"],
"demo": [
# to be deprecated, see enthought/traitsui#950
"configobj", "docutils",
],
"examples": [
# Dependencies for examples
"apptools",
"chaco", # for a very simple example, see enthought/traitsui#1139
"h5py",
"numpy",
"pandas",
"tables",
],
"test": ["packaging"],
}

Expand Down

0 comments on commit e6163f9

Please sign in to comment.