46f4935ee4
This updates the licenses script to pull in all PackageInfo.json files with a specific argument, then follows each license file defined and writes the contents to a file. In this mode, if a packageinfo file is found, it will only grab the license file path defined within. Also has the following features: * Generalizes the function and variable names for non-license specific references * Sorts os.walk to maintain consistent ordering * Uses an ordered dict for the output, also to maintain ordering if using Python below 3.7 * Adds an additional json config file to have specific exclusion rules for 3p packages * Adds a package creation function and config file entry * Allow multipath scans, optional use of gitignore, merged license file scan Signed-off-by: Mike Chang <changml@amazon.com>
16 lines
248 B
JSON
16 lines
248 B
JSON
{
|
|
"excluded_directories": [
|
|
".git",
|
|
".venv",
|
|
"build",
|
|
"license_scanner"
|
|
],
|
|
"license_patterns": [
|
|
"LICENSE*",
|
|
"COPYING*"
|
|
],
|
|
"package_patterns": [
|
|
"PackageInfo.json"
|
|
]
|
|
}
|