Ticket #7228: add-tox-file-7228-3.patch

File add-tox-file-7228-3.patch, 1.8 KB (added by Chris Wolfe, 6 years ago)
  • new file tox.ini

    diff --git a/tox.ini b/tox.ini
    new file mode 100644
    index 0000000..c28e5d3
    - +  
     1[tox]
     2envlist=py{26,27,33},py{26,27}-{select_gc,without_modules},pyflakes,twistedchecker,api_docs,narrative_docs
     3skipsdist=True
     4
     5[testenv]
     6deps=
     7    py{26,27},py{26,27}-{select_gc,without_modules}: zope.interface >= 3.6.1
     8    py33: zope.interface >= 4.0.0
     9commands =
     10    py{26,27}: {toxinidir}/bin/trial {posargs:twisted}
     11    py33: {toxinidir}/admin/run-python3-tests
     12    py{26,27}-without_modules: {toxinidir}/bin/trial --without-module OpenSSL --without-module Crypto {posargs:twisted}
     13    py{26,27}-select_gc: {toxinidir}/bin/trial --force-gc {posargs:twisted}
     14
     15[testenv:pyflakes]
     16basepython=python2.7
     17deps= pyflakes
     18commands=pyflakes {toxinidir}/{posargs:twisted}
     19
     20[testenv:coverage]
     21basepython=python2.7
     22deps=
     23    coverage
     24    zope.interface >= 3.6.1
     25commands=
     26    coverage erase
     27    coverage run --omit {toxinidir}/*_trial_temp/* --branch {toxinidir}/bin/trial --reporter=bwverbose {posargs:twisted}
     28    coverage report
     29
     30[testenv:twistedchecker]
     31basepython=python2.7
     32deps=twistedchecker
     33commands=twistedchecker {posargs:twisted}
     34
     35#####################
     36# Build documentation
     37#####################
     38
     39[testenv:api_docs]
     40basepython=python2.7
     41deps =
     42    pydoctor
     43    epydoc
     44    nevow
     45commands={toxinidir}/bin/admin/build-apidocs {toxinidir} apidocs
     46
     47[testenv:narrative_docs]
     48basepython=python2.7
     49deps=sphinx >= 1.2.1
     50changedir=docs
     51commands=sphinx-build -W -b html -d {toxinidir}/docs/_build . {toxinidir}/docs/_build/
  • new file twisted/topfiles/7228.feature

    diff --git a/twisted/topfiles/7228.feature b/twisted/topfiles/7228.feature
    new file mode 100644
    index 0000000..401f375
    - +  
     1Add a tox.ini file to simplify testing with virtualenvs
     2 No newline at end of file