You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,11 @@ This cookbook includes LWRPs for managing:
35
35
- pip packages
36
36
- virtualenv isolated Python environments
37
37
38
-
### `python_pip`
38
+
### python_pip
39
39
Install packages using the new hotness in Python package management...[`pip`](http://pypi.python.org/pypi/pip). Yo dawg...easy_install is so 2009, you better ask your local Pythonista if you don't know! The usage semantics are like that of any normal package provider.
40
40
41
41
#### Actions
42
+
42
43
- :install: Install a pip package - if version is provided, install that specific version (default)
43
44
- :upgrade: Upgrade a pip package - if version is provided, upgrade to that specific version
44
45
- :remove: Remove a pip package
@@ -47,13 +48,15 @@ Install packages using the new hotness in Python package management...[`pip`](ht
47
48
- :purge: Purge a pip package (this usually entails removing configuration files as well as the package itself). With pip packages this behaves the same as `:remove`
48
49
49
50
#### Attribute Parameters
51
+
50
52
- package_name: name attribute. The name of the pip package to install
51
53
- version: the version of the package to install/upgrade. If no version is given latest is assumed.
52
54
- virtualenv: virtualenv environment to install pip package into
53
55
- options: Add additional options to the underlying pip package command
54
56
- timeout: timeout in seconds for the command to execute. Useful for pip packages that may take a long time to install. Default 900 seconds.
55
57
56
58
#### Examples
59
+
57
60
```ruby
58
61
# install latest gunicorn into system path
59
62
python_pip "gunicorn"
@@ -78,7 +81,7 @@ package "django" do
78
81
end
79
82
```
80
83
81
-
### `python_virtualenv`
84
+
### python_virtualenv
82
85
[`virtualenv`](http://pypi.python.org/pypi/virtualenv) is a great tool that creates isolated python environments. Think of it as RVM without all those hipsters and tight jeans.
0 commit comments