Repository navigation
Conversation
Use the resolved source release when no upstream purl is configured, so local wheel version overrides do not misidentify the source. AI-Assisted-By: Hermes Agent Closes: python-wheel-build#1376 Signed-off-by: Emre K <110906681+kocaemre@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Couple minor comments:
- The doc string in
PurlConfig.upstreaminsrc/fromager/packagesettings/_models.pyis now outdated after this change. - Nit: the repo conventions ask that you use
Co-Authored-Byas commit trailer, notAI-Assisted-By.
Otherwise, lgtm!
|
This looks good to me as well and I agree with @mprpic 's comment above |
Pull Request Description
What
purl.upstreamis unset;purl.versioncontinues to identify the built wheel.Why
Closes #1376. A locally versioned wheel must not make the
GENERATED_FROMsource reference point to a non-existent upstream release.Verification
uvx --from hatch hatch run test:test tests/test_sbom.py::test_generate_sbom_upstream_uses_source_version_without_upstream_override -q --no-cov --tb=short— 1 failed as expected (upstream.versionInfo:0.5.5+local.1instead of0.5.5).uvx --from hatch hatch run test:test tests/test_sbom.py tests/test_packagesettings.py -q --no-cov --tb=short— 108 passed.uvx --from hatch hatch run mypy:check src/fromager/sbom.py— 77 source, 51 test, 7 e2e files checked without errors (repo wrapper checks all three).uvx --from hatch hatch run lint:checkandgit diff --check— passed.AI assistance: Hermes Agent prepared this focused change and its regression; local checks above were run. Commit is DCO signed-off.