Conversation
ef44739 to
143622a
Compare
143622a to
feeb9ab
Compare
|
@Mergifyio rebase |
Add design proposal for new patcher configuration. See: python-wheel-build#939 Signed-off-by: Christian Heimes <cheimes@redhat.com>
✅ Branch has been successfully rebased |
feeb9ab to
119bc67
Compare
📝 WalkthroughWalkthroughAdded documentation for a new declarative patching configuration proposal to the Sphinx docs. The addition includes a proposals index page and detailed proposal specification for a Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/proposals/new-patcher-config.md`:
- Around line 79-83: The document uses inconsistent action identifiers;
standardize on a single canonical name (use pin-install-requires-to-build)
everywhere: update the narrative occurrences and the YAML example action
identifier so both reference pin-install-requires-to-build (also ensure any
references in the example blocks or headings that currently use the alternate
identifier are replaced with pin-install-requires-to-build).
- Around line 9-10: Fix grammar and typos in the proposal text by editing
awkward phrases for clarity—e.g., change the sentence "This enhancement document
proposal a new approach to patch sources and wheel metadata through declarative
configuration." to "This enhancement document proposes a new approach to patch
sources and wheel metadata through declarative configuration." and apply similar
edits to the other flagged sentences (the phrases around lines referenced in the
review: the sentence starting "proposal a...", and the other problematic phrases
near the provided snippets for lines 32, 39, 76, 81, and 111) to correct verb
agreement, article usage, and awkward wording so the document reads clearly and
consistently.
- Around line 27-28: The document uses an impossible version range example
`>=1.0,<1.0` in the proposal (lines referencing the when_version example), which
matches no versions; update those occurrences to a satisfiable range such as
`>=1.0,<2.0` (or a tighter range like `>=1.0,<1.1`) so the when_version
semantics are clear and demonstrable—replace both instances at lines ~28 and ~55
(the `when_version` example) accordingly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 00bd8bcc-c492-4a82-9e80-c6f63edd24a5
📒 Files selected for processing (3)
docs/index.rstdocs/proposals/index.rstdocs/proposals/new-patcher-config.md
| This enhancement document proposal a new approach to patch sources and wheel | ||
| metadata through declarative configuration. The new feature supplements |
There was a problem hiding this comment.
Clean up grammar/typos in proposal text.
Several phrases read incorrectly and should be corrected for clarity (Line 9, Line 32, Line 39, Line 76, Line 81, Line 111).
Proposed copy edits
-This enhancement document proposal a new approach to patch sources and wheel
+This enhancement document proposes a new approach to patch sources and wheel
metadata through declarative configuration. The new feature supplements
current features like patch files and plugin hooks.
...
- design to pin Torch version to ensure `libtorch` ABI compatibility.
+ designed to pin Torch version to ensure `libtorch` ABI compatibility.
...
-- CPU architecture-specific and variant-specific patches won't be supported,
- They are considered a misfeature. Patches should be architecture-
+- CPU architecture-specific and variant-specific patches won't be supported.
+ They are considered a misfeature. Patches should be architecture-
independent, so they can be pushed to upstream eventually.
...
-- The `fix-pkg-info` addresses issues with sdist's `PKG-INFO` files, e.g.
+- The `fix-pkg-info` action addresses issues with sdist's `PKG-INFO` files, e.g.
wrong metadata version.
...
- primary use case is Torch. If a package is build with Torch 2.9.1, then
+ primary use case is Torch. If a package is built with Torch 2.9.1, then
we want the wheel to depend on exactly `torch==2.9.1`.
...
- - title: Pin Torch to global cosntraint
+ - title: Pin Torch to global constraintAlso applies to: 32-32, 39-40, 76-76, 81-82, 111-111
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/proposals/new-patcher-config.md` around lines 9 - 10, Fix grammar and
typos in the proposal text by editing awkward phrases for clarity—e.g., change
the sentence "This enhancement document proposal a new approach to patch sources
and wheel metadata through declarative configuration." to "This enhancement
document proposes a new approach to patch sources and wheel metadata through
declarative configuration." and apply similar edits to the other flagged
sentences (the phrases around lines referenced in the review: the sentence
starting "proposal a...", and the other problematic phrases near the provided
snippets for lines 32, 39, 76, 81, and 111) to correct verb agreement, article
usage, and awkward wording so the document reads clearly and consistently.
| - support version-specific patching (e.g. patch build system requirements for | ||
| `>=1.0,<1.0`). |
There was a problem hiding this comment.
Fix impossible version-range example.
Line 28 and Line 55 use >=1.0,<1.0, which matches no versions. Please replace with a satisfiable example so when_version semantics are unambiguous.
Proposed doc fix
-- support version-specific patching (e.g. patch build system requirements for
- `>=1.0,<1.0`).
+- support version-specific patching (e.g. patch build system requirements for
+ `>=1.0,<2.0`).
...
-- The optional field `when_version` can be used to limit the action,
- e.g. `>=1.0,<1.0`.
- > **NOTE**: `when_version` is not compatible with nightly builds.
+- The optional field `when_version` can be used to limit the action,
+ e.g. `>=1.0,<2.0`.
+ > **NOTE**: `when_version` is incompatible with nightly builds.Also applies to: 54-56
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/proposals/new-patcher-config.md` around lines 27 - 28, The document uses
an impossible version range example `>=1.0,<1.0` in the proposal (lines
referencing the when_version example), which matches no versions; update those
occurrences to a satisfiable range such as `>=1.0,<2.0` (or a tighter range like
`>=1.0,<1.1`) so the when_version semantics are clear and demonstrable—replace
both instances at lines ~28 and ~55 (the `when_version` example) accordingly.
| - The `pin-install-requires-to-build` pins `requires-dist` in sdist | ||
| and wheel metadata to the exact version in the build environment. The | ||
| primary use case is Torch. If a package is build with Torch 2.9.1, then | ||
| we want the wheel to depend on exactly `torch==2.9.1`. | ||
|
|
There was a problem hiding this comment.
Align action name across narrative and YAML example.
Line 79 and Line 112 describe different action identifiers. Please keep one canonical name throughout the document to avoid spec ambiguity.
Also applies to: 111-113
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/proposals/new-patcher-config.md` around lines 79 - 83, The document uses
inconsistent action identifiers; standardize on a single canonical name (use
pin-install-requires-to-build) everywhere: update the narrative occurrences and
the YAML example action identifier so both reference
pin-install-requires-to-build (also ensure any references in the example blocks
or headings that currently use the alternate identifier are replaced with
pin-install-requires-to-build).
Add design proposal for new patcher configuration.
See: #939
Summary by CodeRabbit