Skip to content

Upgrade Docxodus engine to v17.0.0, require Python 3.11+ (3.0.0) - #39

Merged
JSv4 merged 5 commits into
mainfrom
chore/docxodus-v17.0.0
Nov 24, 2026
Merged

JSv4 merged 5 commits into
mainfrom
chore/docxodus-v17.0.0

Conversation

@JSv4

@JSv4 JSv4 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

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_count

I diffed the redline CLI and DocxDiffSettings between the two tags. --minimum-anchor-word-count is 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:

Revisions Paragraphs shown as moved
default (0) 11 3
minimum_anchor_word_count=2 7 0

Non-negative integers only. bool is rejected, because True would reach the CLI as the text "True".

Output changes

The project fixture still reports 10 revisions. I ran these on both binaries:

Case v14.1.0 v17.0.0
Only a w:fldSimple cross-reference's number changes whole paragraph replaced just the number
Bold added inside a table cell not tracked tracked
Paragraph-mark size change not tracked tracked
Phrase replaced in a tab-led paragraph 17 w:ins/w:del elements 2
Edit inside XML nested past 128 levels 0 revisions (edit missed) refused: xml_depth_limit_exceeded

Not 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-python is now >=3.11 in 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.9 in "Set up Python", before any project code ran. ubuntu-latest moved from 24.04 to 26.04 after main's last run, and there is no 3.9 build for 26.04. main would fail the same way.

Python 3.15 was released on 2026-10-09 and is not in the tested range. >=3.11 does not stop anyone installing on it.

Package descriptions

The core pyproject.toml description now names Docxodus as the engine. The ooxmlpowertools wheel still contains the Open-XML-PowerTools binary, so its description keeps that name, but says it is deprecated and points to python-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_moves does nothing (existing). The README says it defaults to False, but the engine's DetectMoves defaults to true and the CLI has no off switch. On both binaries a moved paragraph is marked as a move with or without it. The Action's detect-moves input passes the same flag. Fixing it needs an upstream --no-detect-moves or a decision to deprecate the setting.
  • The GitHub Action gets no new input. It installs released wheels, so an input would fail until 3.0.0 is on PyPI.

This PR does not publish anything.

🤖 Generated with Claude Code

JSv4 and others added 3 commits November 23, 2026 22:51
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>
@JSv4 JSv4 changed the title Upgrade Docxodus engine to v17.0.0 (3.0.0) Upgrade Docxodus engine to v17.0.0, require Python 3.11+ (3.0.0) Nov 24, 2026
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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_count validation, 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

Comment thread README.md Resolved
Clarify migration instructions for upgrading to 3.0.0.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@JSv4
JSv4 merged commit c870cda into main Nov 24, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants