Replace nose-parameterized by parameterized

The former is deprecated in favor of the latter.
上级 a9a105f6
...@@ -36,7 +36,7 @@ install: ...@@ -36,7 +36,7 @@ install:
- source activate pyenv - source activate pyenv
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install pydot; else pip install pydot-ng; fi - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install pydot; else pip install pydot-ng; fi
- pip install . --no-deps --upgrade - pip install . --no-deps --upgrade
- pip install flake8-future-import nose-parameterized==0.5.0 sphinx_rtd_theme - pip install flake8-future-import parameterized sphinx_rtd_theme
# nose-exclude plugin allow us to tell nosetests to exclude folder with --exclude-dir=path/to/directory. # nose-exclude plugin allow us to tell nosetests to exclude folder with --exclude-dir=path/to/directory.
- pip install nose-exclude nose-timer - pip install nose-exclude nose-timer
......
...@@ -24,7 +24,7 @@ Install requirements and optional packages ...@@ -24,7 +24,7 @@ Install requirements and optional packages
.. code-block:: bash .. code-block:: bash
conda install numpy scipy mkl-service libpython <m2w64-toolchain> <nose> <nose-parameterized> <sphinx> <pydot-ng> conda install numpy scipy mkl-service libpython <m2w64-toolchain> <nose> <parameterized> <sphinx> <pydot-ng>
.. note:: .. note::
......
sphinx>=1.3.0 sphinx>=1.3.0
pygments pygments
nose>=1.3.0 nose>=1.3.0
nose-parameterized>=0.5.0 parameterized
scipy==0.13 scipy==0.13
-e . --install-option="--no-deps" -e . --install-option="--no-deps"
...@@ -164,7 +164,7 @@ def do_setup(): ...@@ -164,7 +164,7 @@ def do_setup():
install_requires=['numpy>=1.9.1', 'scipy>=0.14', 'six>=1.9.0'], install_requires=['numpy>=1.9.1', 'scipy>=0.14', 'six>=1.9.0'],
# pygments is a dependency for Sphinx code highlight # pygments is a dependency for Sphinx code highlight
extras_require={ extras_require={
'test': ['nose>=1.3.0', 'nose-parameterized>=0.5.0', 'flake8<3'], 'test': ['nose>=1.3.0', 'parameterized', 'flake8<3'],
'doc': ['Sphinx>=0.5.1', 'pygments'] 'doc': ['Sphinx>=0.5.1', 'pygments']
}, },
package_data={ package_data={
......
...@@ -3,7 +3,7 @@ import logging ...@@ -3,7 +3,7 @@ import logging
from collections import OrderedDict from collections import OrderedDict
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
from nose_parameterized import parameterized from parameterized import parameterized
import numpy as np import numpy as np
from itertools import product, chain from itertools import product, chain
......
...@@ -2,7 +2,7 @@ from __future__ import absolute_import, print_function, division ...@@ -2,7 +2,7 @@ from __future__ import absolute_import, print_function, division
import time import time
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
from nose_parameterized import parameterized from parameterized import parameterized
import numpy as np import numpy as np
try: try:
from scipy import ndimage from scipy import ndimage
......
...@@ -3,7 +3,7 @@ from __future__ import absolute_import, print_function, division ...@@ -3,7 +3,7 @@ from __future__ import absolute_import, print_function, division
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
from nose.plugins.attrib import attr from nose.plugins.attrib import attr
from nose.tools import assert_equals from nose.tools import assert_equals
from nose_parameterized import parameterized from parameterized import parameterized
import numpy as np import numpy as np
from six import integer_types from six import integer_types
......
from __future__ import absolute_import, print_function, division from __future__ import absolute_import, print_function, division
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
from nose_parameterized import parameterized from parameterized import parameterized
from itertools import product from itertools import product
import os import os
import unittest import unittest
......
...@@ -4,7 +4,7 @@ from functools import wraps ...@@ -4,7 +4,7 @@ from functools import wraps
import logging import logging
import sys import sys
import unittest import unittest
from nose_parameterized import parameterized from parameterized import parameterized
from six import integer_types from six import integer_types
from six.moves import StringIO from six.moves import StringIO
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论