CharlieC Drive a script through different Python versions by piggy-backing onto the relevant virtualenvs created by tox

Created by CharlieC last modified
# The script assumes that the virutalenvironments have been created for a project using tox.

import subprocess
import sys

envs = ['py27', 'py35', 'py36', 'py37',]

passthrough = sys.argv[1:] or []

for e in envs:[".tox/{0}/bin/pip".format(e), "-q", "install", "-e", "."])[".tox/{0}/bin/pip".format(e), "-q", "install", "-U", "xlsxwriter", "lxml"])[".tox/{0}/bin/python".format(e), ""] + passthrough)

Comments (0)