Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

Commit

Permalink
Import python version 1.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 24, 2013
1 parent 74516aa commit cb4a43e
Show file tree
Hide file tree
Showing 28 changed files with 1,367 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cookbooks/python/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.vagrant
Berksfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
/cookbooks

# Bundler
Gemfile.lock
bin/*
.bundle/*
.kitchen/
.kitchen.local.yml
54 changes: 54 additions & 0 deletions cookbooks/python/.kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
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[python]
attributes: {}

- name: source
run_list:
- recipe[python]
attributes: {python: {install_method: "source"}}
- name: exert
excludes: ["centos-5.9"]
run_list:
- recipe[python]
- recipe[python_test::test_exert]
- name: virtualenv
excludes: ["centos-5.9"]
run_list:
- recipe[python]
- recipe[python_test::test_virtualenv]
10 changes: 10 additions & 0 deletions cookbooks/python/Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
site :opscode

metadata

group :integration do
cookbook "apt"
cookbook "yum"
cookbook "build-essential"
cookbook "python_test", :path => "./test/cookbooks/python_test"
end
82 changes: 82 additions & 0 deletions cookbooks/python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
## 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: 29 additions & 0 deletions cookbooks/python/CONTRIBUTING
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
If you would like to contribute, please open a ticket in JIRA:

* http://tickets.opscode.com

Create the ticket in the COOK project and use the cookbook name as the
component.

For all code contributions, we ask that contributors sign a
contributor license agreement (CLA). Instructions may be found here:

* http://wiki.opscode.com/display/chef/How+to+Contribute

When contributing changes to individual cookbooks, please do not
modify the version number in the metadata.rb. Also please do not
update the CHANGELOG.md for a new version. Not all changes to a
cookbook may be merged and released in the same versions. Opscode will
handle the version updates during the release process. You are welcome
to correct typos or otherwise make updates to documentation in the
README.

If a contribution adds new platforms or platform versions, indicate
such in the body of the commit message(s), and update the relevant
COOK ticket. When writing commit messages, it is helpful for others if
you indicate the COOK ticket. For example:

git commit -m '[COOK-1041] Updated pool resource to correctly delete.'

In the ticket itself, it is also helpful if you include log output of
a successful Chef run, but this is not absolutely required.
15 changes: 15 additions & 0 deletions cookbooks/python/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
source 'https://rubygems.org'

gem 'rake'
gem 'rspec'
gem 'foodcritic'
gem 'berkshelf'
gem 'thor-foodcritic'
gem 'vagrant-wrapper'

group :integration do
gem 'test-kitchen', :git => "git://github.com/opscode/test-kitchen.git"
gem 'kitchen-vagrant', :git => "git://github.com/opscode/kitchen-vagrant.git"
gem 'kitchen-ec2', :git => "git://github.com/opscode/kitchen-ec2.git"
gem 'kitchen-lxc', :git => "https://github.com/portertech/kitchen-lxc.git", :tag => 'v0.0.1.beta2'
end
Loading

0 comments on commit cb4a43e

Please sign in to comment.