Skip to content

Commit

Permalink
feat: use jinjanator instead of j2cli (#79)
Browse files Browse the repository at this point in the history
Switch to jinjanator as alternative to j2cli
for compatibility with python 3.12+.

Closes #77
  • Loading branch information
queria authored Jun 15, 2024
1 parent 3807a4a commit 897a36c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generate-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ while read line; do
export distro=$(echo "$line" | awk -F, '{ print $4 }')
touch "docker-compose/docker-compose-${shortname}.yml"
echo "Generating docker-compose-${shortname}.yml (${gamename})"
j2 -f env docker-compose.yml.j2 >"docker-compose/docker-compose-${shortname}.yml"
jinjanate docker-compose.yml.j2 >"docker-compose/docker-compose-${shortname}.yml"
echo -n "{" >>"shortnamearray.json"
echo -n "\"shortname\":" >>"shortnamearray.json"
echo -n "\"${shortname}\"" >>"shortnamearray.json"
Expand Down
2 changes: 1 addition & 1 deletion generate-dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ while read line; do
export distro=$(echo "$line" | awk -F, '{ print $4 }')
touch "dockerfiles/Dockerfile.${shortname}"
echo "Generating Dockerfile.${shortname} (${gamename})"
j2 -f env Dockerfile.j2 >"dockerfiles/Dockerfile.${shortname}"
jinjanate Dockerfile.j2 >"dockerfiles/Dockerfile.${shortname}"
echo -n "{" >>"shortnamearray.json"
echo -n "\"shortname\":" >>"shortnamearray.json"
echo -n "\"${shortname}\"" >>"shortnamearray.json"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
j2cli
jinjanator

0 comments on commit 897a36c

Please sign in to comment.