tox.ini: remove python2 support
This commit is contained in:
parent
8bfb36e8f9
commit
0cdb505ce5
21
getlasso.sh
21
getlasso.sh
|
@ -1,21 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
PYTHON=`which python2 python | head -n1`
|
||||
# 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
|
||||
|
7
tox.ini
7
tox.ini
|
@ -6,14 +6,12 @@
|
|||
[tox]
|
||||
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/authentic2-cut/{env:BRANCH_NAME:}
|
||||
envlist =
|
||||
py2-dj111-drf34
|
||||
py3-dj111-drf34
|
||||
py3-dj22-drf39
|
||||
|
||||
[tox:jenkins]
|
||||
envlist =
|
||||
pylint
|
||||
py2-dj111-drf34
|
||||
py3-dj111-drf34
|
||||
py3-dj22-drf39
|
||||
|
||||
|
@ -37,9 +35,6 @@ deps =
|
|||
!local: http://git.entrouvert.org/authentic.git/snapshot/authentic-master.tar.gz
|
||||
local: ../authentic2
|
||||
# dependency constraints for authentic
|
||||
py2: django-appconf<1.0.4
|
||||
py2: django-filter<2
|
||||
py2: python-magic
|
||||
py3: file-magic
|
||||
drf34: djangorestframework>=3.4,<3.4.1
|
||||
drf39: djangorestframework>=3.9.2,<3.10
|
||||
|
@ -60,7 +55,6 @@ deps =
|
|||
pyquery
|
||||
|
||||
commands =
|
||||
py2: ./getlasso.sh
|
||||
py3: ./getlasso3.sh
|
||||
./check-migrations.sh
|
||||
py.test {env:COVERAGE:} {env:JUNIT:} {tty:--sw:} {posargs:tests/}
|
||||
|
@ -86,3 +80,4 @@ filterwarnings =
|
|||
ignore:Using user.is_authenticated\(\) and user.is_anonymous\(\) as a method is deprecated.::rest_framework\.*
|
||||
# remind us later
|
||||
once:.*staticfiles.*::django\..*
|
||||
once:please use dns.resolver.resolve
|
||||
|
|
Loading…
Reference in New Issue