Skip to content

scancode testing

Sarita Singh edited this page Aug 22, 2021 · 1 revision

How to test these changes

  • Fetch sarita/newagent/scancode on your local by using command $ git fetch https://github.com/itssingh/fossology sarita/newagent/scancode:scancode and checkout to this branch.

  • Install FOSSology from source

  • Upload a file from Source/URL/VCS then select license or copyright under scancode-toolkit.

    NOTE: Email and URL is not working for now as scancode-toolkit doesn't provide these info by using custom template (PR is under WIP).

  • Check license browser/license single file view for license information.

  • check copyright bulk view or copyright single view for copyright information.

  • check author/email/url bulk view. NOTE: Please schedule fossology copyright as well in order to see copyright tables on UI (have to fix this).

  • If you are facing problem in installing scancode, please install scancode-toolkit manually.

The steps to install scancode-toolkit:

  • Install Prerequisites

    NOTE: scancode supports all Python versions from 3.6 to 3.9 for pip installation

  • Run $ python3 -m pip install --upgrade pip setuptools wheel to install the latest versions of base utilities.

  • Run $ python3 -m pip install scancode-toolkit to install the latest version of ScanCode.

The steps to uninstall scancode-toolkit:

  • Run $ python3 -m pip uninstall scancode-toolkit