WARNING this is probably not ready yet.
This is based on and replaces fedmod rpm2flatpak, as we have moved away from modularity in flatpak builds from F39.
This is the big TODO.
Maybe this should be --kde5? Maybe it should be--runtime=flatpak-kde5-runtime ? Maybe it's not necessary at all and the user should just edit the result? (Different from the fedmod case, since fedmod needed to know the runtime). I'd probably skip the -K shortcut in any case, since it's not like this will be typed all the time.
I'm thinking this gets wrapped by fedpkg as flatpak-init, to go along with flatpak-build flatpak-build-local flatpak-build-rpms flatpak-build-rpms-local So maybe just 'flatpak-module init' ?
flatpak-init
flatpak-build
flatpak-build-local
flatpak-build-rpms
flatpak-build-rpms-local
This variable should be 'runtime_version'. I think we initialize it by current Fedora stable release. Adam Williamson's recommendation was to use bodhi for that. Something like:
response = requests.get("https://bodhi.fedoraproject.org/releases/?state=current") response.raise_for_status() return max(int( r["version"]) for r in response.json()["releases"] if r["id_prefix"] == "FEDORA-FLATPAK" ))
(Call fromrun() not __init__()). I don't know if this needs to be overridable, other than by editing, but the command ends up with a --runtime argument, it could have a --runtime-version argument too.
run()
__init__()
--runtime-version
Generally looks fine to me, other than the naming / cli questions above.
rebased onto 5f8207821288654639e9f7d01e549a9b74037d17
Second draft posted.
rebased onto 6e947d20e88f0ee61a0fb56ca5ed2528ce6b608c
ping @otaylor
rebased onto 7f675b94774cae604a2c219ea8d29574c1c61df7
A bit stray in this patch, if an end-user hits this, they are still going to be puzzled :-) ... but sure.
Sorry, had that locally, but it was meant for a separate PR. Do you want me to drop that here?
rebased onto 768ada635fdd298824126a17d5c7f6db02ff124a
This generally looks great. The style of the tests is clearly not the same as the other tests, but that is fine since they are moving from fedmod - if we want to make things consistent later, we can do that. The only request I would make here is to move things from tests/files/flatpak to tests/files/generator - since everything is flatpak in flatpak-module-tools.
rebased onto cf20a2e0eb5299d3a8031981d0eedf193bd161ef
Yes this were taken straight from fedmod, with the modulemd stripped out and adjusted the integration to the rest of the package, but didn't consider code style.
Pull-Request has been merged by otaylor
WARNING this is probably not ready yet.
This is based on and replaces fedmod rpm2flatpak, as we have moved away from modularity in flatpak builds from F39.