(I'm filing issues with all the packages that currently depend on dnf or yum)
dnf
yum
Starting in Fedora 41, the dnf command will be provided by the dnf5 package rather than the dnf package, and dnf5 will obsolete dnf. The old DNF 4 Python API will still be provided by python3-dnf, as well as the old DNF 4 command, as /usr/bin/dnf-3.
dnf5
python3-dnf
/usr/bin/dnf-3
To continue using DNF 4, Pungi should switch to depending on python3-dnf rather than dnf, yum, or python2-dnf.
python2-dnf
And since /usr/bin/dnf will soon point to DNF 5, which has a slightly different command-line interface, you should check that any calls to the /usr/bin/dnf binary work with DNF 5, or replace them with calls to the old DNF 4 binary, /usr/bin/dnf-3. DNF 4 and DNF 5 are mostly compatible, but it's best to be safe. See https://dnf5.readthedocs.io/en/latest/changes.html for a list of the changes. (From a quick grep through Pungi, it doesn't looks like this project calls /usr/bin/dnf outside from a couple Dockerfiles, but I may be wrong).
/usr/bin/dnf
At some point, this project should consider supporting DNF 5, but the immediate issue is making sure it will still work after DNF 5 becomes the default.
For more information about the switch to DNF 5, see https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5.
There are commands like these (not by full path, which should be fixed):
dnf repoclosure --arch=x86_64 --arch=athlon --arch=i686 --arch=i586 --arch=i486 --arch=i386 --arch=noarch --forcearch=x86_64 --repofrompath=r,... --repo=r --check=r
Based on the documented changes that doesn't change in DNF5, so it's really only the executable that may need to be changed.
pungi does also use the old Python dnf interface~~, and the hawkey interface~~. Per https://fedoraproject.org/wiki/Changes/SwitchToDnf5#Requirements_on_python3-dnf it should consider moving away from that; it's not going to be removed any time soon, probably, but still.
sorry, pungi doesn't use hawkey. I was confusing it with python3-imgcreate.
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/pungi/pungi/issues/1747
Please continue any further discussion there.