Releases: heroku/heroku-buildpack-python
Releases · heroku/heroku-buildpack-python
v272
- 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
- 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
- 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
- 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
v267
v266
- 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
andrequirements-test.txt
in a singlepip 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
v264
v263
- 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)