build-common

Shared build system code (usually as a git submodule)
Log | Files | Refs | README | LICENSE

commit 258abb1d5d3c546d5905c46751a0ccf85d870a5c
parent 248914b63660e506645c8059eacf27d41145c88f
Author: ng0 <ng0@n0.is>
Date:   Mon, 16 Dec 2019 14:37:43 +0000

follow-up fix to yapf, add dash

Diffstat:
Mtalerbuildconfig.py | 16++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/talerbuildconfig.py b/talerbuildconfig.py @@ -264,13 +264,25 @@ class YapfTool(Tool): "3.8": "yapf3.8", "3.9": "yapf3.9", "4.0": "yapf4.0", + "4.1": "yapf-3.0", + "4.2": "yapf-3.1", + "4.3": "yapf-3.2", + "4.4": "yapf-3.3", + "4.5": "yapf-3.4", + "4.6": "yapf-3.5", + "4.7": "yapf-3.6", + "4.8": "yapf-3.7", + "4.9": "yapf-3.8", + "5.0": "yapf-3.9", + "5.1": "yapf-4.0", } for key, value in version_dict.items(): if existence(value): # FIXME: This version reporting is slightly off # FIXME: and only maps to the suffix. - mypytox_version = key - buildconfig._set_tool("yapf", value, mypytox_version) + import yapf + myyapf_version = yapf.__version__ + buildconfig._set_tool("yapf", value, myyapf_version) return True