-
-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a command line option to dump the license data #2738
Comments
There are two options:
IMHO there are different things
|
Adds a new command line option: `--get-license-data` to: * Dump license data in JSON, YAML and HTML formats. * Also dumps the .LICENSE file with text and data as YAML frontmatter. * Generates an index and a static website to view the data. This is reusing code originally located at: https://github.com/nexB/scancode-licensedb Reference: #2738 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
This is in develop now, and will be released in a release-candidate soon, @fviernau can you try it out. More details in the PR linked above ^ . |
* Removes CLI option `--dump-license-data` * Adds new console script `scancode-license-data --path PATH` * Updates CHANGELOG Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
* Removes CLI option `--dump-license-data` * Adds new console script `scancode-license-data --path PATH` * Updates CHANGELOG Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@AyanSinhaMahapatra I think this is all done now? correct? If so please close. |
@pombredanne yes! This is now present as a seperate console command |
The OSS Review Toolkit needs to have all license IDs along with the respective license text for the ScanCode version it uses.
Currently it extracts it from the license data directory, see e.g. [1] [2]. So it depends on the directory structure as well as on the file formats of ScanCode license data. A ScanCode command line option for dumping
..to a JSON? file would help to remove that mentioned dependency.
[1] https://github.com/oss-review-toolkit/ort/blob/093a510aa8545cc61cc172d7a7a274f56df87d84/spdx-utils/build.gradle.kts#L62-L71
[2] https://github.com/oss-review-toolkit/ort/blob/093a510aa8545cc61cc172d7a7a274f56df87d84/spdx-utils/build.gradle.kts#L238-L343
[3] https://github.com/oss-review-toolkit/ort/blob/093a510aa8545cc61cc172d7a7a274f56df87d84/model/src/main/kotlin/licenses/LicenseClassifications.kt
The text was updated successfully, but these errors were encountered: