An Open Question: Charm Dependency Management

Kit Randel kit.randel at canonical.com
Wed Jan 21 06:48:30 UTC 2015


On Wed, Jan 21, 2015 at 8:24 AM, Michael Nelson <
michael.nelson at canonical.com> wrote:
>
> For eg., if it was a python charm that needed some python packages:
>
>
> .virtualenv:
>     virtualenv .virtualenv
>     .virtualenv/bin/pip install -r test_requirements.txt
>
> test: .virtualenv
>     ./virtualenv/bin/python ./unit-tests
>

My python charm makefiles looks like this too, but one minor improvement is
to suppress output from pip with '-q' which makes running dependant targets
like 'test' and 'lint' much less noisy, e.g.

.virtualenv:
    @virtualenv .virtualenv
    @.virtualenv/bin/pip install -q -r requirements.txt --upgrade

-- 
Kit Randel
Canonical - Ubuntu Engineering - Continuous Integration Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20150121/5c7b293e/attachment.html>


More information about the Juju mailing list