mortar 0.15.44 → 0.15.45

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69018fe3fcc68f124e0ce0956e95c119f0e95f0c
4
- data.tar.gz: 1f87f69724e6d035058f424908e3fb4722e13dbc
3
+ metadata.gz: 7b425947c9f2e121f7966e6402791cf9e90ea8cd
4
+ data.tar.gz: bd3489c3255a5ac16537a89f6c2f96f13f714155
5
5
  SHA512:
6
- metadata.gz: c148ae56445cfe61e2abeb86329ad40404ea0959e1d38ed2eb04fbb5cfd1b8f002a101ab669984a0b3e2efee8ab4f470cce57fa9193711d1e5b241b3f7d82403
7
- data.tar.gz: a06d738aca0278dd07867fa04c762e7282c8d5fa0a5acab31c5fedaa72de65382eae79306994a932f9fbfe3e0f5307b9f10e5884368ae532bfd06baf2e0c523a
6
+ metadata.gz: d3d14b322f8d6ed07a7f5a7a586cf1476600c856f008f881eea7e20f2363d578d50e448e577d8eb50c067a91f0f6108692291b1cdf3101c2f767a141f2864d90
7
+ data.tar.gz: 717f0676a0a4f85247b24a7cfa7250bffeff37b6de487cd6c1d5749ca174897ca7e0f8ff3efa4a17dda061af0047b035a42c200be1b4f442ceb02d72cb6c46bc
@@ -190,6 +190,9 @@ class Mortar::Local::Python
190
190
  end
191
191
  if should_do_requirements_install
192
192
  action "Installing user defined python dependencies" do
193
+ unless upgrade_pip()
194
+ return false
195
+ end
193
196
  unless install_user_python_dependencies()
194
197
  return false
195
198
  end
@@ -197,6 +200,9 @@ class Mortar::Local::Python
197
200
  end
198
201
  end
199
202
  if should_install_python_dependencies?
203
+ unless upgrade_pip()
204
+ return false
205
+ end
200
206
  unless install_python_dependencies()
201
207
  return false
202
208
  end
@@ -303,6 +309,10 @@ class Mortar::Local::Python
303
309
 
304
310
  end
305
311
 
312
+ def upgrade_pip
313
+ return (run_pip_command "install --upgrade setuptools" and run_pip_command "install --upgrade pip")
314
+ end
315
+
306
316
  def install_user_python_dependencies
307
317
  return run_pip_command "install --requirement #{pip_requirements_path}"
308
318
  end
@@ -16,5 +16,5 @@
16
16
 
17
17
  module Mortar
18
18
  # see http://semver.org/
19
- VERSION = "0.15.44"
19
+ VERSION = "0.15.45"
20
20
  end
@@ -75,6 +75,7 @@ module Mortar::Local
75
75
  end
76
76
  it "install if necessary" do
77
77
  python = Mortar::Local::Python.new
78
+ stub(python).upgrade_pip.returns(true)
78
79
  stub(python).has_valid_virtualenv?.returns(true)
79
80
  stub(python).should_do_requirements_install.returns(false)
80
81
  mock(python).should_install_python_dependencies?.returns(true)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mortar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.44
4
+ version: 0.15.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mortar Data
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-26 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc