Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
fe26974
leverage `platform_family` to simplify cookbook
schisamo Oct 2, 2012
b0f7906
ensure python26 binary is preferred on older RHEL platforms
schisamo Oct 2, 2012
c02b226
Adding whyrun support to python LWRP.
PrajaktaPurohit Oct 25, 2012
2a4f29d
Changing whyrun description format into string instead of array.
PrajaktaPurohit Oct 29, 2012
0e10ccb
Merge pull request #21 from opscode-cookbooks/whyrun
PrajaktaPurohit Oct 29, 2012
ead613f
Merge pull request #22 from opscode-cookbooks/COOK-1727
Oct 31, 2012
a8a3a36
Update recipes/pip.rb
tdcarrol Nov 7, 2012
c6c891b
add name attribute to metadata
Nov 14, 2012
29ce987
COOK-1925: Support SmartOS for python
Nov 20, 2012
7a7beb7
[COOK-1715] Upgrade pip resource with user & group
dexterous Sep 5, 2012
b8fffe2
Merge branch 'COOK-1715'
Nov 22, 2012
b78e82b
release v1.1.0
Nov 26, 2012
33bc6e2
Merge pull request #24 from wohali/master
Nov 30, 2012
e26ac41
Merge pull request #23 from tdcarrol/master
Dec 10, 2012
34cb929
release v1.2.0
Dec 18, 2012
3663fd7
[COOK-2297] more gracefully handle pip packages from VCS or source ar…
Frick Jan 30, 2013
6d2451d
Merge pull request #28 from Frick/master
Feb 2, 2013
6acad21
Use :install as the default action
sethvargo Feb 7, 2013
a76c1be
also look for https
Feb 7, 2013
5169e9f
release v1.2.2
Feb 7, 2013
9f11ea6
Truly support backwards compatability
sethvargo Feb 8, 2013
359f7a3
Merge pull request #29 from sethvargo-cookbooks/COOK-2376-python_pip_…
Feb 13, 2013
e2b3cb1
[COOK-2449] Make the distribute download location an attribute
Feb 20, 2013
71ef44b
Break up distribute_options_download_base attribute
Feb 22, 2013
9de0b0a
[COOK-2468] set precedence level when setting node attributes
schisamo Feb 22, 2013
86d8484
fixes for [FC002] - Avoid string interpolation where not required
schisamo Feb 22, 2013
85e3184
fixes for [FC016] - LWRP does not declare a default action
schisamo Feb 22, 2013
492d2d8
prefer accessor methods to accessing instance variables directly
schisamo Feb 23, 2013
87223e2
Stop Chef::Exceptions::ShellCommandFailed deprecation messages
schisamo Feb 24, 2013
3e15959
add `test-kitchen` 1.0 support
schisamo Feb 25, 2013
b92d5ca
Merge pull request #30 from aweber/master
Feb 28, 2013
4afbc55
Merge pull request #31 from opscode-cookbooks/COOK-2468
Feb 28, 2013
165c0ef
[COOK-2702] Fix python::pip fails on changing node.python.prefix_dir
tk0miya Apr 4, 2013
f0fb2a4
Merge pull request #35 from tk0miya/fix-pip-fails-on-changing-prefix_dir
Apr 24, 2013
f0db2e1
increment version for development
Apr 25, 2013
64ec147
remove Gemfile, Vagrantfile, not used by tk1.0
May 2, 2013
a927abc
Revert "Merge pull request #35 from tk0miya/fix-pip-fails-on-changing…
May 3, 2013
2fe4ba9
add source suite, apt recipe for test-kitchen
May 3, 2013
dd502df
[COOK-2917] Fix python::source fails without build tools.
tk0miya May 9, 2013
4a76379
[COOK-2882] User libdb-dev rather than libdb4.8-dev
stevendanna May 9, 2013
a5dd114
Merge pull request #40 from opscode-cookbooks/ssd/COOK-2882
May 10, 2013
5e4dabe
use provisioner-less baseboxes
May 15, 2013
71fd738
[COOK-2866] - use python binary vs existing directory
May 17, 2013
a175792
[COOK-3008] - update source install to 2.7.5
May 17, 2013
e230660
[COOK-3009] - Add packages, build flags
May 17, 2013
9fa1f1e
pull ubuntu 13.04 for now, not yet in omnibus install.sh
May 17, 2013
7946772
release v1.3.0
May 17, 2013
ef6a0e0
increment version for development
May 17, 2013
e3d58f0
[COOK-3077] updated recipes/pip.rb to correctly set the pip_binary va…
May 29, 2013
d2f8b66
COOK-3077: Keep track of pip locations
btm May 31, 2013
b85a8ba
Merge pull request #43 from opscode-cookbooks/COOK-3077
May 31, 2013
6519292
Allow name and package_name to be different to avoid CHEF-3694 warnings
e100 Jun 7, 2013
7aca838
Merge pull request #39 from tk0miya/COOK-2917
Jun 9, 2013
fa228d7
release v1.3.2
Jun 9, 2013
cd033e5
increment version for development
Jun 9, 2013
b9c79a8
Merge pull request #45 from e100/fix_pip_name
Jun 11, 2013
d4f66ba
release v1.3.4
Jun 15, 2013
dd8c9e4
increment version for development
Jun 15, 2013
a32c146
update to new bucket for boxes
Jun 18, 2013
2e9c012
- Improve the testing of the Python Cookbook
scottmlikens Jun 25, 2013
d6bcc45
- After rebasing and accepting Opscode's source stanza it broke our…
scottmlikens Jun 25, 2013
97da0b5
- Omit centos 5.9 from testing scenario as pip requires python 2.5+
scottmlikens Jun 27, 2013
d67e2ef
- Move test recipes into a cookbook called python_test
scottmlikens Jun 27, 2013
2466ea8
- Fix a bad merge of .gitignore
scottmlikens Jun 27, 2013
ada1f90
- Exclude centos-5.9 from exert and virtualenv tests.
scottmlikens Jun 30, 2013
a96af3b
Merge pull request #47 from mopub-cookbooks/COOK-2444
Jun 30, 2013
c8354c6
install pip via setuptools 0.8.x
ka2n Jul 8, 2013
8e5de71
Use @coderanger's suggested way(#r5274401) to check setuptools are in…
ka2n Jul 23, 2013
2a3677e
retrieve ez_setup.py only if `import setuptools` is failed.
ka2n Jul 24, 2013
488d653
Merge pull request #48 from ka2n/setuptools_0_8_x
coderanger Jul 24, 2013
51b4ec8
Bump version for release.
coderanger Jul 26, 2013
ff36893
Update changelog.
coderanger Jul 26, 2013
345c56a
Bump version for release.
coderanger Jul 26, 2013
ed1d192
[COOK-3125] Use default instead of normal attribute for python bin
kamaradclimber Aug 24, 2013
e3d1dcc
Fix VirtualEnv Provider
akiernan Aug 28, 2013
a8e88c5
Update CHANGELOG format
sethvargo Aug 28, 2013
45e88e4
Fix whitespace
sethvargo Aug 28, 2013
f6eaa68
Fix README format
sethvargo Aug 28, 2013
4c873e0
Version bump to v1.4.0
sethvargo Aug 28, 2013
f932b36
Bump devodd release
sethvargo Aug 28, 2013
5e02477
[COOK-3719] Allow alternative install python and update pip location
garrypolley Oct 9, 2013
dde0fe9
[COOK-3788] Make symlink for source built python
rgbkrk Nov 5, 2013
da4cc8a
[COOK-3796] Fix virtualenv when user hasn't right on parent directory
guilhem Nov 5, 2013
ecb4116
Version bump to v1.4.2
Nov 5, 2013
4b03489
[COOK-3816] - Including ez_setup script with cookbook instead of down…
chr4 Nov 6, 2013
1c39fe5
Version bump to v1.4.4
Nov 6, 2013
02a7bdd
Version bump to v1.4.5
Nov 6, 2013
e5bc821
python packages specfied for fedora platform.
paulczar Dec 4, 2013
50ada46
Merge pull request #61 from paulczar/patch-1
coderanger Dec 4, 2013
691d339
use .tgz archive
Dec 11, 2013
71b6f2b
Merge pull request #62 from zakkie/fix/python276-tgz
coderanger Dec 11, 2013
3f8e285
correct markdown
Dec 11, 2013
dd65106
Merge pull request #63 from zakkie/fix/readme-md-format
coderanger Dec 11, 2013
5921be4
Added a Travis config. Added matchers for chefspec. Added a few chefs…
joestump Dec 28, 2013
679c712
Set the language in Travis.
joestump Dec 28, 2013
f3720cc
Fixed overriding the script call.
joestump Dec 28, 2013
dc6cd4d
Merge pull request #66 from tvdinner/dev/chefspec-matchers
coderanger Dec 28, 2013
c0c9a07
Add travis badge.
coderanger Dec 28, 2013
8ce88cd
Some updates for Travis.
coderanger Dec 28, 2013
f4b6af6
COOK-4183 Set $HOME to new owner as in the pip provider when shelling…
Jan 6, 2014
b01c4a5
Revert "COOK-4183 Set $HOME to new owner as in the pip provider when …
guilhem Jan 8, 2014
e822c71
Set $HOME to new owner
guilhem Jan 8, 2014
2cc384b
Merge pull request #1 from optiflows-cookbooks/COOK-4183
comandrei Jan 9, 2014
4920ddd
Merge pull request #72 from comandrei/COOK-4183
coderanger Jan 21, 2014
ab24dd7
[COOK-4244] Fix the pip version_check_cmd to use the virtualenv pip w…
Jan 22, 2014
6be1a46
[COOK-4271] Add ability in pip lwrp to send custom env vars
petecheslock Jan 27, 2014
021779c
update to yum3 yum-epel cook
spheromak Jan 27, 2014
349c6da
Fix venv recipe to be idempotent.
coderanger Jan 28, 2014
50d2550
Delete CONTRIBUTING
coderanger Jan 28, 2014
db03872
Merge pull request #80 from spheromak/yum3
coderanger Jan 28, 2014
591ba73
Merge pull request #79 from petecheslock/python-environment
coderanger Jan 28, 2014
6e0afef
Slight cleanup for env code.
coderanger Jan 28, 2014
90a3f6c
Update bootstrap files for pip 1.5.2 and setuptools 2.1
coderanger Jan 28, 2014
213c37e
No longer need ez_setup at all.
coderanger Jan 28, 2014
f0a37e1
allow setting of virtualenv version
coderanger Jan 28, 2014
6e02e0c
Merge pull request #78 from aclowes/master
coderanger Jan 28, 2014
a757105
Add support for Fedora.
coderanger Jan 28, 2014
ecafe73
Update change log.
coderanger Jan 28, 2014
0159af8
New maintainer.
coderanger Jan 28, 2014
18eb0ec
Bump version for release.
coderanger Jan 28, 2014
eba69be
Bump version for dev.
coderanger Jan 28, 2014
ec9d2dd
Fix issue with underscores in package names. Fixes #91
hltbra Feb 25, 2014
574ad93
Merge pull request #92 from yipit-cookbooks/master
coderanger Feb 25, 2014
ec1dd90
Bump default version
coderanger Jun 18, 2014
f6d0837
Fix version detection (setuptools and distribute)
mal Mar 1, 2014
56424ab
Merge pull request #94 from idio-cookbooks/version-detection
coderanger Jun 30, 2014
d13e97c
Using the package resource isn't supported.
coderanger Aug 19, 2014
c3ed4e2
Update README.md
nathanph Sep 21, 2014
9c6d0aa
@ranjib pointed out I hard-wired to upgrade
coderanger Sep 22, 2014
2348520
Revert "@ranjib pointed out I hard-wired to upgrade"
coderanger Sep 22, 2014
8b3fd0f
Merge pull request #124 from nathanph/master
coderanger Oct 16, 2014
a553743
fix python install from source to work with chef 12
chantra Dec 12, 2014
01e511b
Merge pull request #133 from chantra/fix_chef12
coderanger Dec 13, 2014
8ae142f
opscode2chef
Feb 18, 2015
68edd40
Merge pull request #143 from someara/master
coderanger Feb 18, 2015
d843d80
Update README.md
coderanger Jul 15, 2015
711e4d9
Deprecated. [ci skip]
coderanger Aug 24, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.vagrant
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
/cookbooks

# Bundler
bin/*
.bundle/*
.kitchen/
.kitchen.local.yml
62 changes: 62 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
driver_plugin: vagrant
driver_config:
require_chef_omnibus: true

platforms:
- name: ubuntu-12.10
driver_config:
box: opscode-ubuntu-12.10
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.10_provisionerless.box
run_list: ["recipe[apt]"]

- name: ubuntu-12.04
driver_config:
box: opscode-ubuntu-12.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box
run_list: ["recipe[apt]"]

- name: ubuntu-10.04
driver_config:
box: opscode-ubuntu-10.04
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_provisionerless.box
run_list: ["recipe[apt]"]

- name: centos-5.9
driver_config:
box: opscode-centos-5.9
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-5.9_provisionerless.box

- name: centos-6.4
driver_config:
box: opscode-centos-6.4
box_url: https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_centos-6.4_provisionerless.box

suites:
- name: default
run_list:
- recipe[minitest-handler]
- recipe[python]
- recipe[python_test::cook-3084]
attributes: {}
- name: pip
run_list:
- recipe[minitest-handler]
- recipe[python]
- recipe[python_test::test_pip]

- name: source
run_list:
- recipe[minitest-handler]
- recipe[python]
- recipe[python_test::cook-3084]
attributes: {python: {install_method: "source"}}
- name: exert
excludes: ["centos-5.9"]
run_list:
- recipe[python]
- recipe[python_test::test_exert]
- name: virtualenv
run_list:
- recipe[python]
- recipe[python_test::test_virtualenv]
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: ruby
rvm:
- 1.9.3
- 2.0.0
bundler_args: --deployment --binstubs
before_script:
- ./bin/berks install
script:
- ./bin/foodcritic -f any .
- ./bin/rake
11 changes: 11 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
site 'https://supermarket.chef.io'

metadata

group :integration do
cookbook "minitest-handler"
cookbook "apt"
cookbook "yum"
cookbook "build-essential"
cookbook "python_test", :path => "./test/cookbooks/python_test"
end
25 changes: 25 additions & 0 deletions Berksfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"sources": {
"python": {
"path": "."
},
"minitest-handler": {
"locked_version": "1.1.2"
},
"apt": {
"locked_version": "2.3.4"
},
"yum": {
"locked_version": "3.0.2"
},
"build-essential": {
"locked_version": "1.4.2"
},
"python_test": {
"path": "./test/cookbooks/python_test"
},
"chef_handler": {
"locked_version": "1.1.4"
}
}
}
121 changes: 105 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,110 @@
## v1.0.8:
python Cookbook CHANGELOG
=========================
This file is used to list changes made in each version of the python cookbook.

* [COOK-1016] - python package needs separate names for centos/rhel 5.x vs 6.x
* [COOK-1048] - installation of pip does not honor selected python version
* [COOK-1282] - catch Chef::Exceptions::ShellCommandFailed for chef 0.10.8 compatibility
* [COOK-1311] - virtualenv should have options attribute
* [COOK-1320] - pip provider doesn't catch correct exception
* [COOK-1415] - use plain 'python' binary instead of versioned one for
default interpreter
v1.4.6
------

## v1.0.6:
- **[#61](https://github.com/poise/python/pull/61)** – Python packages specified for Fedora platform.
- **[#62](https://github.com/poise/python/pull/62)** – Use tgz archive instead of tbz2 as new releases no longer offer tb2
- **[#72](https://github.com/poise/python/pull/72)** – Set $HOME in virtualenv provider
- **[#74](https://github.com/poise/python/pull/74)** – Allow setting of virtualenv version
- **[#78](https://github.com/poise/python/pull/78)** – AFix the pip version_check_cmd to use the virtualenv pip when applicable
- **[#79](https://github.com/poise/python/pull/79)** – Add ability in pip lwrp to send custom env vars
- **[#80](https://github.com/poise/python/pull/80)** – Update to yum3 yum-epel cookbook
- Remove ez_setup.py usage and upgrade get-pip.py to 1.5.2.

* [COOK-1036] - correctly grep for python-module version
* [COOK-1046] - run pip inside the virtualenv
v1.4.4
------
[COOK-3816] - Including ez_setup script with cookbook instead of downloading from the internet

## v1.0.4:

* [COOK-960] - add timeout to python_pip
* [COOK-651] - 'install_path' not correctly resolved when using python::source
* [COOK-650] - Add ability to specify version when installing distribute.
* [COOK-553] - FreeBSD support in the python cookbook
v1.4.2
------
### Bug
- **[COOK-3796](https://tickets.chef.io/browse/COOK-3796)** - Virtualenv can fail

### Improvement
- **[COOK-3719](https://tickets.chef.io/browse/COOK-3719)** - Allow alternative install python, update pip location
- **[COOK-3703](https://tickets.chef.io/browse/COOK-3703)** - Create symlink for source built python [python3 support]


v1.4.0
------
### New Feature
- **[COOK-3248](https://tickets.chef.io/browse/COOK-3248)** - Improve testing suite

### Improvement
- **[COOK-3125](https://tickets.chef.io/browse/COOK-3125)** - Don't use `normal` attributes

### Bug
- **[COOK-3084](https://tickets.chef.io/browse/COOK-3084)** - Fix `python_virtualenv` on EL 5

v1.3.6
------
### Bug
- [COOK-3305]: distribute merged back into setuptools

### New Feature
- [COOK-3248]: Improve testing suite in the python cookbook

v1.3.4
------
### Bug
- [COOK-3137]: `python_pip` LWRP cannot have differnent name and `package_name`

v1.3.2
------
### Bug
- [COOK-2917]: python::source fails on CentOS 6.3 minimal (make: command not found)
- [COOK-3077]: Python - pip fails to install when `['python']['install_method'] == 'source'`

v1.3.0
------
### Bug
- [COOK-2376]: Python pip default action
- [COOK-2468]: python cookbook - Chef 11 compat fixes
- [COOK-2882]: Python source recipe fails on Ubuntu 12.10 because of unavailable libdb4.8-dev package
- [COOK-3009]: fix build time dependencies and gcc flags for python source on newer ubuntus

### New Feature
- [COOK-2449]: Make the distribute download location an attribute
- [COOK-3008]: Update python::source to install 2.7.5

### Sub-task
- [COOK-2866]: python::source checks existence of a directory that already exists

v1.2.2
------
- [COOK-2297] - more gracefully handle pip packages from VCS and source archives

v1.2.0
------
- [COOK-1866] - /usr/bin is not a pip binary location in source installs on RHEL
- [COOK-1925] - add smartos support

v1.1.0
------
- [COOK-1715] - Add user and group to python_pip
- [COOK-1727] - Python cookbook cannot install `pip` on CentOS versions < 6

v1.0.8
------
- [COOK-1016] - python package needs separate names for centos/rhel 5.x vs 6.x
- [COOK-1048] - installation of pip does not honor selected python version
- [COOK-1282] - catch Chef::Exceptions::ShellCommandFailed for chef 0.10.8 compatibility
- [COOK-1311] - virtualenv should have options attribute
- [COOK-1320] - pip provider doesn't catch correct exception
- [COOK-1415] - use plain 'python' binary instead of versioned one for default interpreter

v1.0.6
------
- [COOK-1036] - correctly grep for python-module version
- [COOK-1046] - run pip inside the virtualenv

v1.0.4
------
- [COOK-960] - add timeout to python_pip
- [COOK-651] - 'install_path' not correctly resolved when using python::source
- [COOK-650] - Add ability to specify version when installing distribute.
- [COOK-553] - FreeBSD support in the python cookbook
29 changes: 0 additions & 29 deletions CONTRIBUTING

This file was deleted.

5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gem 'foodcritic', '>= 3.0.3'
gem 'berkshelf', '~> 2.0'
gem 'chefspec', '~> 3.0'
Loading