mirror of
https://github.com/automate-lfs/jhalfs.git
synced 2026-01-12 07:57:36 +00:00
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`
18 lines
426 B
INI
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
|