poise-python 1.1.0 → 1.1.1

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: 23cf97832c34abc4295ce1e1f1c9d8cc0eb53077
4
- data.tar.gz: 48de254c1244bd372046cf863dfd05a4d9878ca6
3
+ metadata.gz: fdea5b1022235c016eca39d0b8ef3e4b43012bb7
4
+ data.tar.gz: 89a6d59d98b9a447fe47817150deeca6cee56d1b
5
5
  SHA512:
6
- metadata.gz: f700db85d989995831625f6ad79111e8b6cf01b740984e937cdd05c1ec8c3d3b0ffb213a8947b0b83045aa8413d4c06458be759634beb7f0672324926eb866ec
7
- data.tar.gz: 37a074375575ee3197d866e9f2ec573b4b24c75490f0c5572b2307812217a773f61912da0ff3549c6d3a3f1278270b22485109cf63eb4b2ee2c3326f7510cba9
6
+ metadata.gz: c911da47ed05f3f97401b449e4e0dcc0a7ee186ed04e02463a87985f73861d62b69538f446efc2b80898351bd43a37765402c0a6df430cf453d459c80a5f3ad6
7
+ data.tar.gz: 8e7ad57a9d1b89b178bd636b17020c30135aac2d09d53ba7261a65dddcfdfdd212b2431bccd748c50cc577e42030e71f00e3808bd1a6c29271bb24584213b115
@@ -1,5 +1,9 @@
1
1
  # Poise-Python Changelog
2
2
 
3
+ ## v1.1.1
4
+
5
+ * Fix passing options to the `python_package` resource.
6
+
3
7
  ## v1.1.0
4
8
 
5
9
  * Add a `:dummy` provider for `python_runtime` for unit testing or complex overrides.
@@ -48,14 +48,16 @@ def replacement(*args, **kwargs):
48
48
  from pip._vendor import pkg_resources
49
49
  dists = []
50
50
  for raw_req in sys.argv[3:]:
51
+ if raw_req.startswith('-'):
52
+ continue
51
53
  req = pkg_resources.Requirement.parse(raw_req)
52
54
  dist = pkg_resources.working_set.by_key.get(req.key)
53
55
  if dist:
54
- # Don't mutate stuff from the global working set.
55
- dist = copy.copy(dist)
56
+ # Don't mutate stuff from the global working set.
57
+ dist = copy.copy(dist)
56
58
  else:
57
- # Make a fake one.
58
- dist = pkg_resources.Distribution(project_name=req.key, version='0')
59
+ # Make a fake one.
60
+ dist = pkg_resources.Distribution(project_name=req.key, version='0')
59
61
  # Fool the .key property into using our string.
60
62
  dist._key = raw_req
61
63
  dists.append(dist)
@@ -248,7 +250,7 @@ EOH
248
250
  full_cmd = if new_resource.options
249
251
  # We have to use a string for this case to be safe because the
250
252
  # options are a string and I don't want to try and parse that.
251
- "##{runner.join(' ')} #{pip_command} #{new_resource.options} #{Shellwords.join(pip_options)}"
253
+ "#{runner.join(' ')} #{pip_command} #{new_resource.options} #{Shellwords.join(pip_options)}"
252
254
  else
253
255
  # No special options, use an array to skip the extra /bin/sh.
254
256
  runner + [pip_command] + pip_options
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module PoisePython
19
- VERSION = '1.1.0'
19
+ VERSION = '1.1.1'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poise-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-02 00:00:00.000000000 Z
11
+ date: 2015-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: halite