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. 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. 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