"create -t python " does not install lib/charmhelpers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charm Tools |
Triaged
|
High
|
Unassigned |
Bug Description
% charm create -t python -v testcharfasdf
INFO generator.py: Generating charm for testcharfasdf in ./testcharfasdf
INFO utils.py: No testcharfasdf in apt cache; creating an empty charm instead.
% echo $?
0
% ls testcharfasdf
config.yaml icon.svg README.example tests/
hooks/ metadata.yaml templates/ unit_tests/
# what I expected:
$ tree mycharm/
mycharm/
├── charm-helpers.yaml
├── config.yaml
├── hooks
│ ├── config-changed -> hooks.py
│ ├── hooks.py
│ ├── install -> hooks.py
│ ├── start -> hooks.py
│ ├── stop -> hooks.py
│ └── upgrade-charm -> hooks.py
├── icon.svg
├── lib
│ └── charmhelpers
│ ├── core
│ │ ├── fstab.py
│ │ ├── hookenv.py
│ │ ├── host.py
│ │ └── __init__.py
│ └── __init__.py
├── metadata.yaml
├── README.ex
├── revision
├── scripts
│ └── charm_helpers_
└── tests
├── 00-setup
└── 10-deploy
as per this page: https:/
description: | updated |
I had the same problem.
I tried
charm create -t python-basic mycharm
and it seems to be working, it created the lib/ , scripts/ directory and the charm-helpers.yaml. But it didnt create the hooks.py file.