diff --git a/pyproject.toml b/pyproject.toml index 5808320..60380fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "digiflow" -version = "3.11.3" +version = "3.11.4" description = "Father's Little Digitization Workflow Helper" readme = "README.md" requires-python = ">=3.8" diff --git a/src/digiflow/digiflow_export.py b/src/digiflow/digiflow_export.py index 0f04732..7230dc0 100644 --- a/src/digiflow/digiflow_export.py +++ b/src/digiflow/digiflow_export.py @@ -11,7 +11,6 @@ import pathlib import shutil import subprocess -import sys import tempfile from lxml import etree as ET @@ -95,7 +94,7 @@ def process(export_mappings, work_dir, archive_name, _handle_collections_file(work_dir, target_collection) #_handle_contents_file(work_dir) _handle_contents_file(work_dir, export_mappings) - (the_tmp_path, the_filesize) = _compress(os.path.dirname(work_dir), archive_name) + (the_tmp_path, the_filesize) = compress(os.path.dirname(work_dir), archive_name) path_export_processing = _move_to_tmp_file(the_tmp_path, target_data_dir) return (path_export_processing, the_filesize) @@ -202,7 +201,7 @@ def _is_alto(path_file) -> bool: raise DigiFlowExportError(f"Unknown OCR-Format: {_err.args}") from _err -def _compress(work_dir, archive_name): +def compress(work_dir, archive_name): """ Switched implementation since unable to de-compress zip64Format created with shutil.make_archive by Share_it