Skip to content

Commit e198cc0

Browse files
committed
Fix version comparison
Signed-off-by: Sylvain Hellegouarch <[email protected]>
1 parent 67c182d commit e198cc0

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
## [Unreleased][]
44

5-
[Unreleased]: https://github.com/chaostoolkit/chaostoolkit-reporting/compare/0.14.0...HEAD
5+
[Unreleased]: https://github.com/chaostoolkit/chaostoolkit-reporting/compare/0.14.1...HEAD
6+
7+
## [0.14.1][] - 2022-12-08
8+
9+
[0.14.1]: https://github.com/chaostoolkit/chaostoolkit-reporting/compare/0.14.0...0.14.1
10+
11+
### Fixed
12+
13+
- Compare numerics, not strings, for version comparison
614

715
## [0.14.0][] - 2022-12-07
816

chaosreport/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"generate_report_header",
3434
"save_report",
3535
]
36-
__version__ = "0.14.0"
36+
__version__ = "0.14.1"
3737

3838
curdir = os.getcwd()
3939
basedir = os.path.dirname(__file__)
@@ -304,7 +304,7 @@ def save_report(
304304

305305
pandoc_version = pypandoc.get_pandoc_version()
306306
major, minor, _ = pandoc_version.split(".", 2)
307-
if major == 2 and minor < 19:
307+
if int(major) == 2 and int(minor) < 19:
308308
extra_args.append("--self-contained")
309309
else:
310310
extra_args.append("--embed-resources")

0 commit comments

Comments
 (0)