From 903a434d4b6f9a66665b9710bd47d84f9fa6de64 Mon Sep 17 00:00:00 2001 From: Naveen M K Date: Wed, 3 Mar 2021 10:35:52 +0530 Subject: [PATCH] feat: add configuration for tox (#36) --- MANIFEST.in | 3 +++ tox.ini | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 tox.ini diff --git a/MANIFEST.in b/MANIFEST.in index 4f39a858..731d757b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,3 +2,6 @@ global-include *.pyx *.pxd recursive-include tests *.py *.ttf LICENSE.txt recursive-include docs *.rst *.py make* _*/* prune docs/_build +include *.md +include *.txt +include .coveragerc diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..4f41585a --- /dev/null +++ b/tox.ini @@ -0,0 +1,30 @@ +# 'Tox' is a tool for automating sdist/build/test cycles against +# multiple Python versions: +# https://pypi.python.org/pypi/tox +# https://tox.readthedocs.io/ + +# To run against a specific subset of Python versions, use: +# tox -e py37 + +# Tox assumes that you have appropriate Python interpreters already +# installed and that they can be run as (e.g.) 'python3.8' + +[tox] +envlist = + lint + py36,py37,py38,py39, + +[testenv] +deps= -Ur{toxinidir}/requirements-dev.txt +passenv= PKG_CONFIG_PATH +commands= + {envpython} setup.py build_ext -i --coverage + python -m pytest + +[testenv:lint] +commands = + pre-commit run --all-files --show-diff-on-failure +deps = + pre-commit +skip_install = true +passenv = PRE_COMMIT_COLOR