Projet

Général

Profil

0001-tox.ini-update.patch

Benjamin Dauvergne, 08 septembre 2017 02:52

Télécharger (1,6 ko)

Voir les différences:

Subject: [PATCH] tox.ini: update

 getlasso.sh | 20 ++++++++++++++++++++
 tox.ini     |  4 ++++
 2 files changed, 24 insertions(+)
 create mode 100755 getlasso.sh
getlasso.sh
1
#!/bin/sh
2

  
3
# Get venv site-packages path
4
DSTDIR=`python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
5

  
6
# Get not venv site-packages path
7
# Remove first path (assuming that is the venv path)
8
NONPATH=`echo $PATH | sed 's/^[^:]*://'`
9
SRCDIR=`PATH=$NONPATH python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
10

  
11
# Clean up
12
rm -f $DSTDIR/lasso.*
13
rm -f $DSTDIR/_lasso.*
14

  
15
# Link
16
ln -sv $SRCDIR/lasso.py $DSTDIR
17
ln -sv $SRCDIR/_lasso.* $DSTDIR
18

  
19
exit 0
20

  
tox.ini
10 10
passenv =
11 11
    USER
12 12
deps =
13
    Django<1.9
13 14
    pytest
14 15
    pytest-mock
15 16
    pytest-cov
16 17
    pytest-catchlog
18
    pytest-django
17 19
    WebTest
18 20
    psycopg2
19 21
    mechanize
......
21 23
    vobject
22 24
    pyquery
23 25
    http://quixote.python.ca/releases/Quixote-2.7b2.tar.gz
26
    ../gadjo
24 27
    qrcode
25 28
    python-dateutil
26 29
    pillow
27 30
    feedparser
28 31
commands =
32
    ./getlasso.sh
29 33
    pickle:  py.test --without-postgresql-tests {env:COVERAGE:} {posargs:tests}
30 34
    pg:  py.test {env:COVERAGE:} {posargs:tests}
31
-