Skip to content

Commit 0c197f8

Browse files
authored
Fix tox for ci (#134)
* require virtualenv >= 20 in tox * pin pip version for virtualenv creation This is because later versions deprecate py27 and py35 * update tox version
1 parent 216b0ad commit 0c197f8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ matrix:
4545
- TOX_ENV=py37-dj30-drf310
4646

4747
install:
48-
- travis_retry pip install "virtualenv~=14.0.0" "tox~=3.10.0" "coverage<4" "setuptools<40.0.0"
48+
- travis_retry pip install "tox~=3.22.0" "coverage<4" "setuptools<40.0.0"
4949

5050
script:
5151
- tox -ve $TOX_ENV

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ envlist =
55
py{27,35,36,37}-dj{111}-drf{37,39}
66
py{35,36,37}-dj{20,21,22}-drf{37,39}
77
py{36,37}-dj{30}-drf{310}
8+
requires = virtualenv >= 20.0
89

910
[pytest]
1011
norecursedirs = examples
@@ -13,6 +14,9 @@ flake8-max-line-length = 120
1314

1415
[testenv]
1516
download = true
17+
setenv =
18+
VIRTUALENV_PIP=20.2.3
19+
VIRTUALENV_DOWNLOAD=1
1620
deps =
1721
-rrequirements/dev.txt
1822
dj19: Django~=1.9.12

0 commit comments

Comments
 (0)