Repository navigation
0.3.7 release - #116
Merged
Merged
0.3.7 release#116
Conversation
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.
Bump somef from 0.11.2 to 0.11.5 and rebuild the lock file. Several detectors depended on data that SoMEF never surfaced, so they were silent; others relied on network results that were not definitive.
New utils/fetch_utils.py centralises HTTP access: classify_status() distinguishes accessible / hard failure / inconclusive, and fetch_text, fetch_license_file, find_source_url, is_root_codemeta_url and is_vendored_source are cached helpers. Network-dependent detectors now treat only 404/410/DNS as defects, so rate limits, 5xx and timeouts no longer produce false positives.
P002: retrieve the licence text because SoMEF keeps only the SPDX id, and classify the licence family before deciding. GPL, LGPL, AGPL, Apache, MPL, EPL and CDDL are exempt, because their placeholder tokens belong to the licence's own "how to apply" appendix. MIT, MIT-0, BSD, 0BSD, ISC, X11, zlib and Unlicense are checked in the copyright header only. Results now expose license_family, decision and placeholders.
P005: read the citation category, where SoMEF stores referencePublication, and extend the software-archive patterns.
P006: fall back to pyproject.toml for licence values that point at a local file, and restrict the check to manifest sources.
P008: only definitive failures count; handle list/dict requirement values and URLs embedded in requirement prose.
P010: evaluate every licence entry, fetch the file text when SoMEF keeps an SPDX id, and probe the repository root as a last resort.
P011: check reachability in addition to URL format.
P012: flag downloadURLs outdated vs release, fix version extraction. Parse /archive/refs/tags/vX.Y.Z and /releases/tag/name-X.Y URL forms, dropped the codemeta-version early-return (a stale codemeta no longer masks a stale downloadURL) and normalized prefixed release tags (sea-eagle-0.10 -> 0.10)
P013: accept "GPL v3.0" and "version 3" phrasing.
P014/P018: accept identifier arrays in both SoMEF shapes (a list value before 0.11.5, one entry per element from 0.11.5 on).
P015: resolve GitHub Actions URLs through the REST API, because GitHub answers 200 for any /actions/ page including missing workflows. Workflow existence, repository readability, the actions list and blob/tree paths are verified via api.github.com, with GITHUB_API_TOKEN, GITHUB_TOKEN or GH_TOKEN; other CI hosts keep the HTTP check. Results expose check_method, api_status, repo_status and workflow_state.
P016: ignore nested/vendored codemeta files and commit-URL entries.
P017: compare versions only against package manifests, case-insensitively, which closes the .zenodo.json false-positive path introduced in 0.11.5.
P019: aggregate author counts per source file and read setup.py, package.json and DESCRIPTION authors that SoMEF misses; deposit records are excluded.
W005: stop treating SWHIDs, URLs and prose as package lists.
W006: judge identifier validity across all codemeta entries and fall back to SoMEF citation and to a DOI badge in the README.