From 95714eff8f96bf8a22e0cef987a744eb700413aa Mon Sep 17 00:00:00 2001 From: Dorian Pula Date: Thu, 12 Jul 2018 20:55:18 -0400 Subject: [PATCH] Add additional work on check-package. --- check_package/tasks.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/check_package/tasks.py b/check_package/tasks.py index 680b51f..b1e9f5f 100644 --- a/check_package/tasks.py +++ b/check_package/tasks.py @@ -7,5 +7,5 @@ from invoke import task, run def setup_virtualenvs(ctx): temp_dir = tempfile.mkdtemp() run('virtualenv {}'.format(temp_dir)) - run('./{}/bin/activate'.format(temp_dir)) - run('pip install -e .') + run('{}/bin/pip install -e .'.format(temp_dir)) + # TODO: Run tests after the installation. diff --git a/pyproject.toml b/pyproject.toml index a96b309..41cea70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,4 +16,4 @@ virtualenv = "^16.0" pytest = "^3.0" [tool.poetry.scripts] -check-package = 'check_package.main:program' +'check-package' = 'check_package.main:program.run'