File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 22
33## [ Unreleased] [ ]
44
5- [ Unreleased ] : https://github.com/chaostoolkit/chaostoolkit-reporting/compare/0.14.2...HEAD
5+ [ Unreleased ] : https://github.com/chaostoolkit/chaostoolkit-reporting/compare/0.14.3...HEAD
6+
7+ ## [ 0.14.3] [ ] - 2023-06-09
8+
9+ [ 0.14.3 ] : https://github.com/chaostoolkit/chaostoolkit-reporting/compare/0.14.2...0.14.3
10+
11+ ### Fixed
12+
13+ - Support for newer API change in ` semver.VersionInfo ` [ #42 ] [ 42 ]
14+
15+ [ #42 ] : https://github.com/chaostoolkit/chaostoolkit-reporting/issues/42
616
717## [ 0.14.2] [ ] - 2023-02-27
818
Original file line number Diff line number Diff line change 3333 "generate_report_header" ,
3434 "save_report" ,
3535]
36- __version__ = "0.14.2 "
36+ __version__ = "0.14.3 "
3737
3838curdir = os .getcwd ()
3939basedir = os .path .dirname (__file__ )
@@ -363,9 +363,15 @@ def get_report_template(
363363
364364 report_version = report_version .replace ("rc1" , "-rc1" )
365365 for vinfo , name in templates :
366+ # deal with change of API
367+ try :
368+ v_kwargs = vinfo ._asdict ()
369+ except AttributeError :
370+ v_kwargs = vinfo .to_dict ()
371+
366372 if semver .match (
367373 report_version ,
368- "<={v}" .format (v = semver .format_version (** vinfo . _asdict () )),
374+ "<={v}" .format (v = semver .format_version (** v_kwargs )),
369375 ):
370376 return env .get_template (name )
371377
You can’t perform that action at this time.
0 commit comments