fleetlint Policy for a fleet of repositories
v0.5
Getting started

public/manifest-license/python

Package manifest declares the license

Implements public/manifest-license for python.

Severityinfo
Tiers1
Stackspython
Scopeeach
Kindexpr
Sourcelibrary v0.2.0
Selected byfleetlint-recommended@v0.2.0

Requirement

pyproject.toml sets project.license (SPDX, PEP 639), license-files or a license classifier, unless it carries the Private :: Do Not Upload classifier.

Why

Registries, SBOM tools and license checkers read the manifest, not the LICENSE file.

Capability applies when

repo.public

Check

!file("pyproject.toml") || scan("pyproject.toml", r'Private :: Do Not Upload').size() > 0 || scan("pyproject.toml", r'^\s*license(-files)?\s*=|License ::').size() > 0

Fix

Set license = "<SPDX id>" in pyproject.toml’s [project] table.

Agent instruction: Set the manifest’s license field to the SPDX identifier matching the LICENSE file; ask if the LICENSE text is not a recognised license.

See: https://fleetlint.org/baseline/#public-repositories, https://fleetlint.org/stacks/#python


Generated by fleetlint docs from catalog v0.2.0.