Merge lp:~frankban/juju-quickstart/update-deps into lp:juju-quickstart

Proposed by Francesco Banconi
Status: Merged
Merged at revision: 57
Proposed branch: lp:~frankban/juju-quickstart/update-deps
Merge into: lp:juju-quickstart
Diff against target: 96 lines (+7/-26)
6 files modified
quickstart/__init__.py (+1/-1)
quickstart/juju.py (+0/-20)
quickstart/settings.py (+1/-1)
quickstart/tests/test_juju.py (+1/-0)
requirements.pip (+1/-1)
test-requirements.pip (+3/-3)
To merge this branch: bzr merge lp:~frankban/juju-quickstart/update-deps
Reviewer Review Type Date Requested Status
Juju GUI Hackers Pending
Review via email: mp+210580@code.launchpad.net

Description of the change

Update requirements.

Make quickstart use the newer python-jujuclient
included in trusty.

https://codereview.appspot.com/74610043/

To post a comment you must log in.
Revision history for this message
Francesco Banconi (frankban) wrote :
Download full text (4.1 KiB)

Reviewers: mp+210580_code.launchpad.net,

Message:
Please take a look.

Description:
Update requirements.

Make quickstart use the newer python-jujuclient
included in trusty.

https://code.launchpad.net/~frankban/juju-quickstart/update-deps/+merge/210580

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/74610043/

Affected files (+9, -26 lines):
   A [revision details]
   M quickstart/__init__.py
   M quickstart/juju.py
   M quickstart/settings.py
   M quickstart/tests/test_juju.py
   M requirements.pip
   M test-requirements.pip

Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision:
<email address hidden>
+New revision:
<email address hidden>

Index: requirements.pip
=== modified file 'requirements.pip'
--- requirements.pip 2013-12-16 16:38:20 +0000
+++ requirements.pip 2014-03-12 10:10:21 +0000
@@ -21,6 +21,6 @@
  # formatted dependencies. Do not include other pip specific requirement
  # specifications (e.g. -e ... or -r ...).

-jujuclient==0.11
+jujuclient==0.17.5
  PyYAML==3.10
  urwid==1.1.1

Index: test-requirements.pip
=== modified file 'test-requirements.pip'
--- test-requirements.pip 2013-11-14 10:32:15 +0000
+++ test-requirements.pip 2014-03-12 10:10:21 +0000
@@ -16,8 +16,8 @@
  # You should have received a copy of the GNU Affero General Public License
  # along with this program. If not, see <http://www.gnu.org/licenses/>.

-coverage==3.7
-flake8==2.0
+coverage==3.7.1
+flake8==2.1.0
  mock==1.0.1
-nose==1.3.0
+nose==1.3.1
  -r requirements.pip

Index: quickstart/__init__.py
=== modified file 'quickstart/__init__.py'
--- quickstart/__init__.py 2014-03-11 12:34:06 +0000
+++ quickstart/__init__.py 2014-03-12 10:10:21 +0000
@@ -22,7 +22,7 @@
  from __future__ import unicode_literals

-VERSION = (1, 1, 1)
+VERSION = (1, 1, 2)

  def get_version():

Index: quickstart/juju.py
=== modified file 'quickstart/juju.py'
--- quickstart/juju.py 2013-12-06 17:17:19 +0000
+++ quickstart/juju.py 2014-03-12 10:10:21 +0000
@@ -41,26 +41,6 @@
      deployments to specific machines.
      """

- def add_unit(self, service_name, machine_spec=None):
- """Add a unit to the given service and machine.
-
- This method is present in newer versions of python-jujuclient and
can
- be safely deleted when upgrading to the new releases.
- """
- # XXX frankban 2013-11-15: remove this method when upgrading to
- # python-jujuclient >= 0.15.
- params = {
- 'ServiceName': service_name,
- 'NumUnits': 1,
- }
- if machine_spec is not None:
- params['ToMachineSpec'] = machine_spec
- return self._rpc({
- 'Type': 'Client',
- 'Request': 'AddServiceUnits',
- 'Params': params,
- })
-
      def deploy_bundle(self, yaml, name=None, bundle_id=None):
          """Deploy a bundle."""
          params = {'YAML': yaml}

Index: quickstart/settings.py
=== modifie...

Read more...

Revision history for this message
Richard Harding (rharding) wrote :

LGTM do you need a QA on this?

https://codereview.appspot.com/74610043/diff/1/quickstart/juju.py
File quickstart/juju.py (left):

https://codereview.appspot.com/74610043/diff/1/quickstart/juju.py#oldcode44
quickstart/juju.py:44: def add_unit(self, service_name,
machine_spec=None):
yay!

https://codereview.appspot.com/74610043/

Revision history for this message
Francesco Banconi (frankban) wrote :

*** Submitted:

Update requirements.

Make quickstart use the newer python-jujuclient
included in trusty.

R=rharding
CC=
https://codereview.appspot.com/74610043

https://codereview.appspot.com/74610043/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'quickstart/__init__.py'
2--- quickstart/__init__.py 2014-03-11 12:34:06 +0000
3+++ quickstart/__init__.py 2014-03-12 10:57:39 +0000
4@@ -22,7 +22,7 @@
5 from __future__ import unicode_literals
6
7
8-VERSION = (1, 1, 1)
9+VERSION = (1, 1, 2)
10
11
12 def get_version():
13
14=== modified file 'quickstart/juju.py'
15--- quickstart/juju.py 2013-12-06 17:17:19 +0000
16+++ quickstart/juju.py 2014-03-12 10:57:39 +0000
17@@ -41,26 +41,6 @@
18 deployments to specific machines.
19 """
20
21- def add_unit(self, service_name, machine_spec=None):
22- """Add a unit to the given service and machine.
23-
24- This method is present in newer versions of python-jujuclient and can
25- be safely deleted when upgrading to the new releases.
26- """
27- # XXX frankban 2013-11-15: remove this method when upgrading to
28- # python-jujuclient >= 0.15.
29- params = {
30- 'ServiceName': service_name,
31- 'NumUnits': 1,
32- }
33- if machine_spec is not None:
34- params['ToMachineSpec'] = machine_spec
35- return self._rpc({
36- 'Type': 'Client',
37- 'Request': 'AddServiceUnits',
38- 'Params': params,
39- })
40-
41 def deploy_bundle(self, yaml, name=None, bundle_id=None):
42 """Deploy a bundle."""
43 params = {'YAML': yaml}
44
45=== modified file 'quickstart/settings.py'
46--- quickstart/settings.py 2014-03-11 12:34:06 +0000
47+++ quickstart/settings.py 2014-03-12 10:57:39 +0000
48@@ -26,7 +26,7 @@
49
50 # The default Juju GUI charm URL to use when it is not possible to retrieve it
51 # from the charmworld API, e.g. due to temporary connection/charmworld errors.
52-DEFAULT_CHARM_URL = 'cs:precise/juju-gui-83'
53+DEFAULT_CHARM_URL = 'cs:precise/juju-gui-85'
54
55 # The quickstart app short description.
56 DESCRIPTION = 'set up a Juju environment (including the GUI) in very few steps'
57
58=== modified file 'quickstart/tests/test_juju.py'
59--- quickstart/tests/test_juju.py 2013-12-06 17:17:19 +0000
60+++ quickstart/tests/test_juju.py 2014-03-12 10:57:39 +0000
61@@ -94,6 +94,7 @@
62 'NumUnits': 1,
63 'Config': {},
64 'Constraints': {},
65+ 'ToMachineSpec': None,
66 }
67 params.update(kwargs)
68 return {
69
70=== modified file 'requirements.pip'
71--- requirements.pip 2013-12-16 16:38:20 +0000
72+++ requirements.pip 2014-03-12 10:57:39 +0000
73@@ -21,6 +21,6 @@
74 # formatted dependencies. Do not include other pip specific requirement
75 # specifications (e.g. -e ... or -r ...).
76
77-jujuclient==0.11
78+jujuclient==0.17.5
79 PyYAML==3.10
80 urwid==1.1.1
81
82=== modified file 'test-requirements.pip'
83--- test-requirements.pip 2013-11-14 10:32:15 +0000
84+++ test-requirements.pip 2014-03-12 10:57:39 +0000
85@@ -16,8 +16,8 @@
86 # You should have received a copy of the GNU Affero General Public License
87 # along with this program. If not, see <http://www.gnu.org/licenses/>.
88
89-coverage==3.7
90-flake8==2.0
91+coverage==3.7.1
92+flake8==2.1.0
93 mock==1.0.1
94-nose==1.3.0
95+nose==1.3.1
96 -r requirements.pip

Subscribers

People subscribed via source and target branches