heroku/heroku-buildpack-python
소개
Python 앱을 위한 Heroku의 클래식 빌드팩
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
Heroku Buildpack: Python
This is the official Heroku buildpack for Python apps.
Recommended web frameworks include Django and Flask, among others. The recommended web server 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.
This is the Heroku Classic Buildpack for Python. If you are instead looking for the Heroku Cloud Native Buildpack for Python, you may find it here.
Getting Started
See the Getting Started on Heroku with Python tutorial.
Application Requirements
A requirements.txt, Pipfile.lock, 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.15, create a .python-version file in
the root directory of your app containing:
3.15
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):
runtime.txtfile (deprecated).python-versionfile (recommended)- The
python_full_versionfield in thePipfile.lockfile - The
python_versionfield in thePipfile.lockfile
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.15
The supported Python versions are:
- Python 3.15
- Python 3.14
- Python 3.13
- Python 3.12
These Python versions are deprecated on Heroku:
- Python 3.11
- Python 3.10
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.
Contributing
See CONTRIBUTING.md for how to set up, test and make changes to this repository.
관련 프로젝트 살펴보기
불러오는 중…