A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://devcenter.heroku.com/articles/python-behavior-in-heroku below:

Python Behavior in Heroku | Heroku Dev Center

Python Behavior in Heroku English — 日本語に切り替える

Last updated May 13, 2025

The Heroku Platform uses the Python buildpack to build Python applications. The following shows Heroku’s behavior towards Python apps.

Auto-Detection

Heroku automatically recognizes your app as a Python app if it includes one of these files in its root directory:

Build Behavior

The Python buildpack detects which package manager your app uses based on the files included in the root directory of the app.

If you aren’t sure which package manager to use, we recommend trying uv, since it supports lockfiles, is extremely fast, and is actively maintained by a full-time team. Learn more.

If your app includes a requirements.txt file, it uses pip to install your dependencies:

$ pip install -r requirements.txt

If your app includes a poetry.lock file, it uses Poetry to install your dependencies:

$ poetry sync --only main

If your app includes a uv.lock file, it uses uv to install your dependencies:

$ uv sync --locked --no-default-groups

For apps that use classic buildpacks, if your app includes a Pipfile.lock file, it uses Pipenv to install your dependencies:

$ pipenv install --deploy

If you have auto-provisioning enabled on your account and meet these requirements, a Heroku Postgres database automatically provisions on the first deployment of your app. To learn more, see Python Database Auto-Provisioning.

Additional Reading

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4