This almost removes the Cheetah dependency from Koji. We still need it on builders for backwards compatibility with wrapper rpms (~~though I have added the option of using jinja templates for those as well~~)
My aim was to avoid rewriting the templates entirely. For the most part they have the same structure, with syntax adapted to work with jinja2. I also made use of the line_statements option.
This work includes a new unit test that evaluates almost all of the templates with test data.
The convert-cheetah script under devtools was used to partially automate the conversion, but most templates still required manual fixes on top of that.
This almost removes the Cheetah dependency from Koji. We still need it on builders for backwards compatibility with wrapper rpms (~~though I have added the option of using jinja templates for those as well~~)
My aim was to avoid rewriting the templates entirely. For the most part they have the same structure, with syntax adapted to work with jinja2. I also made use of the line_statements option.
This work includes a new unit test that evaluates almost all of the templates with test data.
The
convert-cheetahscript under devtools was used to partially automate the conversion, but most templates still required manual fixes on top of that.Fixes https://pagure.io/koji/issue/4361