Skip to content

Commit

Permalink
feat: add configuration for tox (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk authored Mar 3, 2021
1 parent 7c16a91 commit 903a434
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
30 changes: 30 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 903a434

Please sign in to comment.