poise-python 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.kitchen.yml +1 -6
  3. data/.travis.yml +7 -6
  4. data/CHANGELOG.md +7 -0
  5. data/Gemfile +3 -1
  6. data/README.md +9 -3
  7. data/Rakefile +1 -1
  8. data/chef/attributes/default.rb +1 -1
  9. data/chef/recipes/default.rb +1 -1
  10. data/lib/poise_python.rb +1 -1
  11. data/lib/poise_python/cheftie.rb +1 -1
  12. data/lib/poise_python/error.rb +1 -1
  13. data/lib/poise_python/python_command_mixin.rb +1 -1
  14. data/lib/poise_python/python_providers.rb +3 -1
  15. data/lib/poise_python/python_providers/base.rb +3 -3
  16. data/lib/poise_python/python_providers/dummy.rb +1 -1
  17. data/lib/poise_python/python_providers/msi.rb +64 -0
  18. data/lib/poise_python/python_providers/portable_pypy.rb +1 -1
  19. data/lib/poise_python/python_providers/portable_pypy3.rb +1 -1
  20. data/lib/poise_python/python_providers/scl.rb +1 -1
  21. data/lib/poise_python/python_providers/system.rb +3 -3
  22. data/lib/poise_python/resources.rb +1 -1
  23. data/lib/poise_python/resources/pip_requirements.rb +1 -1
  24. data/lib/poise_python/resources/python_execute.rb +1 -1
  25. data/lib/poise_python/resources/python_package.rb +14 -6
  26. data/lib/poise_python/resources/python_runtime.rb +1 -1
  27. data/lib/poise_python/resources/python_runtime_pip.rb +45 -28
  28. data/lib/poise_python/resources/python_runtime_test.rb +35 -32
  29. data/lib/poise_python/resources/python_virtualenv.rb +6 -2
  30. data/lib/poise_python/utils.rb +1 -1
  31. data/lib/poise_python/utils/python_encoder.rb +1 -1
  32. data/lib/poise_python/version.rb +2 -2
  33. data/poise-python.gemspec +4 -4
  34. data/test/{cookbooks/poise-python_test → cookbook}/metadata.rb +1 -1
  35. data/test/cookbook/recipes/default.rb +78 -0
  36. data/{Berksfile → test/gemfiles/chef-12.1.gemfile} +3 -12
  37. data/test/gemfiles/chef-12.2.gemfile +19 -0
  38. data/test/gemfiles/chef-12.3.gemfile +19 -0
  39. data/test/gemfiles/chef-12.4.gemfile +21 -0
  40. data/test/gemfiles/chef-12.5.gemfile +19 -0
  41. data/test/gemfiles/chef-12.6.gemfile +19 -0
  42. data/test/gemfiles/chef-12.gemfile +2 -2
  43. data/test/gemfiles/master.gemfile +3 -1
  44. data/test/integration/default/serverspec/default_spec.rb +23 -9
  45. data/test/spec/python_command_mixin_spec.rb +1 -1
  46. data/test/spec/python_providers/dummy_spec.rb +1 -1
  47. data/test/spec/python_providers/portable_pypy3_spec.rb +1 -1
  48. data/test/spec/python_providers/portable_pypy_spec.rb +1 -1
  49. data/test/spec/python_providers/scl_spec.rb +1 -1
  50. data/test/spec/python_providers/system_spec.rb +1 -1
  51. data/test/spec/resources/pip_requirements_spec.rb +1 -1
  52. data/test/spec/resources/python_package_spec.rb +1 -1
  53. data/test/spec/resources/python_runtime_pip_spec.rb +1 -1
  54. data/test/spec/resources/python_virtualenv_spec.rb +1 -1
  55. data/test/spec/spec_helper.rb +1 -1
  56. data/test/spec/utils/python_encoder_spec.rb +1 -1
  57. data/test/spec/utils_spec.rb +1 -1
  58. metadata +26 -15
  59. data/.kitchen.travis.yml +0 -9
  60. data/test/cookbooks/poise-python_test/recipes/default.rb +0 -65
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2015, Noah Kantrowitz
2
+ # Copyright 2015-2016, Noah Kantrowitz
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
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.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Kantrowitz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-21 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: halite
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '2.7'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '2.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: poise-languages
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.2'
47
+ version: '1.3'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.2'
54
+ version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: poise-boiler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: '1.8'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: '1.8'
69
69
  description: A Chef cookbook for managing Python installations.
70
70
  email:
71
71
  - noah@coderanger.net
@@ -74,11 +74,9 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
- - ".kitchen.travis.yml"
78
77
  - ".kitchen.yml"
79
78
  - ".travis.yml"
80
79
  - ".yardopts"
81
- - Berksfile
82
80
  - CHANGELOG.md
83
81
  - Gemfile
84
82
  - LICENSE
@@ -93,6 +91,7 @@ files:
93
91
  - lib/poise_python/python_providers.rb
94
92
  - lib/poise_python/python_providers/base.rb
95
93
  - lib/poise_python/python_providers/dummy.rb
94
+ - lib/poise_python/python_providers/msi.rb
96
95
  - lib/poise_python/python_providers/portable_pypy.rb
97
96
  - lib/poise_python/python_providers/portable_pypy3.rb
98
97
  - lib/poise_python/python_providers/scl.rb
@@ -109,10 +108,16 @@ files:
109
108
  - lib/poise_python/utils/python_encoder.rb
110
109
  - lib/poise_python/version.rb
111
110
  - poise-python.gemspec
112
- - test/cookbooks/poise-python_test/metadata.rb
113
- - test/cookbooks/poise-python_test/recipes/default.rb
111
+ - test/cookbook/metadata.rb
112
+ - test/cookbook/recipes/default.rb
114
113
  - test/docker/docker.ca
115
114
  - test/docker/docker.pem
115
+ - test/gemfiles/chef-12.1.gemfile
116
+ - test/gemfiles/chef-12.2.gemfile
117
+ - test/gemfiles/chef-12.3.gemfile
118
+ - test/gemfiles/chef-12.4.gemfile
119
+ - test/gemfiles/chef-12.5.gemfile
120
+ - test/gemfiles/chef-12.6.gemfile
116
121
  - test/gemfiles/chef-12.gemfile
117
122
  - test/gemfiles/master.gemfile
118
123
  - test/integration/default/serverspec/default_spec.rb
@@ -149,15 +154,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
154
  version: '0'
150
155
  requirements: []
151
156
  rubyforge_project:
152
- rubygems_version: 2.4.8
157
+ rubygems_version: 2.6.2
153
158
  signing_key:
154
159
  specification_version: 4
155
160
  summary: A Chef cookbook for managing Python installations.
156
161
  test_files:
157
- - test/cookbooks/poise-python_test/metadata.rb
158
- - test/cookbooks/poise-python_test/recipes/default.rb
162
+ - test/cookbook/metadata.rb
163
+ - test/cookbook/recipes/default.rb
159
164
  - test/docker/docker.ca
160
165
  - test/docker/docker.pem
166
+ - test/gemfiles/chef-12.1.gemfile
167
+ - test/gemfiles/chef-12.2.gemfile
168
+ - test/gemfiles/chef-12.3.gemfile
169
+ - test/gemfiles/chef-12.4.gemfile
170
+ - test/gemfiles/chef-12.5.gemfile
171
+ - test/gemfiles/chef-12.6.gemfile
161
172
  - test/gemfiles/chef-12.gemfile
162
173
  - test/gemfiles/master.gemfile
163
174
  - test/integration/default/serverspec/default_spec.rb
data/.kitchen.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- ---
2
- driver:
3
- name: docker
4
- binary: "./docker"
5
- socket: tcp://docker.poise.io:443
6
- tls_verify: true
7
- tls_cacert: test/docker/docker.ca
8
- tls_cert: test/docker/docker.pem
9
- tls_key: test/docker/docker.key
@@ -1,65 +0,0 @@
1
- #
2
- # Copyright 2015, Noah Kantrowitz
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- #
16
-
17
- require 'poise_python/resources/python_runtime_test'
18
-
19
- # Install lsb-release because Debian 6 doesn't by default and serverspec requires it
20
- package 'lsb-release' if platform?('debian') && node['platform_version'].start_with?('6')
21
-
22
- python_runtime_test '2'
23
-
24
- if node['platform'] == 'ubuntu' && node['platform_version'] == '12.04'
25
- # Can't deal with Python 3.2 today.
26
- file '/no_py3'
27
- file '/no_system'
28
- else
29
- python_runtime_test '3'
30
-
31
- python_runtime_test 'system' do
32
- version ''
33
- runtime_provider :system
34
- end
35
- end
36
-
37
- python_runtime_test 'pypy'
38
-
39
- if platform_family?('rhel')
40
- python_runtime_test 'scl' do
41
- version ''
42
- runtime_provider :scl
43
- end
44
- else
45
- file '/no_scl'
46
- end
47
-
48
- # Specific test for pip reversion working correctly.
49
- python_runtime 'pip1' do
50
- pip_version '7.1.2'
51
- provider :portable_pypy
52
- options path: '/opt/pip1'
53
- version ''
54
- end
55
- python_runtime 'pip2' do
56
- provider :portable_pypy
57
- options path: '/opt/pip2'
58
- version ''
59
- end
60
- python_runtime 'pip2b' do
61
- pip_version '7.1.2'
62
- provider :portable_pypy
63
- options path: '/opt/pip2'
64
- version ''
65
- end