Skip to content
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 license dump option #3100

Merged
merged 52 commits into from
Nov 2, 2022
Merged

Add license dump option #3100

merged 52 commits into from
Nov 2, 2022

Commits on Dec 4, 2020

  1. Initial commit

    Signed-off-by: Thomas Druez <tdruez@nexb.com>
    tdruez committed Dec 4, 2020
    Configuration menu
    Copy the full SHA
    07b0269 View commit details
    Browse the repository at this point in the history
  2. Add the generated static website

    Signed-off-by: Thomas Druez <tdruez@nexb.com>
    tdruez committed Dec 4, 2020
    Configuration menu
    Copy the full SHA
    27c255c View commit details
    Browse the repository at this point in the history
  3. Create CNAME

    pombredanne committed Dec 4, 2020
    Configuration menu
    Copy the full SHA
    b39763d View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2021

  1. Upgrade ScanCode-toolkit to latest 21.2.9 version

    Signed-off-by: Thomas Druez <tdruez@nexb.com>
    tdruez committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    3bf65b9 View commit details
    Browse the repository at this point in the history
  2. Do not display "LicenseRef-" SPDX key as links

    Signed-off-by: Thomas Druez <tdruez@nexb.com>
    tdruez committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    e97dc5d View commit details
    Browse the repository at this point in the history
  3. Create CNAME

    tdruez committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    76c145d View commit details
    Browse the repository at this point in the history
  4. Inject the search value in the browser href

    Signed-off-by: Thomas Druez <tdruez@nexb.com>
    tdruez committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    07316b6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3e56341 View commit details
    Browse the repository at this point in the history
  6. Do not remove the CNAME file on Make clean

    Signed-off-by: Thomas Druez <tdruez@nexb.com>
    tdruez committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    4e8389b View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2021

  1. Configuration menu
    Copy the full SHA
    9164413 View commit details
    Browse the repository at this point in the history
  2. Add "publish" command in Makefile

    Signed-off-by: Thomas Druez <tdruez@nexb.com>
    tdruez committed Apr 14, 2021
    Configuration menu
    Copy the full SHA
    cf386c8 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2021

  1. Expose SPDX license info in index.json #7

        * Expose spdx_license_key, other_spdx_license_keys, and is_exception
    
    Signed-off-by: Jono Yang <jyang@nexb.com>
    JonoYang committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    efdb626 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #8 from nexB/7-expose-spdx-information

    Expose SPDX license info in index.json #7
    tdruez authored Jun 3, 2021
    Configuration menu
    Copy the full SHA
    c6a64d1 View commit details
    Browse the repository at this point in the history
  3. Fix header layout for smaller display sizes

    Signed-off-by: tdruez <tdruez@nexb.com>
    tdruez committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    f98b976 View commit details
    Browse the repository at this point in the history
  4. Merge branch

    tdruez committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    8c69070 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d2f3920 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    16dd721 View commit details
    Browse the repository at this point in the history
  7. Enhance the details view UI and display URLs as link #5

    Signed-off-by: tdruez <tdruez@nexb.com>
    tdruez committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    13e9166 View commit details
    Browse the repository at this point in the history
  8. Do not display deprecated licenses in main listing by default #2

    Signed-off-by: tdruez <tdruez@nexb.com>
    tdruez committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    2a4e4cb View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2021

  1. Expose is_deprecated in index.json #9

    Signed-off-by: Jono Yang <jyang@nexb.com>
    JonoYang committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    40c5a8d View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2021

  1. Merge pull request #10 from nexB/9-expose-is_deprecated

    Expose is_deprecated in index.json
    tdruez authored Jun 8, 2021
    Configuration menu
    Copy the full SHA
    d7fa06b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3069232 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2021

  1. Configuration menu
    Copy the full SHA
    5b0f829 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2021

  1. Configuration menu
    Copy the full SHA
    1d81315 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2021

  1. Configuration menu
    Copy the full SHA
    838f364 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. Rename .yml files to .RULE.new

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    8d234ca View commit details
    Browse the repository at this point in the history
  2. Rename the .RULE files to .RULE.new

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    0156b3a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e755274 View commit details
    Browse the repository at this point in the history
  4. Rename .RULE.new files back to .RULE #3049

    This commit ends the process of merging .RULE and .yml files into
    a single .RULE file which has YAML frontmatter storing the rule
    metadata present in the .yml file previously.
    
    This renaming and merging has been done to preserve line-history
    for both the files.
    
    Reference: #3049
    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    e71edc1 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2022

  1. Use modified functions and classes from frontmatter

    * Import and use functions/classes from frontmatter
    * Copy and modify class to use saneyaml
    * Copy and modify load/parse functions
    * Add .ABOUT and LICENSE files.
    
    Signed-off-by: AyanSinhaMahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    bd3545c View commit details
    Browse the repository at this point in the history
  2. Modify RULE loading/writing to use frontmatter

    Rule classmethod from_files is renamed and modified to from_file
    and now takes only the rule_file as argument.
    Also modifies tests to use frontmatter.
    
    Signed-off-by: AyanSinhaMahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    6e38358 View commit details
    Browse the repository at this point in the history
  3. Modify test RULE files to use frontmatter

    Modify test .RULE .yml file pairs to a single .RULE
    file with YAML frontmatter.
    
    Signed-off-by: AyanSinhaMahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    89d62ae View commit details
    Browse the repository at this point in the history
  4. Add python-frontmatter v1.0.0 to requirements

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    01e50d6 View commit details
    Browse the repository at this point in the history
  5. Assign correct LICENSE file name for frontmatter ABOUT file

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    b66efb1 View commit details
    Browse the repository at this point in the history
  6. Upgrade scancode-toolkit to version 31.1.1

    * Regenerates website content based on latest scancode-toolkit
    * scancode-toolkit version is 31.1.1
    
    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    d29ed2c View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. Rename .LICENSE files to .LICENSE.new files

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    fa51349 View commit details
    Browse the repository at this point in the history
  2. Rename .yml files to .LICENSE.new files

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    35f93a7 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'add-license-dump-option-rename-data' into add-license-d…

    …ump-option
    
    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    025b9ff View commit details
    Browse the repository at this point in the history
  4. Rename LICENSE.new files back to .LICENSE files

    This finishes the merging of .LICENSE and corresponding .yml
    files into one .LICENSE file with the related data as a YAML
    frontmatter.
    
    These following steps were taken to preserve git line history:
    
    1. Rename .LICENSE files to .LICENSE.new files
    2. Rename .yml files to .LICENSE.new files in another branch
    3. Merge these two branches and this joins the two files into one preserving
       line history.
    4. Now properly format the merged file as LICENSE files with YAML frontmatter.
    5. Rename the .LICENSE.new files back to .LICENSE files.
    
    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    172eb4e View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

  1. Modify LICENSE loading/writing to use frontmatter

    Modify LICENSE loading functions to use YAML frontmatter and
    modify License.load() to take `license_file` as an argument.
    Also add `check_consistency` there to verify that either the
    YAML frontmatter or the text is not empty.
    
    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    2622763 View commit details
    Browse the repository at this point in the history
  2. Modify tests and test files to support YAML frontmatter

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 9, 2022
    Configuration menu
    Copy the full SHA
    c1d8f9f View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2022

  1. Merge remote-tracking branch 'licensedb/main' into add-license-dump-o…

    …ption
    
    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    4139a88 View commit details
    Browse the repository at this point in the history
  2. Move licensedb files into licensedcode

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    2861d74 View commit details
    Browse the repository at this point in the history
  3. Add command line option to dump license data

    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>
    AyanSinhaMahapatra committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    6f0e151 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2022

  1. Fix about file and help text errors

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 12, 2022
    Configuration menu
    Copy the full SHA
    80d5491 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. dump sorted license data by key

    Reference: aboutcode-org/scancode-licensedb#25
    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    12355c5 View commit details
    Browse the repository at this point in the history
  2. Add license dump tests

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    5366e68 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2022

  1. Merge branch 'develop' into add-license-dump-option

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    a7cc2d5 View commit details
    Browse the repository at this point in the history
  2. Fix binary gibberish bug on extra newlines

    Regen test expectations for this and also fix another test.
    
    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    8a8fba0 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2022

  1. Reinstate whitespace in license text

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Nov 1, 2022
    Configuration menu
    Copy the full SHA
    8b2bbfe View commit details
    Browse the repository at this point in the history
  2. Merge branch 'develop' into add-license-dump-option

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Nov 1, 2022
    Configuration menu
    Copy the full SHA
    bc6d6a5 View commit details
    Browse the repository at this point in the history
  3. Update changelog

    Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
    AyanSinhaMahapatra committed Nov 1, 2022
    Configuration menu
    Copy the full SHA
    c857fa4 View commit details
    Browse the repository at this point in the history