Help:Toolforge/Building container images (permalink) advises that one can use e.g. “python 3.12, see Specifying a Python runtime”. The linked Heroku documentation advises users to create a .python-version file that should control the Python version. However, the build service does not appear to take this file into account whatsoever. Only specifying a runtime.txt file, as documented in older Heroku documentation, appears to work – I assume we’re using an older version of whatever the relevant component is (pack?).
Presumably for the same reason, Python 3.13 doesn’t appear to be available – trying to select python-3.13.0 in runtime.txt results in:
[step-build] 2024-12-10T18:08:21.777668762Z [Error: Requested Python version is not available] [step-build] 2024-12-10T18:08:21.777686324Z The requested Python version (3.13.0) is not available for this stack (heroku-22). [step-build] 2024-12-10T18:08:21.777701510Z [step-build] 2024-12-10T18:08:21.777711416Z Please update the version in 'runtime.txt' to a supported Python version, or else [step-build] 2024-12-10T18:08:21.777721493Z remove the file to instead use the default version (currently Python 3.12.1). [step-build] 2024-12-10T18:08:21.777729950Z [step-build] 2024-12-10T18:08:21.777739389Z For a list of the supported Python versions, see: [step-build] 2024-12-10T18:08:21.777749236Z https://devcenter.heroku.com/articles/python-support#supported-runtimes [step-build] 2024-12-10T18:08:21.777758243Z [step-build] 2024-12-10T18:08:21.779447421Z ERROR: failed to build: exit status 1