From 7fbd5e2d10a0aed070ed76157c79ccd4a0a76ed6 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Mon, 11 Aug 2025 16:31:56 +0100 Subject: [PATCH 1/3] docs/conf.py: fix build failure caused by recent changes to representation of version. --- docs/conf.py | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 2cd93940b..51609dba0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,19 +49,15 @@ # built documents. # # The full version, including alpha/beta/rc tags. -_path = os.path.abspath(f'{__file__}/../../src/__init__.py') -with open(_path) as f: - for line in f: - match = re.search('pymupdf_version = "([0-9][.][0-9]+[.][0-9]+(rc[0-9]+)?)"', line) - if match: - release = match.group(1) - print(f'{__file__}: setting version from {_path}: {release}') - break - else: - raise Exception(f'Failed to find `VersionBind = ...` in {_path}') - -# The short X.Y version -version = release + +# PyMuPDF version is set in setup.py, so we import it here. +sys.path.insert(0, os.path.abspath(f'{__file__}/../..')) +try: + import setup +finally: + del sys.path[0] +version = setup.version_p +del setup # Necessary otherwise sphinx seems to do `setup()`. # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. From efacbf7129f1446bfa05d321c7e87d59523bd896 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Mon, 11 Aug 2025 16:33:02 +0100 Subject: [PATCH 2/3] scripts/test.py: fix typo. --- scripts/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test.py b/scripts/test.py index 7ebc06e33..37249ccbd 100755 --- a/scripts/test.py +++ b/scripts/test.py @@ -81,7 +81,7 @@ --cibw-pyodide-version Override default Pyodide version to use with `cibuildwheel` command. If - empty string with use cibuildwheel's default. + empty string we use cibuildwheel's default. --cibw-release-1 Set up so that `cibw` builds all wheels except linux-aarch64, and sdist From 8327b5ba9e9523646ae129b09a9af5187ebc69b1 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Mon, 11 Aug 2025 18:24:06 +0100 Subject: [PATCH 3/3] changes.txt: various updates. --- changes.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/changes.txt b/changes.txt index 0abc9b5ba..db6c1d188 100644 --- a/changes.txt +++ b/changes.txt @@ -2,6 +2,19 @@ Change Log ========== +**Changes in version ** + +* Fixed issues: + +* Other: + + * Add `Page.clip_to_rect()`. + * Improved search for Tesseract data. + * Retrospectively mark #4496 as fixed in 1.26.1. + * Document.insert_pdf(): Ignore erroneous widgets. + * Added experimental support for Graal. + + **Changes in version 1.26.3 (2025-07-02)** * Use MuPDF-1.26.3.