<commit_before># content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py27,py32,pypy,py25simplejson,sphinxext,tg11,tg15,pecan,coverage
indexserver =
    TG15 = http://www.turbogears.org/1.5/downloads/current/index
    TG20 = http://www.turbogears.org/2.0/downloads/current/index
    TG21 = http://www.turbogears.org/2.1/downloads/current/index

[common]
testtools =
    nose
    webtest
    coverage

[testenv]
deps = 
    d2to1
    nose
    webtest
    coverage
    transaction

setenv=
    COVERAGE_FILE=.coverage.{envname}

#commands=nosetests --verbose []
commands=
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml -w ./wsme/tests --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

downloadcache=.tox/cache

[testenv:py25simplejson]
basepython=python2.5
deps=
    d2to1
    nose
    webtest
    coverage
    simplejson
    zope.interface<=3.8.99
    transaction<=1.1.1

[testenv:py32]
commands=
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml -w ./wsme/tests --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml --omit wsmeext/sphinxext.py wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing --omit wsmeext/sphinxext.py wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:sphinxext]
basepython=python2.5
deps=
    d2to1
    nose
    coverage
    simplejson
    Sphinx
commands=
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml tests/test_sphinxext.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:tg11]
basepython=python2.5
deps=
    d2to1
    nose
    webtest
    coverage
    simplejson
    suds
    lxml
commands=
    {envbindir}/easy_install https://bitbucket.org/cdevienne/wsme-soap/get/tip.zip
    {envbindir}/easy_install -i http://www.turbogears.org/1.1/downloads/current/index/ 'TurboGears<1.1.99'
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml tests/test_tg1.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:tg15]
basepython=python2.5
deps=
    d2to1
    nose
    webtest
    coverage
    simplejson
    suds
    lxml
commands=
    {envbindir}/easy_install https://bitbucket.org/cdevienne/wsme-soap/get/tip.zip
    {envbindir}/easy_install -i http://www.turbogears.org/1.5/downloads/current/index/ 'TurboGears<1.5.99'
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml tests/test_tg15.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:tg21]
basepython=python2.5
deps=
    d2to1
    nose
    coverage
    simplejson
commands=
    {envbindir}/easy_install https://bitbucket.org/cdevienne/wsme-soap/get/tip.zip
    {envbindir}/easy_install -i http://www.turbogears.org/2.1/downloads/current/index/ 'TurboGears2<2.1.99' webtest
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml tests/test_tg20.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:pecan]
basepython=python2.7
deps=
    d2to1
    nose
    webtest
    coverage
    simplejson
    pecan
setenv=
    PYTHONPATH={toxinidir}
    COVERAGE_FILE=.coverage.{envname}

commands=
    {envbindir}/coverage run --source wsme {envbindir}/nosetests -w tests/pecantest test/tests/test_ws.py --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:coverage]
basepython=python
deps=
    coverage
setenv=
    COVERAGE_FILE=.coverage
commands=
    {envbindir}/coverage erase
    {envbindir}/coverage combine
    {envbindir}/coverage xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/protocols/*.py wsmeext/*.py
<commit_msg>Add a 'doc' testenv that builds the documentation<commit_after># content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py27,py32,pypy,py25simplejson,sphinxext,tg11,tg15,pecan,coverage
indexserver =
    TG15 = http://www.turbogears.org/1.5/downloads/current/index
    TG20 = http://www.turbogears.org/2.0/downloads/current/index
    TG21 = http://www.turbogears.org/2.1/downloads/current/index

[common]
testtools =
    nose
    webtest
    coverage

[testenv]
deps = 
    d2to1
    nose
    webtest
    coverage
    transaction

setenv=
    COVERAGE_FILE=.coverage.{envname}

#commands=nosetests --verbose []
commands=
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml -w ./wsme/tests --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

downloadcache=.tox/cache

[testenv:py25simplejson]
basepython=python2.5
deps=
    d2to1
    nose
    webtest
    coverage
    simplejson
    zope.interface<=3.8.99
    transaction<=1.1.1

[testenv:py32]
commands=
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml -w ./wsme/tests --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml --omit wsmeext/sphinxext.py wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing --omit wsmeext/sphinxext.py wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:sphinxext]
basepython=python2.5
deps=
    d2to1
    nose
    coverage
    simplejson
    Sphinx
commands=
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml tests/test_sphinxext.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:tg11]
basepython=python2.5
deps=
    d2to1
    nose
    webtest
    coverage
    simplejson
    suds
    lxml
commands=
    {envbindir}/easy_install https://bitbucket.org/cdevienne/wsme-soap/get/tip.zip
    {envbindir}/easy_install -i http://www.turbogears.org/1.1/downloads/current/index/ 'TurboGears<1.1.99'
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml tests/test_tg1.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:tg15]
basepython=python2.5
deps=
    d2to1
    nose
    webtest
    coverage
    simplejson
    suds
    lxml
commands=
    {envbindir}/easy_install https://bitbucket.org/cdevienne/wsme-soap/get/tip.zip
    {envbindir}/easy_install -i http://www.turbogears.org/1.5/downloads/current/index/ 'TurboGears<1.5.99'
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml tests/test_tg15.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:tg21]
basepython=python2.5
deps=
    d2to1
    nose
    coverage
    simplejson
commands=
    {envbindir}/easy_install https://bitbucket.org/cdevienne/wsme-soap/get/tip.zip
    {envbindir}/easy_install -i http://www.turbogears.org/2.1/downloads/current/index/ 'TurboGears2<2.1.99' webtest
    {envbindir}/coverage run {envbindir}/nosetests --with-xunit --xunit-file nosetests-{envname}.xml tests/test_tg20.py --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:pecan]
basepython=python2.7
deps=
    d2to1
    nose
    webtest
    coverage
    simplejson
    pecan
setenv=
    PYTHONPATH={toxinidir}
    COVERAGE_FILE=.coverage.{envname}

commands=
    {envbindir}/coverage run --source wsme {envbindir}/nosetests -w tests/pecantest test/tests/test_ws.py --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}
    {envbindir}/coverage xml -o coverage-{envname}.xml
    {envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py wsmeext/*.py

[testenv:coverage]
basepython=python
deps=
    coverage
setenv=
    COVERAGE_FILE=.coverage
commands=
    {envbindir}/coverage erase
    {envbindir}/coverage combine
    {envbindir}/coverage xml wsme/*.py wsme/rest/*.py wsmeext/*.py
    {envbindir}/coverage report --show-missing wsme/*.py wsme/protocols/*.py wsmeext/*.py

[testenv:doc]
deps=
    Sphinx

changedir=
    doc

commands=
    #{envbindir}/easy_install https://bitbucket.org/cdevienne/wsme-soap/get/tip.zip
    easy_install ../../wsme-soap
    {envbindir}/easy_install https://bitbucket.org/cdevienne/wsme-extdirect/get/tip.zip
    make html

{'fraction_non_alphanumeric': 0.14537536291995024, 'fraction_numerical': 0.01845707175445873, 'mean_word_length': 3.3761343012704175, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 12, 'xml': 48}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1227888', 'n_tokens_mistral': 3886, 'n_tokens_neox': 3695, 'n_words': 629}