cubicweb/skeleton/tox.ini.tmpl
author Denis Laxalde <denis.laxalde@logilab.fr>
Tue, 28 Feb 2017 16:46:16 +0100
changeset 11987 d432911e3c26
parent 11692 d46e0b3a13cc
child 12099 5dd20fc21557
permissions -rw-r--r--
[pyramid] Drop module-level cache and cleanup looping tasks in tools And use a LRU cache over cached_build_user function. This looping task is problematic because it would not be run from within a WSGI application which does not have a repository with a tasks manager. This pulls an explicit dependency on 'repoze.lru' but it's not a big deal since pyramid already depends on this. RPM spec file not update since it does not even mention pyramid...

[tox]
envlist = py27,py34,flake8

[testenv]
sitepackages = true
deps =
  pytest
commands =
  {envpython} -m pytest {posargs:test}

[testenv:flake8]
skip_install = true
whitelist_externals =
  flake8
deps =
  flake8
commands = flake8

[flake8]
exclude = cubicweb_%(cubename)s/migration/*,test/data/*,.tox/*