Skip to content

Commit 136c3a1

Browse files
authored
Further expand buildpack detection known file list (#1914)
Similar to #1729, this adds more files to the buildpack's detection list - based on files commonly seen for apps that fail detection due to eg misspelled files. GUS-W-19769721.
1 parent a3caefb commit 136c3a1

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [Unreleased]
44

5+
- Added more Python project related file and directory names to the list recognised by buildpack detection. ([#1914](https://github.com/heroku/heroku-buildpack-python/pull/1914))
56

67
## [v310] - 2025-09-23
78

bin/detect

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@ KNOWN_PYTHON_PROJECT_FILES=(
3737
uv.lock
3838
# Commonly seen misspellings of requirements.txt. (Which occur since pip doesn't
3939
# create/manage requirements files itself, so the filenames are manually typed.)
40+
requeriments.txt
4041
requirement.txt
41-
Requirements.txt
42+
requirements
4243
requirements.text
44+
Requirements.txt
4345
requirements.txt.txt
4446
requirments.txt
45-
# Whilst virtual environments shouldn't be committed to Git (and so shouldn't
46-
# normally be present during the build), they are often present for beginner
47+
# Whilst the pyc cache and virtual environments shouldn't be committed to Git (and so
48+
# shouldn't normally be present during the build), they are often present for beginner
4749
# Python apps that are missing all of the other Python related files above.
50+
__pycache__/
4851
.venv/
4952
venv/
5053
)

0 commit comments

Comments
 (0)