Repository navigation
Licence: fix notice agreement regressions - #652
Merged
Merged
Conversation
- A notice ranked first beside the whole List text of a licence outside
its text (python-dateutil's LICENSE: an Apache 2.0 notice, then
BSD-3-Clause) holds several licences: no licence and no
license-ambiguous/notice line, stated or not.
- A stated licence name counts as the id classify_license reads it as
("Apache License 2.0" agrees with the Apache 2.0 notice), the same
reading as the declared licence.
- A stated licence text (License header, project.license.text) that is
a notice of the licence the same package's own files give agrees with
it through an explicit file_licence argument: one declared licence, as
in 0.25.1.
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #652 +/- ##
=======================================
Coverage 99.98% 99.98%
=======================================
Files 545 546 +1
Lines 35708 35768 +60
Branches 5028 5037 +9
=======================================
+ Hits 35701 35761 +60
Misses 4 4
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Owner ruling 2026-12-03: a declared licence is what its source says; another source never changes it. - Drop the file_licence agreement: a project.license.text notice stays declared as written, the whole LICENSE beside it is the concluded licence; a dependency's License header stays as on main. - Each licence read from a licence file names the rule that decided it (provenance Rule: stated-in-file, single-text, variant-default, text-variant, stated-twin, stated-agrees, stated-tie), defined once in extract/_license_rules.py and listed in the docs. - New INFO license-ambiguous/several-texts for a licence file holding several licences (several whole texts, or a notice beside another licence's text), said once per file on every surface. - A project.license.text kept as written names that field on the CLI and the hook alike. - Roadmap: a setting not to guess a licence variant, after 0.25.2. Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com> # Conflicts: # CHANGELOG.md
- A license = {file = ...} table is project.license on the CLI and the
sdist route, as on the Hatchling hook; only a {text = ...} table is
project.license.text.
- A notice whose own variant overrides a stated twin is decided by
text-variant, not stated-agrees.
- A Hub model's licence read from its licence file records its Rule,
through one LicenseTextReading.provenance() helper shared with the
licence-file route.
- Docs: the Rule key row lists every route that records it.
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
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.
Fixes three #651 licence regressions found in the 0.25.2 combined review.
license-ambiguous/noticeline.Apache License 2.0) agrees with a notice, as in 0.25.1.Licenseheader orproject.license.textnotice agrees with the licence the same package's own files give (explicitfile_licence, file stage only): one declared id again.Rule: an id is stated when
classify_licensereads it in the stated value, or when it is the package's own file licence passed asfile_licence.No CHANGELOG entry (unreleased behaviour).
Generated by Claude Code