Skip to content

Warn instead of failing when cargo-bundle-licenses is missing - #96

Merged
python-templates-automerge[bot] merged 1 commit into
mainfrom
optional-license-collector
Nov 12, 2026
Merged

python-templates-automerge[bot] merged 1 commit into
mainfrom
optional-license-collector

Conversation

@timkpaine

Copy link
Copy Markdown
Member

Description

With a licenses table configured, a build without cargo-bundle-licenses installed used to fail. That made every source install from an sdist need a Cargo tool that only matters to whoever builds and publishes release wheels.

A missing collector now logs a warning and builds the artifact without a license bundle. Once the collector runs, its errors, invalid output, and missing license texts still fail the build. Projects that must ship the bundle should keep a test that checks for it in the built wheel.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / code cleanup
  • CI / build configuration
  • Other (describe below)

Checklist

  • Linting passes (make lint)
  • Tests pass (make test)
  • New tests added for new functionality
  • Documentation updated (if applicable)
  • Changelog / version bump (if applicable)

Building from an sdist does not need a license bundle; only release builds do. A missing collector now logs a warning and skips the bundle. Collector errors and missing license texts still fail the build.

Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.19%. Comparing base (067ba3c) to head (d41060d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #96      +/-   ##
==========================================
+ Coverage   92.14%   92.19%   +0.04%     
==========================================
  Files          15       15              
  Lines        2624     2638      +14     
==========================================
+ Hits         2418     2432      +14     
  Misses        206      206              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@python-templates-automerge
python-templates-automerge Bot merged commit e133d8f into main Nov 12, 2026
6 checks passed
@python-templates-automerge
python-templates-automerge Bot deleted the optional-license-collector branch November 12, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tag: automerge Automatically merge this PR when status checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant