Why no binary releases on github?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Why no binary releases on github?

Post by MasterOfGizmo » Thu Jun 23, 2022 5:44 pm

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 ...

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: Why no binary releases on github?

Post by scruss » Thu Jun 23, 2022 8:50 pm

There's already a feed somewhere, as Thonny picks up new versions automatically

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Why no binary releases on github?

Post by jimmo » Fri Jun 24, 2022 12:31 am

MasterOfGizmo wrote:
Thu Jun 23, 2022 5:44 pm
Why are there 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/

MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Re: Why no binary releases on github?

Post by MasterOfGizmo » Fri Jun 24, 2022 8:38 pm

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.

User avatar
aivarannamaa
Posts: 171
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Re: Why no binary releases on github?

Post by aivarannamaa » Sat Jun 25, 2022 4:32 am

scruss wrote:
Thu Jun 23, 2022 8:50 pm
There's already a feed somewhere, as Thonny picks up new versions automatically
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

Post Reply