check-package/check_package/tasks.py

12 lines
258 B
Python

import tempfile
from invoke import task, run
@task()
def setup_virtualenvs(ctx):
temp_dir = tempfile.mkdtemp()
run('virtualenv {}'.format(temp_dir))
run('{}/bin/pip install -e .'.format(temp_dir))
# TODO: Run tests after the installation.