#!/bin/sh -e

rootdir=$(git rev-parse --show-toplevel)
cd $rootdir
(
    rm -rf _build dist *.egg-info
    find ./ -name '*.pyc' -delete
    tox
    python setup.py check -r
)
