Merge lp:~thumper/charms/trusty/python-django/support-1.7 into lp:charms/python-django
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 38 | ||||
Proposed branch: | lp:~thumper/charms/trusty/python-django/support-1.7 | ||||
Merge into: | lp:charms/python-django | ||||
Diff against target: |
199 lines (+46/-37) 1 file modified
hooks/hooks.py (+46/-37) |
||||
To merge this branch: | bzr merge lp:~thumper/charms/trusty/python-django/support-1.7 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Charles Butler (community) | Approve | ||
Review via email: mp+259889@code.launchpad.net |
Description of the change
This branch introduces a few tweaks, and support for Django 1.7 and above.
Some renaming was done in the code for my own sanity.
sanitized_
became
sanitized_
The unit_name variable has been removed. Assigning service_name into unit_name was just confusing.
In order to handle checking the version number of django, a new pip package was added semantic_version.
Support for installing this package was added to the install and upgrade hooks.
The install hook didn't install the CHARM_PACKAGES (now called CHARM_DEB_PACKAGES) if the extra_deb_pkgs value was empty.
I haven't managed to work out how to run the unit tests inside the hooks dir.
If someone can help point that out, I'll add some unit tests for the 1.7 checking code.
Tim,
Thank you for this contribution! It's great to see the python-django charm getting some love as its one of our few framework charms. I feel like your contributions have made a great impact in cleaning up some of the nomenclature and functionality of the charm for future contributors.
I deployed the charm and gave the charm a deploy test along with stressing the existing charm before pulling in your changes.
There is a minor linting issue that cropped up on this contribution:
FAIL: python-django::make lint py:44:19: E128 continuation line under-indented for visual indent py:251: 22: F821 undefined name 'semantic_version' py:254: 40: F821 undefined name 'semantic_version'
[/usr/bin/make -s lint exit 2]
Lint check (flake8)
hooks/hooks.
hooks/hooks.
hooks/hooks.
make: *** [lint] Error 1
If you could get those cleaned up in a subsequent patch, that would be +1 from me.
Thank you for taking the time to submit this fix for the charm store. We appreciate your work. I've merged this branch and it should be available in the charm store after the next ingestion. I look forward to the forthcoming updates to the python-django ecosystem from you :)
If you have any questions/ comments/ concerns about the review contact us in #juju on irc.freenode.net or email the mailing list <email address hidden>, or ask a question tagged with "juju" on http:// askubuntu. com.