bridge.pipelines.gh2bt_for_meta.map_funcs.license module#
Map license metadata from GitHub to bio.tools.
This module reconciles license information between GitHub repository metadata and existing bio.tools metadata. It compares the license reported by GitHub with the license recorded in bio.tools, and applies a policy that prefers recognized GitHub licenses while preserving bio.tools values when GitHub is silent or ambiguous.
- bridge.pipelines.gh2bt_for_meta.map_funcs.license.map_license(gh_license, bt_license)[source]#
Map and reconcile GitHub and bio.tools license annotations using the generic GitHub-over-bio.tools policy.
- Parameters:
gh_license (str | None) – Github repository license (SPDX ID), or
Noneif no license is configured.bt_license (License | None) – Existing bio.tools license annotation, or
Noneif no license is currently recorded.
- Returns:
The reconciled license as a License enum member, or
Noneif neither GitHub nor bio.tools provides a usable license.- Return type:
License | None