diff --git a/.gitignore b/.gitignore index f157e10..702e5a4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ __pycache__/ build/ dist/ .coverage -*.swp +.tox/ +*.swp \ No newline at end of file diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..28dd0fe --- /dev/null +++ b/tox.ini @@ -0,0 +1,24 @@ +# content of: tox.ini , put in same dir as setup.py +[tox] +envlist = py38,py39,py310 + +# tox-wheel: supports bdist install for future src layout +# tox-conda: install python interpreter versions via conda +requires = + tox-wheel + tox-conda + +[testenv] +# include conda-forge channel to fetch python 3.11 +conda_channels = conda-forge + +# pytest command runs from root checkout +# install via `setup.py develop` so build artifact is placed in source tree +usedevelop = true + +# when package switches to src layout, remove usedevelop and switch to wheel install +# wheel = true + +deps = pytest +commands = + pytest