Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to query currently supported Python runtimes #1181

Closed
zyv opened this issue Feb 27, 2021 · 4 comments
Closed

API to query currently supported Python runtimes #1181

zyv opened this issue Feb 27, 2021 · 4 comments

Comments

@zyv
Copy link
Contributor

zyv commented Feb 27, 2021

Hi @edmorley ,

We are thinking about supporting version specifications for runtimes in our buildpack (see moneymeets/python-poetry-buildpack#6 for the background if you're interested).

Is there a public Heroku API to find out which runtimes are currently supported? The best sources I could find so far are:

Obviously, parsing HTML or Markdown from script is no fun. Is there an API or at least a plain text file in specified format that one can download somewhere which is guaranteed to have the same list as on Heroku Dev Center?

Thanks!

@zyv
Copy link
Contributor Author

zyv commented Feb 27, 2021

P.S. Of course ideally the endpoint should be able to optionally return all available versions, not only currently supported ones, or return everything, but mark specific versions as currently supported.

@edmorley
Copy link
Member

edmorley commented Apr 8, 2021

@zyv Hi! There is not a public API - the files are just uploaded to S3.

I think the best way to solve this is to fix #913, that way moneymeets/python-poetry-buildpack could just write eg python-3.9 into runtime.txt, which would automatically use the latest supported release of that major version.

@edmorley
Copy link
Member

edmorley commented Apr 8, 2021

One advantage of the #913 approach would be that the resultant Python version would be deterministic for the buildpack release. That is, pinning to an older buildpack would give a consistent Python version, even when future Python releases are performed. Using an API would mean the Python version would change even when pinned to an older buildpack release.

@edmorley
Copy link
Member

Closing in favour of #913. In the meantime you can pull/parse this file:
https://raw.githubusercontent.com/heroku/heroku-buildpack-python/main/bin/default_pythons

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants