Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b88cfb

Browse files
author
jtimberman
committed
python v1.0.4
1 parent 64f8f50 commit 8b88cfb

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,27 @@ Install packages using the new hotness in Python package management...[`pip`](ht
5656
- version: the version of the package to install/upgrade. If no version is given latest is assumed.
5757
- virtualenv: virtualenv environment to install pip package into
5858
- options: Add additional options to the underlying pip package command
59+
- timeout: timeout in seconds for the command to execute. Useful for pip packages that may take a long time to install. Default 900 seconds.
5960

6061
# Example
61-
62+
6263
# install latest gunicorn into system path
6364
python_pip "gunicorn" do
6465
action :install
6566
end
66-
67+
6768
# target a virtualenv
6869
python_pip "gunicorn" do
6970
virtualenv "/home/ubunut/my_ve"
7071
action :install
7172
end
72-
73+
7374
# install Django 1.1.4
7475
python_pip "django" do
7576
version "1.1.4"
7677
action :install
7778
end
78-
79+
7980
# use this provider with the core package resource
8081
package "django" do
8182
provider Chef::Provider::PythonPip
@@ -100,22 +101,22 @@ Install packages using the new hotness in Python package management...[`pip`](ht
100101
- group: The group owner of the file (string or id)
101102

102103
# Example
103-
104+
104105
# create a 2.6 virtualenv owned by ubuntu user
105106
python_virtualenv "/home/ubuntu/my_cool_ve" do
106107
owner "ubuntu"
107108
group "ubuntu"
108109
action :create
109110
end
110-
111+
111112
# create a Python 2.4 virtualenv
112113
python_virtualenv "/home/ubuntu/my_old_ve" do
113114
interpreter "python2.4"
114115
owner "ubuntu"
115116
group "ubuntu"
116117
action :create
117118
end
118-
119+
119120
Usage
120121
=====
121122

@@ -144,6 +145,15 @@ virtualenv
144145

145146
Installs virtualenv using the `python_pip` resource.
146147

148+
Changes
149+
=======
150+
151+
## v1.0.4:
152+
153+
* [COOK-960] - add timeout to python_pip
154+
* [COOK-651] - 'install_path' not correctly resolved when using python::source
155+
* [COOK-650] - Add ability to specify version when installing distribute.
156+
* [COOK-553] - FreeBSD support in the python cookbook
147157

148158
License and Author
149159
==================

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
maintainer_email "[email protected]"
33
license "Apache 2.0"
44
description "Installs Python, pip and virtualenv. Includes LWRPs for managing Python packages with `pip` and `virtualenv` isolated Python environments."
5-
version "1.0.2"
5+
version "1.0.4"
66

77
depends "build-essential"
88

0 commit comments

Comments
 (0)