Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(136)

Issue 74010044: Improve version handling.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by frankban
Modified:
11 years, 2 months ago
Reviewers:
rharding, mp+210395, matthew.scott
Visibility:
Public.

Description

Improve version handling. Modify the app.ensure_dependencies function so that it returns the Juju version tuple. This way we allow for reusing the version through the app and we can avoid calling "juju version" multiple times. Support local environments by installing the juju-local meta-package in place of specific packages (e.g. lxc, mongo). This way we don't have to update quickstart if core devs introduce new local env dependencies. Fix the destroy-environment message displayed at the end of the process. The -e flag is included when an old Juju is used. Tests: `make check`. QA: no strictly required. Use .venv/bin/python juju-quickstart, check everything works well, check the destroy-environment message at the end of the process. https://code.launchpad.net/~frankban/juju-quickstart/version-handling/+merge/210395 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Improve version handling. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -159 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M quickstart/__init__.py View 1 chunk +1 line, -1 line 0 comments Download
M quickstart/app.py View 5 chunks +35 lines, -39 lines 0 comments Download
M quickstart/manage.py View 2 chunks +12 lines, -3 lines 0 comments Download
M quickstart/settings.py View 1 chunk +3 lines, -0 lines 0 comments Download
M quickstart/tests/test_app.py View 15 chunks +67 lines, -89 lines 0 comments Download
M quickstart/tests/test_manage.py View 3 chunks +31 lines, -14 lines 0 comments Download
M quickstart/tests/test_utils.py View 2 chunks +6 lines, -9 lines 0 comments Download
M quickstart/utils.py View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7
frankban
Please take a look.
11 years, 2 months ago (2014-03-11 13:05:49 UTC) #1
rharding
LGTM will qa as well. https://codereview.appspot.com/74010044/diff/1/quickstart/settings.py File quickstart/settings.py (right): https://codereview.appspot.com/74010044/diff/1/quickstart/settings.py#newcode34 quickstart/settings.py:34: # The path to ...
11 years, 2 months ago (2014-03-11 13:24:24 UTC) #2
rharding
QA ok doing a local env post 1.17.2 thanks!
11 years, 2 months ago (2014-03-11 13:43:38 UTC) #3
frankban
Thank you for the review! https://codereview.appspot.com/74010044/diff/1/quickstart/settings.py File quickstart/settings.py (right): https://codereview.appspot.com/74010044/diff/1/quickstart/settings.py#newcode34 quickstart/settings.py:34: # The path to ...
11 years, 2 months ago (2014-03-11 13:49:48 UTC) #4
matthew.scott
LGTM, thanks for the clean-up!
11 years, 2 months ago (2014-03-11 16:09:38 UTC) #5
frankban
*** Submitted: Improve version handling. Modify the app.ensure_dependencies function so that it returns the Juju ...
11 years, 2 months ago (2014-03-11 16:15:42 UTC) #6
frankban
11 years, 2 months ago (2014-03-11 16:24:14 UTC) #7
Thank you!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b