|
32 | 32 | remote: PYTHONUNBUFFERED=1 |
33 | 33 | remote: VIRTUAL_ENV=/app/.heroku/python |
34 | 34 | remote: -----> Saving cache |
| 35 | + remote: |
| 36 | + remote: ! Note: We recently added support for the package manager uv: |
| 37 | + remote: ! https://devcenter.heroku.com/changelog-items/3238 |
| 38 | + remote: ! |
| 39 | + remote: ! It's now our recommended Python package manager, since it |
| 40 | + remote: ! supports lockfiles, is faster, gives more helpful error |
| 41 | + remote: ! messages, and is actively maintained by a full-time team. |
| 42 | + remote: ! |
| 43 | + remote: ! If you haven't tried it yet, we suggest you take a look! |
| 44 | + remote: ! https://docs.astral.sh/uv/ |
| 45 | + remote: |
35 | 46 | remote: -----> Inline app detected |
36 | 47 | remote: LANG=en_US.UTF-8 |
37 | 48 | remote: LD_LIBRARY_PATH=/app/.heroku/python/lib |
|
96 | 107 | remote: -----> Running bin/post_compile hook |
97 | 108 | remote: .+ |
98 | 109 | remote: -----> Saving cache |
99 | | - remote: -----> Inline app detected |
| 110 | + remote: |
100 | 111 | REGEX |
101 | 112 |
|
102 | 113 | # For historical reasons Pipenv is made available at run-time too, unlike some of the other package managers. |
|
141 | 152 | remote: -----> Installing dependencies using 'pipenv install --deploy' |
142 | 153 | remote: Installing dependencies from Pipfile.lock \\(.+\\)... |
143 | 154 | remote: -----> Saving cache |
144 | | - remote: -----> Discovering process types |
| 155 | + remote: |
145 | 156 | REGEX |
146 | 157 | end |
147 | 158 | end |
|
303 | 314 | remote: ! delete your 'Pipfile' and then add either a 'requirements.txt', |
304 | 315 | remote: ! 'poetry.lock' or 'uv.lock' file. |
305 | 316 | remote: ! |
306 | | - remote: ! Note: This error replaces the warning which was displayed in |
307 | | - remote: ! build logs starting 12th November 2024. |
| 317 | + remote: ! If you aren't sure which package manager to use, we recommend |
| 318 | + remote: ! trying uv, since it supports lockfiles, is extremely fast, and |
| 319 | + remote: ! is actively maintained by a full-time team: |
| 320 | + remote: ! https://docs.astral.sh/uv/ |
308 | 321 | remote: |
309 | 322 | remote: ! Push rejected, failed to compile Python app. |
310 | 323 | REGEX |
|
465 | 478 | remote: -----> Installing dependencies using 'pipenv install --deploy' |
466 | 479 | remote: Installing dependencies from Pipfile.lock \\(.+\\)... |
467 | 480 | remote: -----> Saving cache |
468 | | - remote: -----> Discovering process types |
| 481 | + remote: |
469 | 482 | REGEX |
470 | 483 | end |
471 | 484 | end |
|
477 | 490 |
|
478 | 491 | it 'rewrites .pth and finder paths correctly for hooks, later buildpacks, runtime and cached builds' do |
479 | 492 | app.deploy do |app| |
480 | | - expect(clean_output(app.output)).to match(Regexp.new(<<~REGEX)) |
| 493 | + expect(clean_output(app.output)).to match(Regexp.new(<<~REGEX, Regexp::MULTILINE)) |
481 | 494 | remote: -----> Installing dependencies using 'pipenv install --deploy' |
482 | 495 | remote: Installing dependencies from Pipfile.lock \\(.+\\)... |
483 | 496 | remote: -----> Running bin/post_compile hook |
|
491 | 504 | remote: Running entrypoint for the setup.py-based local package: Hello from setup.py! |
492 | 505 | remote: Running entrypoint for the VCS package: gunicorn \\(version 23.0.0\\) |
493 | 506 | remote: -----> Saving cache |
| 507 | + .+ |
494 | 508 | remote: -----> Inline app detected |
495 | 509 | remote: __editable___gunicorn_23_0_0_finder.py:/app/.heroku/python/src/gunicorn/gunicorn'} |
496 | 510 | remote: __editable___local_package_pyproject_toml_0_0_1_finder.py:/tmp/build_.+/packages/local_package_pyproject_toml/local_package_pyproject_toml'} |
|
519 | 533 | # Test that the cached .pth files work correctly. |
520 | 534 | app.commit! |
521 | 535 | app.push! |
522 | | - expect(clean_output(app.output)).to match(Regexp.new(<<~REGEX)) |
| 536 | + expect(clean_output(app.output)).to match(Regexp.new(<<~REGEX, Regexp::MULTILINE)) |
523 | 537 | remote: -----> Installing dependencies using 'pipenv install --deploy' |
524 | 538 | remote: Installing dependencies from Pipfile.lock \\(.+\\)... |
525 | 539 | remote: -----> Running bin/post_compile hook |
|
533 | 547 | remote: Running entrypoint for the setup.py-based local package: Hello from setup.py! |
534 | 548 | remote: Running entrypoint for the VCS package: gunicorn \\(version 23.0.0\\) |
535 | 549 | remote: -----> Saving cache |
| 550 | + .+ |
536 | 551 | remote: -----> Inline app detected |
537 | 552 | remote: __editable___gunicorn_23_0_0_finder.py:/app/.heroku/python/src/gunicorn/gunicorn'} |
538 | 553 | remote: __editable___local_package_pyproject_toml_0_0_1_finder.py:/tmp/build_.+/packages/local_package_pyproject_toml/local_package_pyproject_toml'} |
|
0 commit comments