Contribute Media
A thank you to everyone who makes this possible: Read More

Supporting All Versions of Python All The Time With Tox

Description

Supporting All Versions of Python All The Time With Tox

Presented by Kumar McMillan

This talk explains the modern techniques that every module maintainer needs to know in order to support all major versions of Python. You probably already have a massive test suite using a tool like nosetests, py.test, unittest, or a custom runner. Using the tox command line tool, you'll see how to run your tests in Python 2.x, 3.x, Jython, and whatever else in parallel.

Abstract

tox is a new tool that lets you set up isolated virtual environments to test your module's deployment and compatibility with all major versions of Python. It's easy to install and is flexible enough that it probably already supports your existing test suite. With one simple command you can execute your test suite in each version of Python, you can build its documentation with Sphinx, and get a nice printout of the results. It has also been designed from the ground up to integrate into continuous integration (CI) tools like Hudson.

Using practical examples, this talk will show you how to toxify your existing test suite and trick it out with the tox.ini config file. You'll also see how to leverage Hudson's matrix build so that each code checkin will run tests in all versions of Python and report detailed failures.

Your app supports Python 3, right? No? Tox is the best way to develop in parallel with 2.x and 3.x. We'll go over how to set up tox for that.

Details

Improve this page