[tox] envlist = devenv minversion = 1.6 skipsdist = False [testenv] install_command = pip install --force-reinstall -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} NOSE_WITH_COVERAGE=1 NOSE_COVER_BRANCHES=1 deps = -r{toxinidir}/requirements.txt [testenv:devenv] envdir = devenv basepython = python3.8 usedevelop = True [testenv:py38-release] basepython = python3.8 deps = -r{toxinidir}/requirements.txt commands = # 先调用pyinstaller打包 {envpython} {toxinidir}/Pyinstaller-main.py Build-DataCreating.spec # 整体打包 {envpython} {toxinidir}/release.py {envdir} {toxinidir}/dist/dataCreatingGUI {toxinidir}/dist/dataCreatingGUI_v1.0.0 {toxinidir}