Remove nose/rednose from `setup_requires` and instead declare them in `tests_require`. Also explicitly add `nose` and `rednose` to dependencies list in tox.ini (to avoid breaking test runs). `python setup.py nosetests` is the preferred way for running tests, and this works, except that placing test deps (nose/rednose) in the `setup_requires` also means that these dependencies are pulled in for installs of mongoengine. These deps are not actually be required just to run mongoengine, so setup.py should not force users to install these dependencies. This refactoring should not change any test run semantics.
15 lines
374 B
INI
15 lines
374 B
INI
[tox]
|
|
envlist = {py26,py27,py32,py33,py34,pypy,pypy3}-{mg27,mg28}
|
|
#envlist = {py26,py27,py32,py33,py34,pypy,pypy3}-{mg27,mg28,mg30,mgdev}
|
|
|
|
[testenv]
|
|
commands =
|
|
python setup.py nosetests {posargs}
|
|
deps =
|
|
nose
|
|
rednose
|
|
mg27: PyMongo<2.8
|
|
mg28: PyMongo>=2.8,<3.0
|
|
mg30: PyMongo>=3.0
|
|
mgdev: https://github.com/mongodb/mongo-python-driver/tarball/master
|