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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/poise_python/resources/python_package.rb +7 -5
- data/lib/poise_python/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdea5b1022235c016eca39d0b8ef3e4b43012bb7
|
4
|
+
data.tar.gz: 89a6d59d98b9a447fe47817150deeca6cee56d1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c911da47ed05f3f97401b449e4e0dcc0a7ee186ed04e02463a87985f73861d62b69538f446efc2b80898351bd43a37765402c0a6df430cf453d459c80a5f3ad6
|
7
|
+
data.tar.gz: 8e7ad57a9d1b89b178bd636b17020c30135aac2d09d53ba7261a65dddcfdfdd212b2431bccd748c50cc577e42030e71f00e3808bd1a6c29271bb24584213b115
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
55
|
-
|
56
|
+
# Don't mutate stuff from the global working set.
|
57
|
+
dist = copy.copy(dist)
|
56
58
|
else:
|
57
|
-
|
58
|
-
|
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
|
-
"
|
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
|
data/lib/poise_python/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: halite
|