aboutsummaryrefslogtreecommitdiff
path: root/python/pyarmnn/tox.ini
diff options
context:
space:
mode:
authorRichard Burton <richard.burton@arm.com>2020-04-08 16:39:05 +0100
committerJim Flynn <jim.flynn@arm.com>2020-04-10 16:11:09 +0000
commitdc0c6ed9f8b993e63f492f203d7d7080ab4c835c (patch)
treeea8541990b13ebf1a038009aa6b8b4b1ea8c3f55 /python/pyarmnn/tox.ini
parentfe5a24beeef6e9a41366e694f41093565e748048 (diff)
downloadarmnn-dc0c6ed9f8b993e63f492f203d7d7080ab4c835c.tar.gz
Add PyArmNN to work with ArmNN API of 20.02
* Add Swig rules for generating python wrapper * Add documentation * Add tests and testing data Change-Id: If48eda08931514fa21e72214dfead2835f07237c Signed-off-by: Richard Burton <richard.burton@arm.com> Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'python/pyarmnn/tox.ini')
-rw-r--r--python/pyarmnn/tox.ini60
1 files changed, 60 insertions, 0 deletions
diff --git a/python/pyarmnn/tox.ini b/python/pyarmnn/tox.ini
new file mode 100644
index 0000000000..ca1d12bcb7
--- /dev/null
+++ b/python/pyarmnn/tox.ini
@@ -0,0 +1,60 @@
+[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
+skip_install = 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 --template-dir=./docs_conf
+
+[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"