Skip to content

Create a usethis show license command #1662

@nathanjmcdougall

Description

@nathanjmcdougall

We can use several heuristics to detect a license, in this order:

  • Use the identify[license] package to scan likely files at root like LICENSE and LICENSE.md etc.
    https://pypi.org/project/identify/
    identify.license_id('LICENSE')
  • using pyproject.toml in the project.license field
  • using pyprojec.toml in the project.classifiers e.g. "License :: OSI Approved :: MIT License"

We should display using the SPDX format https://spdx.org/licenses/

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions