Repository navigation
Add the two zero-condition licenses to the SPDX index - #388
Conversation
'SPDX_INDEX' held 23 licenses and neither '0BSD' nor 'MIT-0', so four packages in pyTooling's own dependency closure could not be resolved despite publishing exactly what PEP 639 asks for: cffi license_expression: MIT-0 chardet license_expression: 0BSD roman-numerals license_expression: 0BSD OR CC0-1.0 sphinxcontrib-jquery a LICENCE file with the Zero-Clause BSD text An override file could not answer for them either, because an override value is parsed by the same parser. The OSI and FSF flags are taken from the SPDX license list, which marks both OSI-approved and neither FSF-libre. Both carry a Python classifier, so they are added to 'PYTHON_LICENSE_NAMES' too, and both have an OSI page, which 'LicenseURLs' requires of every OSI-approved license. Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
🟢 Coverage 100.00% diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation Diff coverage ✅ 100.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (04d6550) 12786 10813 84.57% Head commit (eba608b) 12788 (+2) 10815 (+2) 84.57% (+0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#388) 2 2 100.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #388 +/- ##
=======================================
Coverage 81.47% 81.48%
=======================================
Files 56 56
Lines 12786 12788 +2
Branches 1951 1951
=======================================
+ Hits 10418 10420 +2
Misses 1973 1973
Partials 395 395
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
New Features
pyTooling.Licensingknows the two zero-condition licenses:0BSD(BSD Zero Clause License) andMIT-0(MIT No Attribution), takingSPDX_INDEXfrom 23 to 25 entries. Both are reachable asZero_Clause_BSDandMIT_0_License, and both resolve from their Python classifier(
License :: OSI Approved :: Zero-Clause BSD (0BSD)andLicense :: OSI Approved :: MIT No Attribution License (MIT-0)).Bug Fixes
pyTooling.Licensing: four packages in pyTooling's own dependency closure could not be resolved despitepublishing exactly what PEP 639 asks for, because the index did not know
the identifier they name:
cffilicense_expression: MIT-0LicenseExpressionError: … names unknown license 'MIT-0'chardetlicense_expression: 0BSD… names unknown license '0BSD'roman-numeralslicense_expression: 0BSD OR CC0-1.0… names unknown license '0BSD'sphinxcontrib-jqueryLICENCEfile carrying the Zero-Clause BSD textA license override could not answer for these either: an override value goes through the same
LicenseExpression.Parse, so0BSDwas unwritable anywhere. All four resolve now.The OSI and FSF flags come from the SPDX license list, which marks both
OSI-approved and neither FSF-libre — matching how
CC0-1.0is already recorded (osi=False,fsf=True).Both were added to
OSI_LICENSE_URLSas well, sinceLicenseURLsasserts that an OSI-approved license has anOSI page.
Unit Tests
403, and
test_AnOSIURLExistsExactlyWhenOSIApprovedis what caught the missing OSI URLs.Related Issues and Pull-Requests
that override file explicitly could not fix.