toxmatrix Package¶
toxmatrix
Package¶
cli
Module¶
tox-matrix
- Usage:
- tox-matrix generate (-d PACKAGE -v VERSION_STRINGS)... [-p PYVERSION]... [options] tox-matrix default
- Options:
generate generate tox.ini file with given options default print default template
-h –help Show this screen. –version Show version. -d PACKAGE, –dep=PACKAGE Package name as a dependency.
-v VERSION_STRINGS, --ver=VERSION_STRINGS Comma seperated list of versions for the given package. -p PYVERSION, --pyver=PYVERSION [default: 2.7 3.3] Python versions for basepython option (can be given multiple times) --template=TEMPLATE A custom template (full path to a file) to generate a tox.ini file contents. Use default to print a default template. --exact [default: False] Pin exact versions of packages.
lib
Module¶
Module for generic helpers
-
toxmatrix.lib.
generate_matrix
(python_versions, packages, version_steps, pin_exact=False)[source]¶ returns a matrix of packages and its versions including different python versions
Parameters: - python_versions – iterable of python version strings e.g. (‘2.7’, ‘3.3’)
- packages – iterable of package names e.g. (‘Django’, ‘Fabric’)
- version_steps – iterable of iterables of version strings from above packages e.g. ((‘1.5’, ‘1.6’, ‘1.7’), (‘1.6’, ‘1.7’, ‘1.8’))
- pin_exact –
defines whether to pin exactly above version.
if True then use exact specified versions (e.g. to produce something like (‘Django==1.5’, ‘Django==1.6’, ‘Django==1.7’))
if False then use specified versions as boundaries (e.g. to produce something like (‘Django>=1.5,<1.6’, ‘Django>=1.6,<1.7’)
Return list: an iterable of two tuples e.g.:
[('python2.7', ( ('Django>=1.5,<1.6', 'Fabric>=1.6,<1.7'), ('Django>=1.5,<1.6', 'Fabric>=1.7,<1.8'), ('Django>=1.6,<1.7', 'Fabric>=1.6,<1.7'), ('Django>=1.6,<1.7', 'Fabric>=1.7,<1.8'), ) ), ('python3.3', ( ('Django>=1.5,<1.6', 'Fabric>=1.6,<1.7'), ('Django>=1.5,<1.6', 'Fabric>=1.7,<1.8'), ('Django>=1.6,<1.7', 'Fabric>=1.6,<1.7'), ('Django>=1.6,<1.7', 'Fabric>=1.7,<1.8'), ) ), ]
template
Module¶
Module for creating tox.ini files