[tox] envlist = py36,py38,py310 # isolated_build = True # requires = [-rrequirements.txt] [testenv] passenv = USERNAME deps = -rrequirements.txt pytest # change pytest tempdir and add posargs from command line commands = pytest --pyargs redmail -r chars [testenv:minimal] passenv = USERNAME deps = pytest # change pytest tempdir and add posargs from command line commands = pytest --pyargs redmail -r chars [testenv:wheeltest] passenv = USERNAME description = Build and install the wheel and run Pytests in it. deps = pytest skip_install = True commands = # /bin/rm -rf build python setup.py bdist_wheel pip install --upgrade --find-links={toxinidir}/dist redmail pytest --pyargs redmail -r chars [testenv:docs] description = invoke sphinx-build to build the HTML docs basepython = python3.8 commands = pip install .[docs] sphinx-build docs "{toxinidir}/docs/_build/html" --color -W -bhtml {posargs} sphinx-build -b doctest docs "{toxinidir}/docs/_build/html" python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))' [testenv:build] description = build the package. skip_install = true # install_command = pip install --upgrade build commands = python setup.py bdist_wheel sdist [testenv:release] description = build and release the package. skip_install = true deps = twine # install_command = pip install --upgrade build commands = python setup.py bdist_wheel sdist twine upload dist/* [testenv:release-test] description = build and release the package. skip_install = true deps = twine # install_command = pip install --upgrade build commands = python setup.py bdist_wheel sdist twine upload -r testpypi dist/* [testenv:test-send] description = Send actual emails in order to visually test content embedding and actual sending deps = python-dotenv -rrequirements.txt # install_command = pip install --upgrade build commands = python ci/test_send.py