diff options
author | Norbert Preining <norbert@preining.info> | 2024-11-15 03:03:42 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-11-15 03:03:42 +0000 |
commit | 22e21515873b6468b5be3ed37ec5ad63be574808 (patch) | |
tree | 7a454399037a4b30e97cc518edaee0f48936be41 /graphics/asymptote/determine_pkg_info.py | |
parent | 61eeeb436405039582f55c461632d4ca4a8b6b09 (diff) |
CTAN sync 202411150303
Diffstat (limited to 'graphics/asymptote/determine_pkg_info.py')
-rwxr-xr-x[-rw-r--r--] | graphics/asymptote/determine_pkg_info.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/asymptote/determine_pkg_info.py b/graphics/asymptote/determine_pkg_info.py index 722b3333dd..356df60f8a 100644..100755 --- a/graphics/asymptote/determine_pkg_info.py +++ b/graphics/asymptote/determine_pkg_info.py @@ -9,17 +9,17 @@ import pathlib from typing import TextIO import re -REGEXES: dict[str, re.Pattern[str]] = { +REGEXES = { "base": re.compile( r"AC_INIT\(\s*\[\s*(.+)\s*]\s*," # pkg name + r"\s*\[\s*(.+)\s*]\s*," # pkg version + r"\s*\[\s*(.+)\s*]\s*\)" # issue url ), - "asygl": re.compile(r"ASYGLVERSION\s*=\s*(.+)"), + "asygl": re.compile(r"ASYGLVERSION=(.+)"), } -def process_configure_ac_file(f: TextIO) -> dict: +def process_configure_ac_file(f): """ Returns a dictionary containing version information, if found from the configure.ac file object @@ -48,7 +48,7 @@ def process_configure_ac_file(f: TextIO) -> dict: return result -def determine_asy_pkg_info(ac_file: os.PathLike = "configure.ac") -> dict: +def determine_asy_pkg_info(ac_file="configure.ac"): """ Returns a dictionary containing version information, if found from the ac_file specified |