Skip to main content

Tox Matrix

https://badge.fury.io/py/tox-matrix.png https://travis-ci.org/slafs/tox-matrix.png?branch=master https://pypip.in/d/tox-matrix/badge.png

Project for creating tox.ini files with multiple dependencies.

A little utility script to generate tox.ini files. It should be handy in case where your project have multiple different dependencies with different version and you would like to test all available configurations of them.

Quick start

Install it:

pip install tox-matrix

Now let’s assume you’d like to test your project against different versions of Django (latest 1.5.X and 1.6.X ) and Fabric (latest 1.7.X and 1.8.X) using python2.7 and python3.3. You could do something like this:

tox-matrix generate -d Django -v 1.5,1.6,1.7 -d Fabric -v 1.7,1.8,1.9 -p 2.7 -p 3.3

Which should generate this tox.ini file content to stdout:

[tox]
envlist = py27-A, py27-B, py27-C, py27-D, py33-A, py33-B, py33-C, py33-D

[testenv]
commands = py.test

[testenv:py27-A]
basepython = python2.7
deps = {[testenv]deps}
    Django>=1.5,<1.6
    Fabric>=1.7,<1.8

[testenv:py27-B]
basepython = python2.7
deps = {[testenv]deps}
    Django>=1.5,<1.6
    Fabric>=1.8,<1.9

[testenv:py27-C]
basepython = python2.7
deps = {[testenv]deps}
    Django>=1.6,<1.7
    Fabric>=1.7,<1.8

[testenv:py27-D]
basepython = python2.7
deps = {[testenv]deps}
    Django>=1.6,<1.7
    Fabric>=1.8,<1.9

[testenv:py33-A]
basepython = python3.3
deps = {[testenv]deps}
    Django>=1.5,<1.6
    Fabric>=1.7,<1.8

[testenv:py33-B]
basepython = python3.3
deps = {[testenv]deps}
    Django>=1.5,<1.6
    Fabric>=1.8,<1.9

[testenv:py33-C]
basepython = python3.3
deps = {[testenv]deps}
    Django>=1.6,<1.7
    Fabric>=1.7,<1.8

[testenv:py33-D]
basepython = python3.3
deps = {[testenv]deps}
    Django>=1.6,<1.7
    Fabric>=1.8,<1.9

Features

  • Generate tox.ini files

  • Pin versions either with exact ones or by range

  • Use a Jinja2 template for your tox.ini file

History

0.1.1 (2014-03-26)

  • Fixes for installation and tests

0.1.0 (2014-03-23)

  • First release on PyPI.

Metadata

Release files for tox-matrix 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tox-matrix 0.1.1
File Size Uploaded
tox-matrix-0.1.1.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tox-matrix 0.1.1
File Interpreter ABI Platform
tox_matrix-0.1.1-py27-none-any.whl Python 2.7 none any Details

Total release size: 15.3 kB

Release files / tox-matrix-0.1.1.tar.gz

Download URL tox-matrix-0.1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5350dbb9124539d21d0b01a124ca8cc0f1eea1112ae14b0dbbf291abc587f030
BLAKE2b-256 checksum
How to use checksums
e76fd3583786fe06f83a73dbf466cd2e4d265f7d9f4b6292545441396c83c366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tox_matrix-0.1.1-py27-none-any.whl

Download URL tox_matrix-0.1.1-py27-none-any.whl
Size 7.8 kB
Tags Python 2.7
SHA-256 checksum
How to use checksums
2edde724e43341ba9165e3ad5f38838ce71391860b32bcb4bddcd945bfc157b9
BLAKE2b-256 checksum
How to use checksums
31e1d9c158a615e07096f76c1a5ebcf682472c00622711f8de945f8154b502d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page