Skip to content

Commit

Permalink
Merge pull request #36 from asford/tox_config
Browse files Browse the repository at this point in the history
Add tox test config.
  • Loading branch information
jaltmayerpizzorno committed Dec 14, 2022
2 parents 118ec32 + 953dd42 commit 45dda2a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -5,4 +5,5 @@ __pycache__/
build/
dist/
.coverage
*.swp
.tox/
*.swp
24 changes: 24 additions & 0 deletions 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

0 comments on commit 45dda2a

Please sign in to comment.