Files
jhalfs/tox.ini
Jeremy Huntwork 96686d659f Add a Python entrypoint and packaging config
This commit will turn the source into a Python package which can
  be packaged using setup.py and/or installed via pip.

  When installed, a new binary named 'jhalfs' will be placed in the
  system PATH that serves as a wrapper for the main() method in the
  jhalfs module. All the previous scripts are moved 'as-is' into the
  module's path and will be packaged with the module.

  At run-time 'jhalfs' creates a $HOME/.jhalfs directory (or
  ./.jhalfs if $HOME is unset), runs menuconfig as needed, symlinks
  all the scripts included in the package to the .jhalfs dir and then
  invokes `.jhalfs/jhalfs.sh run`
2019-04-26 13:07:13 -04:00

18 lines
426 B
INI

[tox]
envlist = py37
[testenv]
usedevelop = true
passenv = SHELL, HOME=.cache
deps=
coverage==4.5.*
flake8==3.7.*
pytest==4.4.*
commands=
flake8 jhalfs
flake8 tests
coverage erase
coverage run --source jhalfs,tests --branch {envbindir}/py.test -v {posargs}
coverage html --include={toxinidir}/jhalfs/*,{toxinidir}/tests/*
coverage report -m --include={toxinidir}/jhalfs/* --fail-under=100