Add tox config

This commit is contained in:
Ryan P Kilby 2019-04-17 20:18:29 -07:00
parent 737c0102ad
commit 33c9bbd24d
3 changed files with 27 additions and 11 deletions

View File

@ -29,12 +29,6 @@ setup(
extras_require={
'with_social': ['django-allauth>=0.25.0'],
},
tests_require=[
'responses>=0.5.0',
'django-allauth>=0.25.0',
'djangorestframework-jwt>=1.9.0',
],
test_suite='runtests.runtests',
include_package_data=True,
classifiers=[
'Framework :: Django',

View File

@ -1,5 +0,0 @@
django-allauth>=0.25.0
responses>=0.3.0
flake8==2.4.0
djangorestframework-jwt>=1.7.2
djangorestframework>=3.6.4

27
tox.ini Normal file
View File

@ -0,0 +1,27 @@
[tox]
envlist =
py{27,35,36}-django111-drf{38,39},
py{35,36,37}-django20-drf{38,39},
lint,
[testenv]
commands = coverage run --parallel-mode manage.py test
usedevelop = True
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
django111: Django ~= 1.11.0
django20: Django ~= 2.0.0
drf38: djangorestframework ~= 3.8.0
drf39: djangorestframework ~= 3.9.0
djangorestframework-jwt >= 1.9.0
django-allauth >= 0.25.0
responses >= 0.5.0
coverage
parallel_show_output = True
[testenv:lint]
commands = flake8 rest_auth tests {posargs}
deps =
flake8