Skip to content

Commit

Permalink
Add tests_require to enable extras to install when calling python set…
Browse files Browse the repository at this point in the history
…up.py test (#1336)

* add test_req

* mv test env to separate variable (rm duplication)
  • Loading branch information
menshikh-iv authored and tmylk committed May 19, 2017
1 parent 36355ac commit 08872c0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ def finalize_options(self):
"""


test_env = ['testfixtures',
'unittest2',
'Morfessor==2.0.2a4',
'scikit-learn',
'pyemd']

setup(
name='gensim',
version='2.1.0',
Expand Down Expand Up @@ -282,15 +288,11 @@ def finalize_options(self):
'six >= 1.5.0',
'smart_open >= 1.2.1',
],
tests_require=test_env,
extras_require={
'distributed': ['Pyro4 >= 4.27'],
'wmd': ['pyemd >= 0.2.0'],
'test': [
'testfixtures',
'unittest2',
'Morfessor==2.0.2a4',
'scikit-learn'
],
'test': test_env,
},

include_package_data=True,
Expand Down

0 comments on commit 08872c0

Please sign in to comment.