Skip to content

hongbin/python-buildpack

 
 

Repository files navigation

Cloud Foundry buildpack: Python

A Cloud Foundry buildpack for Python based apps.

This is based on the [Heroku buildpack] (https://github.com/heroku/heroku-buildpack-python).

Additional information can be found at CloudFoundry.org.

Usage

This buildpack will be used if there is a requirements.txt or setup.py file in the root directory of your project.

cf push my_app -b https://github.com/cloudfoundry/buildpack-python.git

Disconnected environments

To use this buildpack on Cloud Foundry, where the Cloud Foundry instance limits some or all internet activity, please read the Disconnected Environments documentation.

Vendoring app dependencies

As stated in the Disconnected Environments documentation, your application must 'vendor' it's dependencies.

For the Python buildpack, use pip:

cd <your app dir>
mkdir -p vendor

# vendors all the pip *.tar.gz into vendor/
pip install --download vendor -r requirements.txt

cf push uploads your vendored dependencies. The buildpack will install them directly from the vendor/.

Contributing

Run the tests

See the Machete CF buildpack test framework for more information.

Pull Requests

  1. Fork the project
  2. Submit a pull request

Reporting Issues

Open an issue on this project

Active Development

The project backlog is on Pivotal Tracker

About

Cloud Foundry buildpack for the Python Language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.9%
  • Ruby 4.1%
  • Other 1.0%