Compare any two indexes - #2105
Merged
Merged
Conversation
wppm.diff could already compare two package indexes, and nothing could reach it. It was not on the wppm command line, so nothing in -h mentioned it; its own usage text said "python diff.py", which the relative imports make impossible; and printing a comparison died on Windows with a UnicodeEncodeError, because an upgrade is written "1.2.3 -> 1.2.4" with a U+2192 and the console is cp1252 -- so any two releases far enough apart to have one upgraded package could not be compared at all. wppm -diff <a>.md <b>.md now does it, on any two indexes: two releases, a year apart, or two flavors of the same release. It runs before the target is resolved, so it needs no distribution -- two downloaded files and a pip-installed wppm are enough. The file mode also had no title, and the direction is not guessable from the output: every upgrade line reads "old -> new", so a reader holding the pair the wrong way round sees every upgrade as a downgrade. It now opens with "## Changes from <first> to <second>". The version mode keeps the header it has always had; the dead line above it, assigned and then overwritten before it could be printed, is gone. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A _History.md compares a release against the one immediately before it, and that chain carries no meaning: flavors are not stable across cycles, one appearing while another goes away, and readers upgrade about once a year rather than every cycle. So the comparison it offers is one almost nobody is asking for. The cycle's changelog pull request now files the package index, the lock file and the requirements, and nothing else. Each of those describes its own release; readers wanting a comparison pick their own two indexes with wppm -diff. The histories already in changelogs/ stay where they are. The local build still writes one, beside its output where the person running the build reads it before publishing anything -- it is the useful view there. It is no longer copied into changelogs/, which is what turned it into a published artifact. Co-Authored-By: Claude Opus 5 <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.
No description provided.