From c75772855aa1596923a0048a24d787850c7a5b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Wed, 17 Mar 2021 22:15:36 -0700 Subject: [PATCH] tests: add tox support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You can run 'tox' to run the tests now. Signed-off-by: Martí Bolívar --- .gitignore | 1 + tox.ini | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 5e7df01..cf284f3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ src/devicetree.egg-info/ build/ devicetree.egg-info/ __pycache__/ +.tox/ diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..59d9304 --- /dev/null +++ b/tox.ini @@ -0,0 +1,11 @@ +[tox] +envlist=py3 + +[testenv] +deps = + setuptools-scm + pytest +setenv = + TOXTEMPDIR={envtmpdir} +commands = + python -m pytest {posargs:tests}