Repository navigation
Conversation
The dependencies, constraint-dependencies and classifiers arrays were rebuilt from scratch on every update, which dropped the comments written on their entries. The arrays are now edited in place: a changed entry keeps its line and its trailing comment, removed entries are removed, and new entries are appended. Comments elsewhere in the file are kept because the document is no longer replaced. Refs #91
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.
repoplone deps constraints, anddeps upgradefor a python component, rewrotepyproject.tomland dropped the comments people had written in it. tomlkit keeps comments only while a document is edited in place, and repoplone replaced whole arrays (dependencies,constraint-dependencies,classifiers) with new ones built from scratch.The arrays are now updated in place: an entry whose value changes keeps its line and its comment, new entries are added, and removed ones go. Comments in the rest of the file, including whole-line comments between entries and after tables, survive.
Entries that already exist keep their order. Constraints and classifiers used to be re-sorted on every update; now a new entry is appended at the end and the existing order is kept. An array that does not exist yet is still created sorted. The comment and blank-line filtering of the constraint input from the remote source is unchanged.
Closes #91