Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

spython (5) Versions 0.3.0

Spython cookbook - Sliim's python cookbook.

Policyfile
Berkshelf
Knife
cookbook 'spython', '= 0.3.0', :supermarket
cookbook 'spython', '= 0.3.0'
knife supermarket install spython
knife supermarket download spython
README
Dependencies
Changelog
Quality 67%

Spython cookbook - Sliim's python cookbook

Simple cookbook to manage python installations.

Cookbook Version

Requirements

Platforms

The following platforms and versions are tested and supported using Opscode's test-kitchen.
- Debian 9
- Debian 10
- Debian bullseye
- Ubuntu 16.04
- Ubuntu 18.04
- Centos 7

Attributes

spython::2

Key Type Description
[spython][2][packages] Array System packages to install python 2 (default: platform specific)
[spython][2][pip_packages] Hash Pip packages to install (default: {})
[spython][2][pip_upgrade] Bool Upgrade pip after python install (default: false)
[spython][2][setuptools_upgrade] Bool Upgrade setuptools after python install (default: false

spython::3

Key Type Description
[spython][3][packages] Array System packages to install python 3 (default: platform specific)
[spython][3][pip_packages] Hash Pip packages to install (default: {})
[spython][3][pip_upgrade] Bool Upgrade pip after python install (default: false)
[spython][3][setuptools_upgrade] Bool Upgrade setuptools after python install (default: false

Usage

spython::2

Just include spython::2 in your node's run_list to install Python2:

{
  "name":"my_node",
  "run_list": [
    "recipe[spython::2]"
  ]
}

spython::3

Just include spython::3 in your node's run_list to install Python3:

{
  "name":"my_node",
  "run_list": [
    "recipe[spython::3]"
  ]
}

LWRP

spython_runtime

Install python runtime

spython_runtime '3'

spython_package

Install python pip package

spython_package 'PyYaml' do
runtime '3'
version '3.13'
end

spython_venv

Create python virtualenv

spython_venv '/path/to/my/venv' do
runtime '3'
end

spython_exec

Execute python command

spython_exec 'setup.py install' do
runtime '3'
cwd '/path/to/my/project'
end

spython_pip

Execute pip command

spython_pip 'install -r requirements.txt' do
runtime '3'
cwd '/path/to/my/project'
end

See resources files for more infos about resources properties.

Testing

See [TESTING.md](TESTING.md)

Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md)

License and Authors

Authors: Sliim sliim@mailoo.org

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

butterfly Applicable Versions
glances Applicable Versions

spython CHANGELOG

This file is used to list changes made in each version of the spython cookbook.

0.3.0

  • Add spython ohai plugin to collect pip data
  • Add new resources:
    • spython_venv
    • spython_exec
    • spython_pip

0.2.0

  • Add Ubuntu 16.04 platform
  • Add CentOS 7 platform

0.1.0

  • Initial release of spython cookbook

Collaborator Number Metric
            

0.3.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.3.0 passed this metric

Foodcritic Metric
            

0.3.0 passed this metric

No Binaries Metric
            

0.3.0 passed this metric

Testing File Metric
            

0.3.0 passed this metric

Version Tag Metric
            

0.3.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number