Giter Club home page Giter Club logo

heroku-buildpack-python's Introduction

python

Heroku Buildpack: Python

Build Status

This is the official Heroku buildpack for Python apps, powered by Pipenv, pip and other excellent software.

Recommended web frameworks include Django and Flask. The recommended webserver is Gunicorn. There are no restrictions around what software can be used (as long as it's pip-installable). Web processes must bind to $PORT, and only the HTTP protocol is permitted for incoming connections.

Python packages with C dependencies that are not available on the stack image are generally not supported, unless manylinux wheels are provided by the package maintainers (common). For recommended solutions, check out this article for more information.

See it in Action

Deploying a Python application couldn't be easier:

$ ls
Pipfile		Pipfile.lock	Procfile	web.py

$ heroku create --buildpack heroku/python

$ git push heroku master
…
-----> Python app detected
-----> Installing python-3.6.4
-----> Installing pip
-----> Installing requirements with Pipenv 11.7.1…
       ...
       Installing dependencies from Pipfile…
-----> Discovering process types
       Procfile declares types -> (none)

A Pipfile or requirements.txt must be present at the root of your application's repository.

You can also specify the latest production release of this buildpack for upcoming builds of an existing application:

$ heroku buildpacks:set heroku/python

Specify a Python Runtime

Specific versions of the Python runtime can be specified in your Pipfile:

[requires]
python_version = "2.7"

Or, more specifically:

[requires]
python_full_version = "2.7.15"

Or, with a runtime.txt file:

$ cat runtime.txt
python-2.7.15

Runtime options include:

  • python-3.6.4
  • python-2.7.15

heroku-buildpack-python's People

Contributors

agriffis avatar alex avatar andres-torres-marroquin avatar androbin avatar chadwhitacre avatar codingjoe avatar craigkerstiens avatar dulacp avatar dzuelke avatar edmorley avatar furious-luke avatar gulopine avatar jambonrose avatar joshfriend avatar jpadilla avatar kencochrane avatar kennethreitz avatar lstoll avatar mattgraham avatar mjtamlyn avatar msabramo avatar nsamsami avatar ollanta avatar pdamodara avatar rwothoromo avatar ryanwitt avatar sigmavirus24 avatar tommyvn avatar tt avatar uniphil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.