Repository navigation
Commit 7d67c67
committed
fix(deps): drop requirements.txt, let Heroku's buildpack use uv.lock natively
heroku/heroku-buildpack-python detects the package manager by looking
for exactly one of requirements.txt, poetry.lock or uv.lock at the
repo root, and now hard-fails the build ("Multiple Python package
manager files were found") if it sees more than one — this stopped
being just a deprecation warning. Committing both uv.lock and a
uv-export-generated requirements.txt (as the previous commit did)
would have broken every Heroku deploy.
The buildpack has native uv support: it runs
`uv sync --locked --no-default-groups` against the slug's system
Python, so no requirements.txt is needed at all. Verified locally with
`UV_PROJECT_ENVIRONMENT=<tmp> uv sync --locked --no-default-groups`
(dev group correctly excluded) and
`manage.py check --settings=pythonie.settings.production` against
that environment.
Drops the now-pointless `dependencies:export` / `deps:export` tasks
and the requirements.txt mentions in CLAUDE.md/DEVELOPMENT.md, and
documents the "never commit a requirements.txt here" constraint
directly so it isn't reintroduced later. `.python-version` (already
present, Python 3.13) continues to pin the buildpack's Python version.
Caught by an independent review pass (h/t python-validator).1 parent f43939e commit 7d67c67
5 files changed
Lines changed: 9 additions & 214 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 152 | | |
156 | 153 | | |
157 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
456 | 463 | | |
457 | 464 | | |
458 | 465 | | |
| |||
475 | 482 | | |
476 | 483 | | |
477 | 484 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | 485 | | |
482 | 486 | | |
483 | 487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 193 | | |
199 | 194 | | |
200 | 195 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 53 | | |
62 | 54 | | |
63 | 55 | | |
| |||
0 commit comments