Remove test dependencies from Python packages (#4572)
* Remove test dependencies from Python packages * Make test deptype more clear for a couple more packages
This commit is contained in:
parent
1d741a2110
commit
3e087f2e25
@ -34,7 +34,7 @@ class PyBrian2(PythonPackage):
|
||||
version('2.0.1', 'df5990e9a71f7344887bc02f54dfd0f0')
|
||||
version('2.0rc3', '3100c5e4eb9eb83a06ff0413a7d43152')
|
||||
|
||||
variant('docs', default=False)
|
||||
variant('docs', default=False, description='Build the documentation')
|
||||
|
||||
# depends on py-setuptools@6: for windows, if spack targets windows,
|
||||
# this will need to be added here
|
||||
@ -45,6 +45,6 @@ class PyBrian2(PythonPackage):
|
||||
depends_on('py-jinja2@2.7:', type=('build', 'run'))
|
||||
depends_on('py-cpuinfo@0.1.6:', type=('build', 'run'))
|
||||
|
||||
# depends_on('py-nosetests@1.0:', type=('build', 'run')) # extra test
|
||||
depends_on('py-nosetests@1.0:', type=('build', 'run'), when='+docs')
|
||||
# TODO: Add a 'test' deptype
|
||||
# depends_on('py-nosetests@1.0:', type='test')
|
||||
depends_on('py-sphinx@1.4.2:', type=('build', 'run'), when='+docs')
|
||||
|
@ -93,8 +93,9 @@ class PyMatplotlib(PythonPackage):
|
||||
depends_on('texlive', when='+latex', type='run')
|
||||
|
||||
# Testing dependencies
|
||||
depends_on('py-nose') # type='test'
|
||||
depends_on('py-mock') # type='test'
|
||||
# TODO: Add a 'test' deptype
|
||||
# depends_on('py-nose', type='test')
|
||||
# depends_on('py-mock', type='test')
|
||||
|
||||
# Required libraries that ship with matplotlib
|
||||
# depends_on('agg@2.4:')
|
||||
|
@ -37,5 +37,7 @@ class PyPylint(PythonPackage):
|
||||
depends_on('py-six', type=('build', 'run'))
|
||||
depends_on('py-astroid', type=('build', 'run'))
|
||||
depends_on('py-logilab-common', type=('build', 'run'))
|
||||
depends_on('py-nose', type='build')
|
||||
depends_on('py-setuptools', type='build')
|
||||
|
||||
# TODO: Add a 'test' deptype
|
||||
# depends_on('py-nose', type='test')
|
||||
|
@ -42,8 +42,10 @@ class PyPynn(PythonPackage):
|
||||
depends_on('python@2.6:2.8,3.3:')
|
||||
depends_on('py-jinja2@2.7:', type=('build', 'run'))
|
||||
depends_on('py-docutils@0.10:', type=('build', 'run'))
|
||||
depends_on('py-mock@1.0:', type=('build', 'run'))
|
||||
depends_on('py-numpy@1.5:', type=('build', 'run'))
|
||||
depends_on('py-quantities@0.10:', type=('build', 'run'))
|
||||
depends_on('py-lazyarray@0.2.9:', type=('build', 'run'))
|
||||
depends_on('py-neo@0.3:', type=('build', 'run'))
|
||||
|
||||
# TODO: Add a 'test' deptype
|
||||
# depends_on('py-mock@1.0:', type='test')
|
||||
|
@ -42,4 +42,6 @@ class PyQtconsole(PythonPackage):
|
||||
depends_on('py-pygments', type=('build', 'run'))
|
||||
depends_on('py-traitlets', type=('build', 'run'))
|
||||
depends_on('py-sphinx@1.3:', type=('build', 'run'), when='+docs')
|
||||
# mock; python_version=="2.7" and extra == 'test'
|
||||
|
||||
# TODO: Add a 'test' deptype
|
||||
# depends_on('py-mock', type='test', when='^python@2.7:2.8')
|
||||
|
@ -48,6 +48,7 @@ class PyTheano(PythonPackage):
|
||||
|
||||
depends_on('cuda', when='+gpu')
|
||||
depends_on('libgpuarray', when='+gpu')
|
||||
# test requirements
|
||||
# depends_on('py-nose@1.3.0:', type=('build', 'run'))
|
||||
# depends_on('py-nose-parameterized@0.5.0:', type=('build', 'run'))
|
||||
|
||||
# TODO: Add a 'test' deptype
|
||||
# depends_on('py-nose@1.3.0:', type='test')
|
||||
# depends_on('py-nose-parameterized@0.5.0:', type='test')
|
||||
|
Loading…
Reference in New Issue
Block a user