Class: Licensee::Matchers::PyProject

Inherits:
Package show all
Defined in:
lib/licensee/matchers/pyproject.rb

Overview

Matches license identifiers in pyproject.toml. Based on Matchers::Cargo

Constant Summary collapse

LICENSE_REGEX =
/^\s*['"]?license['"]?\s*=\s*['"]([^'"]+)['"]\s*/ix

Constants inherited from Package

Licensee::Matchers::Package::SPDX_OPERATORS, Licensee::Matchers::Package::SPDX_SUFFIX_REGEX, Licensee::Matchers::Package::SPDX_TOKEN_REGEX

Constants inherited from Matcher

Matcher::HASH_METHODS

Instance Attribute Summary

Attributes inherited from Matcher

#file

Method Summary

Methods inherited from Package

#confidence, #match, #spdx_expression_licenses

Methods inherited from Matcher

#confidence, #initialize, #match, #name

Methods included from HashHelper

#serialize_hash_value, #to_h

Constructor Details

This class inherits a constructor from Licensee::Matchers::Matcher