A CI guide section on auditing only production dependencies: provision with uv sync --no-dev and run license-audit with uvx, since uv run installs the dev group again
OSADL data that isn't shaped like the compatibility matrix or copyleft table, such as a refreshed copy in another format, is rejected with an error instead of being read as no data. A cached matrix in another shape made check pass a GPL-2.0-only and Apache-2.0 conflict
refresh checks both OSADL downloads before writing either, so a failed or malformed download leaves the existing data in place instead of pairing a new matrix with an old copyleft table
The bundled OSADL data is used when it's newer than the copy refresh saved, instead of the saved copy whatever its age, so upgrading license-audit updates the data a run uses
A pyproject.toml whose tool key isn't a table reports a config error instead of a traceback
A classification for one component of a compound license marks the package as classified only when it decides the category, and a component classified permissive no longer withholds recommendations. Deeming MPL-2.0 permissive withheld them for an MPL-2.0 AND GPL-3.0-or-later dependency, calling it classified as non-permissive
A license classified weak-copyleft no longer withholds recommendations: they list the permissive and weak-copyleft licenses it doesn't constrain, and leave out the strong- and network-copyleft ones it can't be checked against. The README's own "CC-BY-SA-4.0" = "weak-copyleft" example left every project using it without recommendations
Recommendations rest on the category of a license the OSADL compatibility matrix leaves out, as they do for a classified license, instead of treating it as no constraint: a weak-copyleft one (OFL-1.1, Ubuntu-font-1.0) limits them to permissive and weak-copyleft licenses, and a stronger one withholds them. A dependency under AGPL-1.0-only got MIT recommended
License classifiers in different categories, read as a choice between them, are reported in a warning. A package listing the MIT and GPLv3 classifiers read as GPL-3.0-only OR MIT and passed a permissive policy without a word
Packages installed from a directory inside the project, such as uv workspace members, count as part of the project rather than as dependencies. A workspace whose members declare no license made check exit 2
The action item for a declared license that isn't SPDX points to license-classifications instead of overrides, which rejects a value that isn't SPDX
Rich markup in a package's name or version, such as [/x] in its Version metadata, prints as written instead of crashing analyze, check, and recommend
A virtualenv holding more than one lib/pythonX.Y directory is audited from the one for its Python version, read from pyvenv.cfg, instead of whichever the filesystem listed first; a stale directory left by an older Python was audited instead and reported the real dependencies missing
Auditing the environment running license-audit, when no virtualenv is found, reads its platform-specific site-packages and user site-packages too, not only the pure-Python one: compiled packages in a separate lib64 (Fedora and RHEL system Pythons) and pip install --user packages went unaudited
[tool.license-audit] keys must be spelled in kebab-case, as documented. fail_on_unknown was accepted too, and with both spellings present the later one silently won
fail-on-unknown takes a TOML boolean; "no", "false", and 0 read as false before
The JSON Schema lists the two values of an action item's severity, warning and error, instead of allowing any string
The bundled OSADL data is the 2026-10-22 release. Apache-2.0 code in a GPL-1.0-or-later or GPL-2.0-or-later work is "Check dependency" instead of "No", so dependencies that only fit together under GPL-2.0-or-later, such as EUPL-1.1, Apache-2.0, and PSF-2.0, pass check with GPL-2.0-or-later listed for review instead of failing. CC-BY-SA-3.0 is weak-copyleft instead of unknown, CDLA-Permissive-2.0 and OLFL-1.3 are permissive, and CC-BY-2.5 and CC-BY-3.0 stay permissive but leave the compatibility matrix
The py.typed marker and the Typing :: Typed and Topic :: Software Development :: Libraries classifiers. The command line is license-audit's interface; its Python modules are internal, as the versioning page says
Reports name the OSADL data they used, by date and as bundled or refreshed: osadl_data in the JSON report, and a line under the source in analyze, check, recommend, and Markdown reports
code on each action item in the JSON report, a stable name for what it's about (denied-license, incompatible-licenses, and so on), so tools needn't parse its message
A malformed license string such as MIT OR ( AND BSD reads as unknown instead of crashing the audit
Large environments audit in linear time: installed packages are indexed once instead of rescanned for every lookup (2,000 packages took minutes)
Control characters in package metadata and license files, such as ANSI escape sequences, are stripped instead of reaching the terminal
A dual-licensed dependency can be used under any of its licenses, so a less permissive alternative that fits the rest of the tree no longer reports a conflict (Apache-2.0 OR GPL-2.0-only next to GPL-2.0-only)
policy_passed in the JSON report, and the policy line in analyze and Markdown reports, fail on incompatible license pairs as check does; they reported a pass while check exited 1
JSON, Markdown, and notices reports on stdout are UTF-8 whatever the console encoding; redirecting one on Windows crashed when a license text held a character outside the code page (pygments, a dependency of license-audit itself, has one)
Terminal output replaces characters the console can't encode instead of crashing
Long package names, versions, and licenses wrap in a narrow terminal instead of being cut off; at 80 columns, the usual width of CI logs, packages sharing a prefix (opentelemetry-...) were indistinguishable
protobuf's 3-Clause BSD License and similar spelled-out BSD and Expat license strings are recognized
A license classifier that can't be mapped, listed beside ones that can (docutils' unversioned GPL classifier), is reported in a warning instead of dropped silently
A GPL-family license read from classifiers warns when the package's License field allows later versions or adds an exception the classifier leaves out. PyInstaller's GPLv2-or-later with a special exception read silently as GPL-2.0-only, which conflicted with GPL-3.0
A package's parent is the dependency that actually pulls it in. Packages outside the project's own tree were attached in alphabetical order, so a dev tool's dependencies read as direct, and in a uv application (whose project isn't installed) declared dependencies could read as pulled in by another package; direct dependencies now come from pyproject.toml too
license-audit's own metadata declares the CC-BY-4.0 license of its bundled OSADL data (MIT AND CC-BY-4.0), and THIRD_PARTY_NOTICES.md ships among the wheel's license files, where notices reports pick it up, instead of installing to a stray license_audit/ directory at the environment root. The MIT license classifier is dropped in favour of the license expression (PEP 639)
Config errors name the pyproject.toml and spell keys as written there, without pydantic's model and field names or links; an unknown key lists the valid ones
check no longer passes on an environment that isn't the project's. A dependency the project requires that isn't installed fails check, policy_passed, and recommendations, where it was skipped silently: a pipx-installed license-audit, run with the project's venv/ activated, audited its own environment and passed a project that declared a GPL dependency
A project is no longer audited as a dependency of itself when its name isn't in [project]: the name is read from [tool.poetry] too, or else found from the package installed from the project's directory (a setup.py project installed editable). An unlicensed private Poetry app made check exit 2
check prints every violation; incompatible license pairs hid the denied, disallowed, and over-policy packages, which surfaced only once the pairs were fixed
check fails when no outbound license satisfies every dependency, though each pair of them can share one; EUPL-1.1, Apache-2.0, and PSF-2.0 passed check while recommend found no license. The licenses are reported as incompatible together
check and recommend agree: where OSADL's "Check dependency" verdict is the only fit (GPL-2.0-only with LGPL-2.1, AGPL-3.0 with GPL-3.0), recommend lists the licenses that need review and check warns, instead of recommend reporting conflicting requirements that check passed
A strong- or network-copyleft WITH exception form the OSADL data lacks is checked as its base license, as it is classified, and a dual license's alternative with no known category isn't relied on while another remains. GPL-2.0-or-later WITH Bootloader-exception and GPL-3.0-only OR Elastic-2.0 read as copyleft in the table and policy but as no constraint in recommendations, which offered MIT while saying the project must be GPL-licensed
recommend's guidance for weak-copyleft dependencies no longer claims permissive outbound licenses are excluded, right below a list that recommends them
Permissive and weak-copyleft dependencies no longer conflict with each other or rule out permissive outbound licenses: their obligations stay with their own files, so only strong or network copyleft constrains the outbound license. A project using just requests and pydantic failed check under every policy (certifi's MPL-2.0 against typing-extensions' PSF-2.0)
PSF-2.0 counts as GPL-compatible, as the FSF lists it, instead of conflicting with every GPL-family dependency
The incompatible-pair action item says no outbound license satisfies both licenses instead of claiming the dependencies "cannot coexist"
Common permissive licenses the OSADL data leaves out (CC0-1.0, CNRI-Python, ZPL-2.1, CC-BY-4.0, Python-2.0.1, MIT-Modern-Variant, BSD-3-Clause-Clear) are classified built-in, so numpy, regex, and the zope packages no longer read as unknown
The minimum versions of click (8.2.0) and license-expression (30.2.0) are ones license-audit works with: under older releases a bare license-audit exited 0 and some license expressions were misread. CI now runs the test suite against the oldest allowed dependency versions
With no --target, the project is found from a subdirectory too (the nearest pyproject.toml, up to the repository root), and when it has no .venv an activated virtualenv ($VIRTUAL_ENV) is audited before the environment running license-audit, which reports now name by path instead of "active environment"
Dependency markers are evaluated for the audited virtualenv's Python version, read from its pyvenv.cfg, instead of the version running license-audit
Recommendations resolve compound expressions (an OR nested in an AND, and vice versa) the same way the compatibility check does, so a report can no longer recommend a license its own incompatibility scan rules out
check exits 1 whenever a definite violation exists, even alongside unknown licenses, and prints the violations; exit 2 now reliably means unknown licenses are the only remaining problem
allowed-licenses and denied-licenses entries are normalized to canonical SPDX at config load, so deprecated or alias forms (GPL-2.0, apache) match detected licenses instead of being silent no-ops; entries that aren't a single recognized SPDX identifier are rejected
An allowed base license admits its WITH exception forms, mirroring how a denied base license already blocked them
Package names are canonicalized per PEP 503: separator runs collapse (foo--bar matches foo_bar) and report output uses the hyphenated form (typing-extensions, previously typing_extensions)
Dependency markers evaluate with an explicit empty extra, avoiding a crash on extra-gated requirements with older packaging releases
refresh names the file it actually writes (osadl_matrix.json)
Recommendations require a strict OSADL verdict (Yes/Same): pairings OSADL marks "Check dependency" are no longer suggested as outbound licenses, though they still don't count as incompatible
Bumped mypy, packaging, platformdirs, pymdown-extensions, and ruff dependencies via Dependabot
Override values are normalized to canonical SPDX (apache reads Apache-2.0), and a value that isn't a recognized SPDX expression is rejected at config load instead of silently classifying as unknown
refresh reports network and parse failures as a clean error instead of a traceback
report --output reports a failed file write as a clean error instead of a traceback
The project-name lookup tolerates a malformed pyproject.toml instead of raising
License classifications now apply to components of an expression containing a license outside the OSADL data (classifying CNRI-Python in Apache-2.0 AND CNRI-Python was ignored and warned as a typo)
Deprecated SPDX ids inside compound expressions now map to their modern forms (GPL-2.0+ AND MIT reads GPL-2.0-or-later AND MIT)
The Markdown report's Licenses Requiring Review section shows the SPDX expression for an unclassified license instead of "not detected"
A denied base license now also blocks its WITH exception forms (denying GPL-2.0-only catches GPL-2.0-only WITH Classpath-exception-2.0)
Compatibility analysis resolves OR expressions to the same branch as classification when a component is deemed by license-classifications, so conflicts on the chosen branch are no longer hidden
A license-classifications key written as a full compound expression now drops its components from compatibility analysis, matching component keys
A license string that isn't parseable no longer triggers a false denied-license violation when a denylist is configured; it is matched whole against the lists instead
A direct dependency that another direct dependency also requires is reported as direct instead of transitive
License strings are validated against the full SPDX license list: any valid SPDX expression is preserved instead of collapsing to UNKNOWN, is checked against allowed/denied lists, and displays in canonical form
WITH expressions survive normalization; a X WITH Y clause classifies as a single component keyed by its full text
The action item for a license without classification data now suggests license-classifications instead of calling the license unrecognized
check, recommend, and report messages say "unclassified" rather than "undetected" or "unrecognized", and the withheld-recommendation explanation no longer claims a classified license has no SPDX id
License overrides keyed by a PyPI-style name with hyphens or dots now apply
Dependencies declared in metadata but absent from the audited environment are no longer reported as phantom unknown packages
Packages installed as .egg-info (legacy setup.py installs), and dist-info directories whose name part contains hyphens, are now detected
check now reports the package and license that fall outside allowed-licenses
Ignore reasons containing | or a newline no longer break the Markdown Ignored Packages table
A malformed pyproject.toml now reports a clear error instead of a traceback
refresh writes cache files atomically so an interrupted download can't leave a half-written file behind
Report summaries count each package once: ignored packages are no longer also tallied as copyleft or unknown, and proprietary packages have their own count
The Markdown report omits the policy line when no policy was evaluated instead of showing a misleading FAILED
Source paths containing square brackets now render correctly in terminal output
JSON reports written with --output end with a trailing newline
Unrecognized licenses now show their actual declared identifier instead of UNKNOWN, distinguish undetected from unrecognized, and include their license text in Markdown reports for review
License classification via [tool.license-audit.license-classifications]: deem a license a category and have it apply to every package that uses it, including individual components of AND/OR expressions
Improved terminal rendering for recommend, check, and report commands with clearer formatting and shared layout helpers
Simplified README and user guide, including an expanded CI integration guide
Internal refactor of the analyzer, policy engine, classifier, data store, SPDX normalizer, recommender, sources, and environment provisioning into class-based implementations (no change to CLI behavior or output contracts)