GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - gitnt618/heroku-buildpack-python: heroku-buildpack-python

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

2,632 Commits
2,632 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
bin
bin
 
 
builds
builds
 
 
etc
etc
 
 
lib
lib
 
 
requirements
requirements
 
 
spec
spec
 
 
vendor
vendor
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.rubocop.yml
.rubocop.yml
 
 
.shellcheckrc
.shellcheckrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
buildpack.toml
buildpack.toml
 
 
hatchet.json
hatchet.json
 
 
hatchet.lock
hatchet.lock
 
 

Repository files navigation

python

Heroku Buildpack: Python

CI

This is the official Heroku buildpack for Python apps.

Recommended web frameworks include Django and Flask, among others. 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.

Getting Started

See the Getting Started on Heroku with Python tutorial.

Application Requirements

A requirements.txt, Pipfile, poetry.lock, or uv.lock file must be present in the root (top-level) directory of your app's source code.

When using the package manager uv a .python-version file is also required.

Configuration

Python Version

We recommend that you specify a Python version for your app rather than relying on the buildpack's default Python version.

For example, to request the latest patch release of Python 3.13, create a .python-version file in the root directory of your app containing: 3.13

We strongly recommend that you use the major version form instead of pinning to an exact version, since it will allow your app to receive Python security updates.

The buildpack will look for a Python version in the following places (in descending order of precedence):

  1. runtime.txt file (deprecated)
  2. .python-version file (recommended)
  3. The python_full_version field in the Pipfile.lock file
  4. The python_version field in the Pipfile.lock file

If none of those are found, the buildpack will use a default Python version for the first build of an app, and then subsequent builds of that app will be pinned to that version unless the build cache is cleared or you request a different version.

The current default Python version is: 3.13

The supported Python versions are:

  • Python 3.13
  • Python 3.12
  • Python 3.11
  • Python 3.10

These Python versions are deprecated on Heroku:

  • Python 3.9

Python versions older than those listed above are no longer supported, since they have reached end-of-life upstream.

Documentation

For more information about using Python on Heroku, see Dev Center.

About

heroku-buildpack-python

devcenter.heroku.com/categories/python-support

Resources

Readme
License
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.