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 - heroku/buildpacks-python: Heroku's Cloud Native Buildpack for Python apps

BranchesTags
Open more actions menu

Latest commit

 

History

512 Commits
512 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
requirements
requirements
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
buildpack.toml
buildpack.toml
 
 
clippy.toml
clippy.toml
 
 

Repository files navigation

Heroku Cloud Native Buildpack: Python

Cloud Native Buildpacks Registry: heroku/python CI on GitHub Actions: heroku/python

Heroku Cloud Native Buildpack: heroku/python

heroku/python is the Heroku Cloud Native Buildpack for Python applications. It builds Python application source code into application images with minimal configuration.

Important

This is a Cloud Native Buildpack, and is a component of the Heroku Cloud Native Buildpacks project. If you are instead looking for the Heroku Classic Buildpack for Python, you may find it here.

Usage

Note

Before getting started, ensure you have the pack CLI installed. Installation instructions are available here.

To build a Python application codebase into a production image:

$ cd ~/workdir/sample-python-app
$ pack build sample-app --builder heroku/builder:26

Then run the image:

$ docker run --rm -it -e "PORT=8080" -p 8080:8080 sample-app

Application Requirements

A requirements.txt, 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

If a .python-version file isn't found, the buildpack will install the latest version of Python 3.15. (The exception is when using uv, where a .python-version file is required, as noted above.)

To install a different version, add a .python-version file to your app's root directory that declares the version number to use:

$ cat .python-version
3.15

Contributing

Issues and pull requests are welcome. See our contributing guidelines if you would like to help.

About

Heroku's Cloud Native Buildpack for Python apps

Topics

cloud-native-buildpacksherokuheroku-languagespython

Resources

Readme
BSD-3-Clause license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

33 stars

Watchers

38 watching

Forks

4 forks
Report repository

Releases

Used by

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.