Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from asford/tox_config
Add tox test config.
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ __pycache__/ | |
build/ | ||
dist/ | ||
.coverage | ||
*.swp | ||
.tox/ | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |