Skip to content

Changelog

1.0.0 (2026-11-30)

Added

  • Python 3.15 support
  • 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

0.16.0 (2026-11-21)

Fixed

  • 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

Changed

  • [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

Removed

  • 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

Added

  • 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

0.15.1 (2026-11-16)

Changed

  • Bumped click, mkdocs-include-markdown-plugin, mkdocs-material, mypy, platformdirs, pydantic, pytest, and ruff dependencies via Dependabot

0.15.0 (2026-10-21)

Fixed

  • 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

Changed

  • 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

Added

  • Python 3.14 support
  • A versioning and stability page that says what Semantic Versioning covers from 1.0 on
  • missing_dependencies in the JSON report: the required dependencies the audited environment lacks
  • incompatible_groups and review_licenses in the JSON report

0.14.0 (2026-09-05)

Fixed

  • Dual-licensed dependencies no longer conflict based on which alternative is written first
  • Recommendations keep a package's other license components when one component is classified
  • A bad flag or path exits 1 instead of 2, the code check reserves for unknown licenses
  • An empty group in a license expression (MIT AND ()) reads as unknown instead of crashing
  • Rich markup in the project name no longer crashes analyze and recommend
  • An unreadable pyproject.toml or environment reports a clean error instead of a traceback
  • refresh reports an HTTP protocol error cleanly instead of a traceback
  • A corrupt cached OSADL file names itself and suggests refresh instead of failing every command
  • Markers comparing platform_release no longer crash on Linux with packaging older than 26
  • A bare GPL or LGPL license field no longer reads as version 3; a classifier is used instead
  • A License-Expression field wins over a stale License field or classifier even when unrecognized
  • Package, action item, and conflict order in the JSON report no longer depends on the filesystem
  • --config rejects a file not named pyproject.toml, or a directory without one
  • Action items collapse a multi-line declared license to one bounded line
  • License-File entries that point outside a package's dist-info are ignored
  • --version and the JSON report's tool_version read the same version
  • A license in both allowed-licenses and denied-licenses is rejected at config load

Changed

  • JSON report schema_version is now 2
  • incompatible_pairs entries name license_a/license_b instead of inbound/outbound
  • The always-incompatible verdict field is removed from incompatible_pairs
  • The Markdown compatibility table drops its always-incompatible Verdict column

0.13.0 (2026-08-29)

Fixed

  • 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)

Changed

  • 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

0.12.3 (2026-08-01)

Changed

  • Bumped mkdocs-material, platformdirs, and ruff dependencies via Dependabot

0.12.2 (2026-07-13)

Fixed

  • AttributeError for license expressions containing a WITH clause
  • Normalizing an expression whose WITH clause fails SPDX validation returns unknown instead of raising

0.12.1 (2026-07-09)

Fixed

  • A WITH exception form without its own OSADL entry (Apache-2.0 WITH LLVM-exception) now classifies by its base license instead of unknown

0.12.0 (2026-07-06)

Fixed

  • 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

Changed

  • The terminal, Markdown, and recommend renderers share one wording for the withheld-recommendation explanation
  • The development status classifier is now Beta

Removed

  • The always-empty compatibility_results and metadata fields from the JSON report schema

Added

  • schema_version (currently 1) and tool_version fields at the top of the JSON report; schema_version bumps only on breaking changes
  • The JSON report is now a documented public contract: a field-by-field reference page and a machine-readable JSON Schema on the docs site
  • SECURITY.md and Dependabot version updates

0.11.0 (2026-07-02)

Fixed

  • 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

Changed

  • 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

0.10.0 (2026-06-29)

Fixed

  • 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

Changed

  • Unknown keys in [tool.license-audit] are now rejected rather than silently ignored

0.9.0 (2026-05-28)

Added

  • 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

Changed

  • Audits a user-provisioned environment directly; removed built-in provisioning and lockfile parsing (uv.lock, poetry.lock, pixi.lock, requirements.txt, pyproject.toml)

0.8.0 (2026-05-27)

Fixed

  • Forward custom package indices to pip wheel

Changed

  • Bumped urllib3, idna, and pymdown-extensions via Dependabot

0.7.0 (2026-05-06)

Changed

  • Dropped uv as a runtime requirement; temp environment provisioning now uses pip wheel
  • Recommended outbound licenses prefer a curated shortlist (MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause) before falling back to alphabetical
  • Wider severity gradient on the dependency table; unknown licenses move from dim to bright red

Added

  • Progress spinner during provisioning
  • Windows and macOS in the CI matrix
  • Documentation for the recommend and refresh commands
  • AND-expression action items name the unrecognized component(s) instead of the whole expression

Fixed

  • recommend no longer suggests permissive licenses when an unknown-category dependency is present
  • Ignored packages no longer drive the "most restrictive dependency" line in recommend
  • Unknown summary count now includes packages whose category resolves to unknown
  • Brackets in user-supplied ignore reasons and license overrides render correctly in the terminal

0.6.0 (2026-05-05)

Fixed

  • AND expression evaluation now requires compliance with every component

0.5.0 (2026-05-04)

Added

  • target field in [tool.license-audit] to set a default --target
  • Target source reporting for CLI command outputs

Fixed

  • Encoding errors when running on systems with a non-UTF-8 default locale

0.4.0 (2026-04-26)

Added

  • Support for Poetry projects via poetry.lock
  • Support for Pixi projects via pixi.lock
  • Integration test suite covering end-to-end analyzer flows and CLI subprocess execution

0.3.0 (2026-04-19)

Added

  • [tool.license-audit.ignored-packages] configuration for exempting specific packages from policy evaluation

0.2.0 (2026-04-17)

Added

  • Reference documentation pages covering tool comparison, how detection works, and known limitations

Changed

  • 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)

0.1.1 (2026-04-13)

Added

  • License detection for all transitive dependencies using PEP 639 metadata, trove classifiers, and configurable overrides
  • Pairwise compatibility analysis using the OSADL compatibility matrix (123 licenses)
  • License recommendations based on dependency constraints
  • Compliance report generation in Markdown, JSON, and third-party notices formats
  • Policy checks with configurable levels (permissive, weak-copyleft, strong-copyleft, network-copyleft)
  • Dependency group filtering (main, dev, optional:<name>, group:<name>) to scope analysis to specific groups
  • SPDX normalization with 50+ common PyPI license string aliases
  • Support for uv.lock, pyproject.toml, requirements.txt, and live virtual environments
  • Refreshable OSADL data via license-audit refresh
  • Configuration via [tool.license-audit] in pyproject.toml