Skip to content

Releases: heroku/heroku-buildpack-python

v272

13 Dec 21:22
8732383
Compare
Choose a tag to compare
  • Added a warning if the Python buildpack has been run multiple times in the same build. In January 2025 this warning will be made an error. (#1724)
  • Added a warning if an existing .heroku/python/ directory is found in the app source. In January 2025 this warning will be made an error. (#1724)
  • Improved the error message shown if the buildpack is used on an unsupported stack. (#1724)
  • Fixed Dev Center links to reflect recent article URL changes. (#1723)
  • Added metrics for the existence of a uv lockfile. (#1725)

v271

12 Dec 17:01
e831d7e
Compare
Choose a tag to compare
  • Updated the Python 3.8 EOL warning message with the new sunset date. (#1721)
  • Improved the error message shown when pip install fails due to pip rejecting a package with invalid version metadata. (#1718)
  • Improved the error message shown when the copy of pip bundled in the ensurepip module cannot be found. (#1720)

v270

10 Dec 10:13
07005f2
Compare
Choose a tag to compare
  • Changed the default Python version for new apps from 3.12 to 3.13. (#1715)
  • Changed Python version pinning behaviour for apps that do not specify a Python version. Repeat builds are now pinned to the major Python version only (3.X) instead of the full Python version (3.X.Y), so that they always use the latest patch version. (#1714)
  • Updated Poetry from 1.8.4 to 1.8.5. (#1716)

v269

04 Dec 16:21
dc79a48
Compare
Choose a tag to compare
  • The Python 3.13 version alias now resolves to Python 3.13.1. (#1712)
  • The Python 3.12 version alias now resolves to Python 3.12.8. (#1712)
  • The Python 3.11 version alias now resolves to Python 3.11.11. (#1712)
  • The Python 3.10 version alias now resolves to Python 3.10.16. (#1712)
  • The Python 3.9 version alias now resolves to Python 3.9.21. (#1712)

v268

04 Dec 09:36
1b44202
Compare
Choose a tag to compare
  • Updated pip from 24.0 to 24.3.1. (#1685)
  • Updated wheel from 0.44.0 to 0.45.1. (#1707)

v267

12 Nov 18:24
ca99c39
Compare
Choose a tag to compare
  • Deprecated using Pipenv without a lockfile (Pipfile.lock). (#1695)
  • Fixed Poetry venv creation when using an outdated Python version whose ensurepip module doesn't enable isolated mode, and the app's build directory contents shadows a package imported by pip (such as brotli). (#1698)

v266

08 Nov 19:41
1416814
Compare
Choose a tag to compare
  • Added a warning when the files for multiple package managers are found. In the future this warning will become an error. (#1692)
  • Updated the build log message shown when installing dependencies to include the package manager command being run. (#1689)
  • Changed test dependency installation on Heroku CI to now install requirements.txt and requirements-test.txt in a single pip install invocation rather than separately. This allows pip's resolver to resolve any version conflicts between the two files. (#1689)
  • Improved the error messages and buildpack metrics for package manager related failures. (#1689)
  • Improved the build log output, error messages and buildpack failure metrics for the NLTK downloader feature. (#1690)

v265

06 Nov 13:20
eed2dc7
Compare
Choose a tag to compare
  • Fixed Poetry installation when using outdated patch versions of Python 3.8, 3.9 and 3.10, whose bundled pip doesn't support the --python option. (#1687)

v264

06 Nov 09:19
158def0
Compare
Choose a tag to compare
  • Added support for the package manager Poetry. Apps must have a pyproject.toml + poetry.lock and no other package manager files (otherwise pip/Pipenv will take precedence for backwards compatibility). (#1682)

v263

31 Oct 16:47
4df96c2
Compare
Choose a tag to compare
  • Fixed cache handling so that it now also discards the cache when the package manager (or its version) changes. (#1679)
  • Improved the build log output shown when restoring or discarding the cache. For example, if the cache was invalidated all reasons are now shown. (#1679)
  • Stopped performing unnecessary cache file copies when the cache is due to be invalidated. This required moving the cache restoration step to after the bin/pre_compile hook runs. (#1679)
  • Fixed cache restoration in the case where an app's requirements.txt was formerly a symlink. (#1679)
  • Added buildpack metrics for the status of the cache and duration of cache restoration/saving. (#1679)