check-package/check_package/tasks.py

12 lines
258 B
Python
Raw Normal View History

2018-07-12 15:55:08 -04:00
import tempfile
from invoke import task, run
@task()
def setup_virtualenvs(ctx):
temp_dir = tempfile.mkdtemp()
run('virtualenv {}'.format(temp_dir))
2018-07-12 20:55:18 -04:00
run('{}/bin/pip install -e .'.format(temp_dir))
# TODO: Run tests after the installation.