GithubHelp home page GithubHelp logo

andersendanmark / heroku-buildpack-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heroku/heroku-buildpack-python

0.0 1.0 0.0 58.37 MB

The official Heroku buildpack for Python apps.

Home Page: https://www.heroku.com/python

License: MIT License

Makefile 1.70% Shell 98.30%

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.6
-----> Installing pip
-----> Installing requirements with Pipenv 2018.5.18…
       ...
       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.7.0
  • python-3.6.6
  • python-2.7.15

heroku-buildpack-python's People

Contributors

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

Watchers

James Cloos 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.