From 53c163cd8b64d31a02e97c504e62129910a81e4b Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 8 Sep 2017 01:26:53 +0200 Subject: [PATCH] tox.ini: update --- getlasso.sh | 20 ++++++++++++++++++++ tox.ini | 4 ++++ 2 files changed, 24 insertions(+) create mode 100755 getlasso.sh diff --git a/getlasso.sh b/getlasso.sh new file mode 100755 index 0000000..680da39 --- /dev/null +++ b/getlasso.sh @@ -0,0 +1,20 @@ +#!/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 + diff --git a/tox.ini b/tox.ini index cb19402..856d630 100644 --- a/tox.ini +++ b/tox.ini @@ -10,10 +10,12 @@ setenv = passenv = USER deps = + Django<1.9 pytest pytest-mock pytest-cov pytest-catchlog + pytest-django WebTest psycopg2 mechanize @@ -21,10 +23,12 @@ deps = vobject pyquery http://quixote.python.ca/releases/Quixote-2.7b2.tar.gz + ../gadjo qrcode python-dateutil pillow feedparser commands = + ./getlasso.sh pickle: py.test --without-postgresql-tests {env:COVERAGE:} {posargs:tests} pg: py.test {env:COVERAGE:} {posargs:tests} -- 2.1.4