Skip to content

Commit 02234bf

Browse files
committed
Move testenv requirements into test-requirements
Neaten up the tox.ini by moving testing requirements into their own test-requirements.txt
1 parent 460bf7d commit 02234bf

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage
2+
pretend
3+
pytest
4+
pytest-capturelog

tox.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ envlist = py27,py34,pep8,pip-missing-reqs
33

44
[testenv]
55
deps =
6-
coverage
7-
pretend
8-
pytest
9-
pytest-capturelog
106
-r{toxinidir}/requirements.txt
7+
-r{toxinidir}/test-requirements.txt
118
commands =
129
coverage run --source pip_missing_reqs/find_missing_reqs.py \
1310
-m pytest --strict []
@@ -25,6 +22,8 @@ deps = flake8
2522
commands = flake8 pip_missing_reqs
2623

2724
[testenv:pip-missing-reqs]
25+
# Overwrite deps so not to dirty the environment
26+
deps = -r{toxinidir}/requirements.txt
2827
commands = python -m pip_missing_reqs.find_missing_reqs \
2928
--ignore-file=pip_missing_reqs/test* pip_missing_reqs
3029

0 commit comments

Comments
 (0)