tox.ini 1.15 KB
Newer Older
1 2
# wendelin.core | tox setup
[tox]
3
envlist = py27-ZODB3-{zblk0,zblk1}-{fs,zeo,neo}-{numpy110,numpy111}, {py27,py34,py35}-ZODB4-{zblk0,zblk1}-{fs,zeo}-{numpy110,numpy111}
4
# (NOTE ZODB3 does not work on python3)
5
# (NOTE NEO does not work on ZODB4)
6 7 8 9 10 11 12 13 14 15

[testenv]
deps    =
    # why tox does not get it from extras_require['test'] ?
    pytest

    # latest ZODB from 3 series
    ZODB3:  ZODB3 >=3.10, <3.11dev

    # latest current ZODB _4_
16 17
    ZODB4:  ZODB >=4.0, <5.0dev
    ZODB4:  ZEO  >=4.0, <5.0dev
18

19
    neo:    neoppod >= 1.6.2
20
    # neo.tests also imports MySQLdb unconditionally
21
    neo:    mysqlclient
22 23 24 25 26


    # zeo: ZEO is already required by ZODB, but for testing utilities from ZEO we also need:
    zeo:    zope.testing

27 28
    numpy110: numpy >=1.10.4, <1.11.0
    numpy19: numpy >=1.11.0, <1.12.0
29

30 31 32 33
setenv =
    fs:  WENDELIN_CORE_TEST_DB=<fs>
    zeo: WENDELIN_CORE_TEST_DB=<zeo>
    neo: WENDELIN_CORE_TEST_DB=<neo>
34

35
    zblk0:  WENDELIN_CORE_ZBLK_FMT=ZBlk0
36
    zblk1:  WENDELIN_CORE_ZBLK_FMT=ZBlk1
37

38 39 40
commands= {envpython} setup.py test
# XXX setenv = TMPDIR = ... ?  (so that /tmp is not on tmpfs and we don't run out of memory on bench)
# + {envpython} setup.py bench  (?)