Files @ 20258ae6f2db
Branch filter:

Location: gimmecert/tox.ini

branko
GC-24: Added release script:

- Updated package requirements for development to include twine (for
the release process).
- Added initial version of release script. The script takes care of
preparing the local git repository (maintenance branches, tags,
updates to release notes and setup.py), as well as pushing the
changes to both origin git repository and distribution package to
PyPI.
- Switched to using version 0.0.0 as development version.
[tox]
envlist = {py34,py35,py36},lint,doc

[testenv]
whitelist_externals =
  make

basepython =
  doc: python3
  lint: python3
  py34: python3.4
  py35: python3.5
  py36: python3.6

deps =
  .[test]

commands =
  # Must specify cov-report explicitly, otherwise coverage starts
  # going through the tests as well.
  pytest --cov --cov-report=term-missing:skip-covered --basetemp={envtmpdir} tests/ functional_tests/

[testenv:lint]
deps =
  .[testlint]
commands =
  flake8

[testenv:doc]
deps =
  .[doc]
setenv =
  # Override Sphinx build directory so we do not trample over user's
  # build in source directory.
  BUILDDIR={envtmpdir}/docs_build
commands =
  # Easier to run than changing directory with separate comand. -e
  # will ensure the BUILDDIR gets picked-up and overrides the Makefile
  # content.
  make -C docs/ -e html