Why are there no binary releases on github?
Currently some binary images are statically burnt into my uPIDE allowing the user to flash a firmware.
I would like to automate that. For that i'd need to way to figure out which the latest version is and where to download the binaries from. Currently e.g. the ESP32 version is available https://micropython.org/resources/firmw ... 1.19.1.bin . This I cannot guess automatically. I could load and parse https://micropython.org/download/esp32/, but that's a PITA and may fail once the layout changes.
Github would make this easy as they have an API for this:
https://api.github.com/repos/micropytho ... ses/latest
But there are no binaries ...
Why no binary releases on github?
Re: Why no binary releases on github?
There's already a feed somewhere, as Thonny picks up new versions automatically
Re: Why no binary releases on github?
The simple answer is because the micropython downloads page predates this being an easy thing to do on GitHub, and the build server has run largely unchanged since then other than at the end of last year when we made it build all boards for the new downloads page rather than just a subset.
We moved the CI to GitHub actions (in 2020 iirc) and that was a good experience. It's possible that we could move releases and nightlies to GitHub too, it's just work that someone needs to do.
If the feature you need though is a RSS feed (or equivalent) of builds, then that might be something we can just provide on the existing build infrastructure. Maybe could you raise a feature request at https://github.com/micropython/micropyt ... new/choose and describe what information you need (e.g. do you want one feed per board, or one giant feed of everything, etc). For example, it would be quite easy to provide (e.g.) https://micropython.org/download/PYBD-SF2/rss/
-
- Posts: 50
- Joined: Sun Nov 29, 2020 8:17 pm
Re: Why no binary releases on github?
Thanks for the offer.
Anything easy to download and to parse would be great. Most convenient would be a single file containing at least the latest version number and individual links to all the matching binaries.
I'll open an issue for that.
Anything easy to download and to parse would be great. Most convenient would be a single file containing at least the latest version number and individual links to all the matching binaries.
I'll open an issue for that.
- aivarannamaa
- Posts: 171
- Joined: Fri Sep 22, 2017 3:19 pm
- Location: Estonia
- Contact:
Re: Why no binary releases on github?
Thonny uses GitHub release info to construct URL-s for CircuitPython downloads (combined with template downloaded from https://github.com/thonny/thonny/blob/m ... vices.json)
For Pico (and micro:bit) I maintain separate online resources, eg https://raw.githubusercontent.com/thonn ... mware.json
Aivar Annamaa
https://thonny.org
https://thonny.org