Add Clippit as an optional comparison engine#24
Open
JSv4 wants to merge 4 commits into
Open
Conversation
Adds Clippit — an actively-maintained .NET 8 fork of Open-XML-PowerTools — as a fourth, optional engine, following the same companion-package pattern used for ooxmlpowertools and docxodus. - New binary package `packages/clippit` (python-redlines-clippit), version single-sourced from core, with the standard platform-tag build hook. - New C# CLI under `csproj-clippit/` referencing the Clippit 3.0.1 NuGet package; same WmlComparer API and 4-positional-arg CLI as ooxmlpowertools, so `ClippitEngine` reuses BaseEngine._build_command() unchanged. - `ClippitEngine` added to engines.py and exported from python_redlines. - `clippit` extra added to core (and `all`); build_differ, CI, and publish workflows build and ship the new wheel. - Tests: clippit integration test + ClippitEngine added to the shared engine contract; docs (README, CLAUDE.md) updated. Supersedes #17, which targeted the pre-monorepo layout and replaced (rather than added) the OOXML engine. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The project/assembly was named `clippit`, which NuGet treats as colliding (case-insensitively) with the referenced `Clippit` package, producing `NU1108: Cycle detected`. Rename the assembly to `clippit-redline` and point BINARY_BASE_NAME / build_differ at it. Also gitignore the csproj-clippit build output dirs (bin/, obj/). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The clippit engine was added but the CI/publish workflow and engine-contract test edits never landed in the original commit, so CI installed core/ooxml/ docxodus but not python-redlines-clippit -> ClippitEngine tests failed with EngineNotInstalledError. Add the missing pieces: - ci.yml: install -e packages/clippit; build its wheel in build-engine-wheels - python-publish.yml: build/publish the clippit wheel - test_engine_contract.py: include ClippitEngine in the shared contract Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
These README edits failed to land in the original commit alongside the ci/publish/contract edits. Add Clippit to the engine list, install examples, monorepo table, and stdout-format table. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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.
Summary
Adds Clippit — an actively-maintained .NET 8 fork of Open-XML-PowerTools — as a fourth, optional comparison engine, following the same companion-package pattern already used for
ooxmlpowertoolsanddocxodus.This supersedes #17. That PR was opened against the pre-monorepo single-package layout and replaced the OOXML engine with Clippit. This branch is cut fresh from
mainand instead adds Clippit alongside the existing engines, so nothing is removed and users opt in via an extra.Why Clippit?
Clippit 3.0.1), and targets .NET 8.WmlComparerAPI — a drop-in wrapper, soClippitEnginereuses the legacy 4-positional-arg CLI andBaseEngine._build_command()unchanged, and emits the sameRevisions found: Nstdout.Changes
packages/clippit(python-redlines-clippit):pyproject.toml, platform-taghatch_build.py,README.md, package__init__.py, and_binaries/.gitkeep. Version is single-sourced frompackages/corelike the other binary packages.csproj-clippit/(clippit.csprojreferencingClippit 3.0.1,Program.cs). Clippit comes from NuGet, so no git submodule is needed.ClippitEngineadded toengines.pyand exported frompython_redlines;clippitextra added (and folded intoall).build_differ.pybuilds the Clippit engine;ci.ymlandpython-publish.ymlbuild and ship the new wheel across all platforms.tests/test_clippit_engine.pyplusClippitEngineadded to the sharedtest_engine_contract.pyparametrization.README.md,packages/core/README.md, andCLAUDE.mdupdated (three engines / four packages).Testing
ClippitEngineattributes/inheritance,__all__, andbuild_differengine list.🤖 Generated with Claude Code