diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 6461d1f7..f3a63ab7 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -21,6 +21,10 @@ v11.4.0 - We now report on the progress of PDF/A conversion, since this operation is sometimes slow. - Improved command line completions. +- The prefix of the temporary folder OCRmyPDF creates has been changed from + ``com.github.ocrmypdf`` to ``ocrmypdf.io``. Scripts that chose to depend on this + prefix may need to be adjusted. (This has always been an implementation detail so is + not considered part of the semantic versioning "contract".) v11.3.4 ======= diff --git a/src/ocrmypdf/_sync.py b/src/ocrmypdf/_sync.py index 624ac7bf..a4839aea 100644 --- a/src/ocrmypdf/_sync.py +++ b/src/ocrmypdf/_sync.py @@ -330,7 +330,7 @@ def run_pipeline(options, *, plugin_manager, api=False): if not plugin_manager: plugin_manager = get_plugin_manager(options.plugins) - work_folder = Path(mkdtemp(prefix="com.github.ocrmypdf.")) + work_folder = Path(mkdtemp(prefix="ocrmypdf.io.")) debug_log_handler = None if ( (options.keep_temporary_files or options.verbose >= 1) diff --git a/tests/plugins/tesseract_cache.py b/tests/plugins/tesseract_cache.py index 9d75f574..37c4a690 100644 --- a/tests/plugins/tesseract_cache.py +++ b/tests/plugins/tesseract_cache.py @@ -165,7 +165,7 @@ def cached_run(options, run_args, **run_kwargs): def clean_sys_argv(): for arg in run_args[1:]: - yield re.sub(r'.*/com.github.ocrmypdf[^/]+[/](.*)', r'$TMPDIR/\1', arg) + yield re.sub(r'.*/ocrmypdf[.]io[.][^/]+[/](.*)', r'$TMPDIR/\1', arg) manifest['args'] = list(clean_sys_argv()) with (Path(CACHE_ROOT) / 'manifest.jsonl').open('a') as f: