Assess license compatibility for Python package redistribution using SPDX.org license database. Evaluates whether a given license allows building and distributing wheels, with real-time license information lookup.
Limited to specific tools
Additional assets for this skill
This skill is limited to using the following tools:
This skill helps you evaluate whether a Python package license is compatible with redistribution, particularly for building and distributing wheels in enterprise environments. It uses the authoritative SPDX License List for accurate, up-to-date license information.
When a user provides a license name and asks about compatibility for redistribution, building wheels, or licensing restrictions, follow this methodology:
Fetch Current SPDX Data:
Use WebFetch to query: https://raw.githubusercontent.com/spdx/license-list-data/main/json/licenses.json
License Matching:
Risk Classification:
IF (isOsiApproved AND isFsfLibre AND permissive_pattern):
Risk = Low, Status = Compatible
ELIF (isOsiApproved AND weak_copyleft_pattern):
Risk = Medium, Status = Compatible with Requirements
ELIF (strong_copyleft_pattern OR NOT isOsiApproved):
Risk = High, Status = Restricted/Incompatible
Generate Assessment:
Accept various formats and normalize them:
When processing SPDX license data, examine these key fields:
licenseId: Official SPDX identifiername: Full license nameisOsiApproved: OSI approval status (boolean)isFsfLibre: FSF Free Software status (boolean)isDeprecatedLicenseId: Whether license is deprecated (boolean)reference: URL to full license detailsseeAlso: Array of additional reference URLsUse SPDX flags and license patterns to determine compatibility:
Provide a structured assessment with:
SPDX Information:
Compatibility Assessment:
Requirements: Key compliance obligations
Risk Level: Low/Medium/High for enterprise use
Red Hat Context: Special considerations if applicable
Red Hat has specific licensing agreements with the following hardware vendors:
When evaluating packages with dependencies on these vendor-specific components, note that Red Hat has explicit redistribution rights under these agreements.
If the SPDX license list cannot be retrieved, exit early and warn the user.
When a license identifier is not found in the SPDX license list:
For deprecated SPDX licenses:
For complex licensing scenarios involving multiple packages or custom license terms, recommend consultation with legal counsel.
This skill works best when combined with: