Skip to content

Commit 903a434

Browse files
authored
feat: add configuration for tox (#36)
1 parent 7c16a91 commit 903a434

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ global-include *.pyx *.pxd
22
recursive-include tests *.py *.ttf LICENSE.txt
33
recursive-include docs *.rst *.py make* _*/*
44
prune docs/_build
5+
include *.md
6+
include *.txt
7+
include .coveragerc

tox.ini

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# 'Tox' is a tool for automating sdist/build/test cycles against
2+
# multiple Python versions:
3+
# https://pypi.python.org/pypi/tox
4+
# https://tox.readthedocs.io/
5+
6+
# To run against a specific subset of Python versions, use:
7+
# tox -e py37
8+
9+
# Tox assumes that you have appropriate Python interpreters already
10+
# installed and that they can be run as (e.g.) 'python3.8'
11+
12+
[tox]
13+
envlist =
14+
lint
15+
py36,py37,py38,py39,
16+
17+
[testenv]
18+
deps= -Ur{toxinidir}/requirements-dev.txt
19+
passenv= PKG_CONFIG_PATH
20+
commands=
21+
{envpython} setup.py build_ext -i --coverage
22+
python -m pytest
23+
24+
[testenv:lint]
25+
commands =
26+
pre-commit run --all-files --show-diff-on-failure
27+
deps =
28+
pre-commit
29+
skip_install = true
30+
passenv = PRE_COMMIT_COLOR

0 commit comments

Comments
 (0)