Skip to content

fix(sources): honor resolver sdist build strategy - #1385

Merged
rd4398 merged 1 commit into
python-wheel-build:new-resolver-configfrom
jlarkin09:codex/1206-build-sdist-pep517
Oct 23, 2026
Merged

rd4398 merged 1 commit into
python-wheel-build:new-resolver-configfrom
jlarkin09:codex/1206-build-sdist-pep517

Conversation

@jlarkin09

@jlarkin09 jlarkin09 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Build sdists using the configured resolver strategy so Git checkouts can use PEP 517 to generate proper version metadata.

hook-sdist requires an explicit build_sdist setting. Configured PEP 517 and tarball builds ignore installed build_sdist overrides with a warning; legacy settings continue to use overrides.

Validation: 176 focused tests, Ruff, mypy, and a real Stevedore tarball build confirming that the installed override is skipped and the warning is visible.

Closes: #1206

@jlarkin09
jlarkin09 requested a review from a team as a code owner October 20, 2026 13:53
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mergify mergify Bot added the ci label Oct 20, 2026

@rd4398 rd4398 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.

This is looking good. I have left a comment but will wait for @smoparth to review and merge

Comment thread tests/test_sources.py
@rd4398

rd4398 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Can we squash the commits please?

@jlarkin09
jlarkin09 force-pushed the codex/1206-build-sdist-pep517 branch from df6a96f to c01db95 Compare October 20, 2026 16:00
Comment thread src/fromager/packagesettings/_resolver.py Outdated
Comment thread src/fromager/sources.py Outdated
Comment thread src/fromager/sources.py
@jlarkin09
jlarkin09 force-pushed the codex/1206-build-sdist-pep517 branch from c01db95 to 3a5e448 Compare October 22, 2026 14:36
Comment thread src/fromager/packagesettings/_resolver.py Outdated
Comment thread src/fromager/sources.py Outdated
@jlarkin09
jlarkin09 force-pushed the codex/1206-build-sdist-pep517 branch from 3a5e448 to 9008926 Compare October 22, 2026 20:41
Comment thread src/fromager/sources.py Outdated
Honor configured PEP 517 and tarball strategies, warning when an installed build hook is ignored. Require resolvers to declare their strategy and hook-sdist to choose it explicitly. Keep build overrides for legacy settings.

Co-Authored-By: Codex <codex@openai.com>

Closes: python-wheel-build#1206

Related: python-wheel-build#1256
Signed-off-by: Justin Larkin <jlarkin@redhat.com>
@jlarkin09
jlarkin09 force-pushed the codex/1206-build-sdist-pep517 branch from 9008926 to ff5216c Compare October 23, 2026 13:29
@mergify

mergify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@rd4398
rd4398 merged commit f1ee225 into python-wheel-build:new-resolver-config Oct 23, 2026
37 of 38 checks passed
smoparth added a commit to smoparth/fromager that referenced this pull request Oct 23, 2026
Merge new-resolver-config after python-wheel-build#1385 and keep checkout preparation compatible with the sdist strategy. Reject nested submodule changes and document the public helper, cleanup behavior, and required checkout layout.

Co-Authored-By: Codex <codex@openai.com>
Signed-off-by: Shanmukh Pawan <smoparth@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants