tox: stop testing against python 2 (#39330)

This commit is contained in:
Frédéric Péters 2020-01-28 13:33:58 +01:00
parent 912f544a01
commit 7a5af339a4
2 changed files with 3 additions and 26 deletions

View File

@ -1,20 +0,0 @@
#!/bin/sh
# Get venv site-packages path
DSTDIR=`python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
# Get not venv site-packages path
# Remove first path (assuming that is the venv path)
NONPATH=`echo $PATH | sed 's/^[^:]*://'`
SRCDIR=`PATH=$NONPATH python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
# Clean up
rm -f $DSTDIR/lasso.*
rm -f $DSTDIR/_lasso.*
# Link
ln -sv $SRCDIR/lasso.py $DSTDIR
ln -sv $SRCDIR/_lasso.* $DSTDIR
exit 0

View File

@ -1,6 +1,6 @@
[tox] [tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/combo/{env:BRANCH_NAME:} toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/combo/{env:BRANCH_NAME:}
envlist = coverage-py2-pylint,py3 envlist = coverage-py3-pylint
[testenv] [testenv]
usedevelop = True usedevelop = True
@ -25,15 +25,12 @@ deps =
django-webtest<1.9.3 django-webtest<1.9.3
psycopg2 psycopg2
django-mellon>=1.13 django-mellon>=1.13
py2: django-jsonfield<1.3 quixote>=3.0
py2: quixote<3.0
py3: quixote>=3.0
vobject vobject
django-ratelimit<3 django-ratelimit<3
git+http://git.entrouvert.org/debian/django-ckeditor.git git+http://git.entrouvert.org/debian/django-ckeditor.git
commands = commands =
py2: ./getlasso.sh ./getlasso3.sh
py3: ./getlasso3.sh
./get_wcs.sh ./get_wcs.sh
python manage.py compilemessages python manage.py compilemessages
py.test {env:COVERAGE:} {posargs: --junitxml=junit-{envname}.xml tests/} py.test {env:COVERAGE:} {posargs: --junitxml=junit-{envname}.xml tests/}