Repository navigation
Upgrade Docxodus engine to v17.0.0, require Python 3.11+ (3.0.0) - #39
Merged
Merged
Conversation
Bump the submodule from v14.1.0 to v17.0.0. The redline CLI gained exactly one flag in that range, --minimum-anchor-word-count, so add the matching keyword argument. It accepts any non-negative integer; bool is rejected because it is an int subclass that would reach the CLI as "True". The integration tests drop an entry from a list whose labels sit on their own lines, and check that the spurious moves appear by default and disappear at 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comparison output changes and very deeply nested documents are now refused, so follow the 2.0.0 policy of making that an explicit major version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Python 3.9 reached end of life on 2025-10-31 and 3.10 on 2026-10-01, which leaves 3.11 as the oldest supported release. CI could no longer set up 3.9 either: ubuntu-latest is now Ubuntu 26.04, which has no 3.9 build. CI now also covers 3.13 and 3.14, so the ResourceWarning regression test for issue #30, skipped below 3.13, runs there for the first time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The core description named no engine. The ooxmlpowertools wheel still contains that binary, so its description keeps the name but says it is deprecated and points to python-redlines-docxodus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The migration instructions include 2.0.0 installation commands and pins that would downgrade a 3.0.0 installation, making the new minimum_anchor_word_count setting unavailable.
1 open issue
What changed in this PR
Prepares Python-Redlines 3.0.0 for Docxodus v17.0.0, exposing a new comparison setting and raising the minimum supported Python version to 3.11.
Changes:
- Adds
minimum_anchor_word_countvalidation, CLI forwarding, and regression tests for renumbered entries. - Bumps the shared package version to 3.0.0 and expands CI coverage to Python 3.11–3.14.
- Documents migration requirements, comparison-output changes, and document rejection limits.
| File | Description |
|---|---|
tests/test_docxodus_engine.py |
Tests the new setting, validation, and numbered-entry comparisons. |
README.md |
Adds 3.0.0 migration guidance and setting documentation. |
packages/ooxmlpowertools/pyproject.toml |
Requires Python 3.11+ and clarifies engine deprecation. |
packages/docxodus/README.md |
Identifies the bundled Docxodus release. |
packages/docxodus/pyproject.toml |
Requires Python 3.11+. |
packages/core/src/python_redlines/engines.py |
Validates and forwards minimum_anchor_word_count. |
packages/core/src/python_redlines/__about__.py |
Sets the shared version to 3.0.0. |
packages/core/README.md |
Summarizes compatibility changes and links migration guidance. |
packages/core/pyproject.toml |
Updates Python support metadata and names Docxodus. |
docs/tutorials/how-to-compare-word-documents-python.md |
Updates the Python prerequisite. |
docs/quickstart.md |
Links the 3.0.0 migration guide. |
docs/developer-guide.md |
Updates the development Python prerequisite. |
CLAUDE.md |
Updates the documented Docxodus version. |
.github/workflows/ci.yml |
Tests Python 3.11–3.14 across supported operating systems. |
Review effort: Balanced
Clarify migration instructions for upgrading to 3.0.0. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Upgrade the Docxodus submodule from v14.1.0 to the latest release, v17.0.0 (
044d3b10), expose the one new setting, require Python 3.11+, and bump all three packages to 3.0.0.New setting:
minimum_anchor_word_countI diffed the redline CLI and
DocxDiffSettingsbetween the two tags.--minimum-anchor-word-countis the only flag added, and none was removed or changed default. The other engine settings the CLI doesn't parse can't be reached from Python without an upstream CLI change.It is for documents that put a short label ("P1") on its own line before each entry. Removing an entry renumbers the labels, and the default comparison then reports unchanged text as moved. On a five-entry example:
0)minimum_anchor_word_count=2Non-negative integers only.
boolis rejected, becauseTruewould reach the CLI as the text "True".Output changes
The project fixture still reports 10 revisions. I ran these on both binaries:
w:fldSimplecross-reference's number changesw:ins/w:delelementsxml_depth_limit_exceededNot reproduced: #1739 (heavily rewritten paragraphs) and #1714 (moves among edited paragraphs) gave the same output on my small samples, so the migration notes credit those to the upstream changelog.
Python 3.11 to 3.14
requires-pythonis now>=3.11in all three packages, and CI tests 3.11, 3.12, 3.13 and 3.14. Python 3.9 reached end of life on 2025-10-31 and 3.10 on 2026-10-01, so 3.11 is the oldest supported release.The first CI run here failed on
ubuntu-latest, 3.9in "Set up Python", before any project code ran.ubuntu-latestmoved from 24.04 to 26.04 aftermain's last run, and there is no 3.9 build for 26.04.mainwould fail the same way.Python 3.15 was released on 2026-10-09 and is not in the tested range.
>=3.11does not stop anyone installing on it.Package descriptions
The core
pyproject.tomldescription now names Docxodus as the engine. Theooxmlpowertoolswheel still contains the Open-XML-PowerTools binary, so its description keeps that name, but says it is deprecated and points topython-redlines-docxodus.Why 3.0.0
The README treats output changes as a major-version boundary, and both refusing documents that used to be accepted and dropping two Python versions are breaks.
Testing
Linux, all three packages installed, extracted binary confirmed as v17: 98 passed, 1 skipped on 3.11 and 3.12, 99 passed on 3.13 and 3.14. The skip is the ResourceWarning regression test for #30, which needs 3.13+ and so had never run in CI. The baseline on v14.1.0 (3.12) was 88 passed, 1 skipped. Three of the new tests fail against the v14.1.0 binary, so they do exercise the new engine. The built wheels refuse to install on 3.10, and a wheel install on 3.14 produces a redline. Windows, macOS and the other wheel targets are left to CI. The two Action self-test jobs install the latest PyPI release, so they do not exercise this engine.
Left alone
detect_movesdoes nothing (existing). The README says it defaults toFalse, but the engine'sDetectMovesdefaults totrueand the CLI has no off switch. On both binaries a moved paragraph is marked as a move with or without it. The Action'sdetect-movesinput passes the same flag. Fixing it needs an upstream--no-detect-movesor a decision to deprecate the setting.This PR does not publish anything.
🤖 Generated with Claude Code