Skip to content

0.3.7 release - #116

Merged
Anas-Elhounsri merged 2 commits into
mainfrom
0.3.7-release
Nov 4, 2026
Merged

Anas-Elhounsri merged 2 commits into
mainfrom
0.3.7-release

Conversation

@Anas-Elhounsri

Copy link
Copy Markdown
Collaborator

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.

@Anas-Elhounsri
Anas-Elhounsri merged commit e0de1f7 into main Nov 4, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant