diff options
author | Matthew Bentham <Matthew.Bentham@arm.com> | 2019-12-02 12:59:43 +0000 |
---|---|---|
committer | Matthew Bentham <Matthew.Bentham@arm.com> | 2019-12-02 16:23:45 +0000 |
commit | 245d64c60d0ea30f5080ff53225b5169927e24d6 (patch) | |
tree | d623e46d7d5ddb34ef3bb84c45df3ada9209ce82 /python/pyarmnn/tox.ini | |
parent | 88d5f9f1615fa956464b8932b574d85c37cec937 (diff) | |
download | armnn-experimental/pyarmnn.tar.gz |
Work in progress of python bindings for Arm NNexperimental/pyarmnn
Not built or tested in any way
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Change-Id: Ie7f92b529aa5087130f0c5cc8c17db1581373236
Diffstat (limited to 'python/pyarmnn/tox.ini')
-rw-r--r-- | python/pyarmnn/tox.ini | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/python/pyarmnn/tox.ini b/python/pyarmnn/tox.ini new file mode 100644 index 0000000000..c182871f12 --- /dev/null +++ b/python/pyarmnn/tox.ini @@ -0,0 +1,64 @@ +; Copyright © 2019 Arm Ltd. All rights reserved. +; SPDX-License-Identifier: MIT +[tox] +skip_missing_interpreters=true +envlist = + py35 + py36 + py37 + +[testenv] +deps = pytest==5.2.0 + pytest-cov==2.8.1 + attrs==19.3.0 + setuptools==41.6.0 + numpy==1.17.2 + pillow==6.1.0 + +recreate = True +whitelist_externals = /bin/sh +commands = + python -m pytest test/ -v {posargs} --junit-xml=test_report_junit-{envname}.xml --cov=pyarmnn --cov-report xml:coverage-{envname}.xml + + +[testenv:devenv] +envdir = env +basepython = python3.6 +usedevelop = True +deps = {[testenv]deps} + tox +recreate = True +commands = python -c "import sys; print('Dev environment created: ' + sys.executable)" + +[testenv:gen] +basepython = python3.6 +skip_install = True +usedevelop = True +passenv = + ARMNN_LIB + ARMNN_INCLUDE +commands = + python setup.py clean --all + python ./swig_generate.py + python setup.py build_ext --inplace + +[testenv:doc] +basepython = python3.6 +deps = pdoc3==0.6.3 +passenv = + PYARMNN_DEV_VER +commands = + python ./scripts/generate_docs.py --html --output-dir docs pyarmnn --force + +[testenv:pylint] +basepython = python3.6 +deps = pylint==2.3.1 + numpy==1.17.2 +recreate = False +skip_install = True +usedevelop = True +setenv = + PYTHONPATH = src +commands = + sh -c "pylint --rcfile=pylintconfig src --output-format=parseable --reports=no > pylint_results.txt || true" + |