diff --git a/CHANGELOG.md b/CHANGELOG.md index 13a2287..67a9efe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # AnyPyTools Change Log +## v1.20.4 + +* Fix crash with pytest plugin when saving output to h5 files. + + ## v1.20.3 * Fixed a bug where `ctrl-c` events were not propagated and were silenced. This diff --git a/anypytools/__init__.py b/anypytools/__init__.py index 14348b9..df57f7b 100644 --- a/anypytools/__init__.py +++ b/anypytools/__init__.py @@ -36,7 +36,7 @@ "NORMAL_PRIORITY_CLASS", ] -__version__ = "1.20.3" +__version__ = "1.20.4" def print_versions(): diff --git a/anypytools/pytest_plugin.py b/anypytools/pytest_plugin.py index de4018a..8f5b30e 100644 --- a/anypytools/pytest_plugin.py +++ b/anypytools/pytest_plugin.py @@ -489,15 +489,6 @@ def save_output_files(self, src_folder, target_folder, result, hdf5files): target_log = target_folder / "logfile.txt" shutil.copyfile(src_log, target_log) - src_macrofile = src_log.with_suffix(".anymcr") - target_macro = target_folder / "macro.anymcr" - shutil.copyfile(src_macrofile, target_macro) - - with open(target_folder / "run.bat", "w") as f: - anybodygui = re.sub( - r"(?i)anybodycon\.exe", "anybody.exe", pytest.anytest.ams_path - ) - f.write(f'"{anybodygui}" -m "%~dp0{target_macro.name}"') def repr_failure(self, excinfo): """Print a representation when a test failes.""" diff --git a/pixi.lock b/pixi.lock index 7d7bc70..0f9b0eb 100644 --- a/pixi.lock +++ b/pixi.lock @@ -1605,7 +1605,7 @@ packages: timestamp: 1767719033569 - conda: . name: anypytools - version: 1.20.3 + version: 1.20.4 build: pyh4616a5c_0 subdir: noarch variants: diff --git a/pixi.toml b/pixi.toml index ff29cf4..e9b2138 100644 --- a/pixi.toml +++ b/pixi.toml @@ -16,7 +16,7 @@ anypytools = {path= "."} [package] name = "anypytools" -version="1.20.3" +version="1.20.4" [package.build] backend = { name = "pixi-build-python", version = "*" }