[git] Refactor script (#227)

Make the script more readable, mostly by:

- using the Product and AutoConfig classes,
- removing the use of functions when unnecessary,
- a little bit of renaming and documentation.

Note that this also changed the module used for regexes in endoflife.py. The regex module is now used because the Python re module does not support identically named groups (as used in the mariadb product). The regex module being backwards-compatible with the standard re module, this should not be an issue.
This commit is contained in:
Marc Wrobel
2023-12-10 22:07:35 +01:00
committed by GitHub
parent 9e0f4a437a
commit dfb113d589
2 changed files with 19 additions and 45 deletions

View File

@@ -2,7 +2,7 @@ import frontmatter
import json
import logging
import os
import re
import regex as re # Python re module does not support identically named groups (as used in the mariadb product)
from datetime import datetime
from glob import glob
from liquid import Template