Skip to content

Commit 68ab994

Browse files
Merge branch 'develop' into update-to-spdx-3.22
2 parents 7ff2102 + b1a3620 commit 68ab994

34 files changed

+1181
-1190
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,7 @@ geckodriver.log
111111
var
112112
.metaflow
113113
selenium
114-
/dist/
114+
/dist/
115+
116+
# Ignore extra rpmdb sqlite stuff
117+
rpmdb.sqlite-*

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ v32.1.0 (next, roadmap)
4949
the SPDX list. And the rest have been added as new licenses.
5050
For more details see https://github.com/nexB/scancode-toolkit/pull/3554
5151

52+
- Upgraded spdx-tools dependency to v0.8.
53+
See https://github.com/nexB/scancode-toolkit/issues/3455
54+
55+
5256
v32.0.8 - 2023-10-11
5357
------------------------
5458

docs/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# from the environment for the first two.
66
SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
8+
SPHINXAUTOBUILD = sphinx-autobuild
89
SOURCEDIR = source
910
BUILDDIR = build
1011

@@ -14,6 +15,13 @@ help:
1415

1516
.PHONY: help Makefile
1617

18+
# Run the development server using sphinx-autobuild
19+
docs:
20+
@echo
21+
@echo "Starting up the docs server..."
22+
@echo
23+
$(SPHINXAUTOBUILD) --port 8000 --watch ${SOURCEDIR} $(SOURCEDIR) "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
24+
1725
# Catch-all target: route all unknown targets to Sphinx using the new
1826
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1927
%: Makefile

docs/make.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ REM Command file for Sphinx documentation
77
if "%SPHINXBUILD%" == "" (
88
set SPHINXBUILD=sphinx-build
99
)
10+
if "%SPHINXAUTOBUILD%" == "" (
11+
set SPHINXAUTOBUILD=sphinx-autobuild
12+
)
1013
set SOURCEDIR=source
1114
set BUILDDIR=build
1215

1316
if "%1" == "" goto help
1417

18+
if "%1" == "docs" goto docs
19+
1520
%SPHINXBUILD% >NUL 2>NUL
1621
if errorlevel 9009 (
1722
echo.
@@ -28,6 +33,13 @@ if errorlevel 9009 (
2833
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
2934
goto end
3035

36+
:docs
37+
@echo
38+
@echo Starting up the docs server...
39+
@echo
40+
%SPHINXAUTOBUILD% --port 8000 --watch %SOURCEDIR% %SOURCEDIR% %BUILDDIR%\html %SPHINXOPTS% %O%
41+
goto end
42+
3143
:help
3244
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3345

docs/source/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@
2929
extensions = [
3030
"sphinx.ext.intersphinx",
3131
"sphinx_reredirects",
32+
'sphinx_rtd_theme',
33+
"sphinx_rtd_dark_mode",
34+
"sphinx.ext.extlinks",
35+
"sphinx_copybutton",
3236
]
3337

38+
default_dark_mode = False
3439

3540
# Redirects for olds pages
3641
# See https://documatt.gitlab.io/sphinx-reredirects/usage.html
@@ -46,7 +51,7 @@
4651

4752
intersphinx_mapping = {
4853
"aboutcode": ("https://aboutcode.readthedocs.io/en/latest/", None),
49-
"scancode-workbench": ("https://scancode-workbench.readthedocs.io/en/develop/", None),
54+
"scancode-workbench": ("https://scancode-workbench.readthedocs.io/en/latest/", None),
5055
}
5156

5257

docs/source/reference/license-detection-reference.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ implemented:
3030

3131
Some other elements are still WIP, see `issue #3300 <https://github.com/nexB/scancode-toolkit/issues/3300>`_ for more details on this.
3232

33+
.. _what-is-a-licensedetection:
34+
3335
What is a LicenseDetection?
3436
---------------------------
3537

docs/source/tutorials/how_to_visualize_scan_results.rst

Lines changed: 5 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -3,109 +3,14 @@
33
How to Visualize Scan results
44
=============================
55

6-
In this simple tutorial example, we import results from a basic scan performed on the ``samples``
7-
directory distributed by default with Scancode, and visualize the outputs through
8-
Scancode Workbench.
6+
To help visualize the scans, we have a dedicated tool `Scancode workbench <https://github.com/nexb/scancode-workbench/>`_ which is a desktop application that allows you to visualize and explore the results of one or more scans. It is a cross-platform application that runs on Windows, Mac OS X and Linux. It is built using the Electron framework and is built using Electron, Typescript & React
7+
8+
Detailed Installation and Usage guide can be found here - :ref:`scancode-workbench:getting-started`
99

1010
.. WARNING::
1111

12-
This tutorial uses the 3.1.1 version of Scancode Toolkit, and Scancode Workbench 3.1.0 (This
13-
beta version of ScanCode Workbench is compatible with scans from any ScanCode Toolkit develop
14-
version/branch at or after v3.0.2). If you are using an older version of Scancode Toolkit, check
12+
This tutorial uses the 32.x version of Scancode Toolkit, and Scancode Workbench 4.0.x (This version of ScanCode Workbench is compatible with scans from any ScanCode Toolkit develop
13+
version/branch at or after v32.x). If you are using an older version of Scancode Toolkit, check
1514
respective versions of this documentation. Also refer the Scancode Workbench
1615
`release highlights <https://github.com/nexB/scancode-workbench/releases/>`_.
17-
1816
..
19-
[ToDo]
20-
Add Windows/MacOS Support and remove this WARNING.
21-
22-
.. WARNING::
23-
24-
This tutorial is for Linux based systems presently. Additional Help for Windows/MacOS will be
25-
added.
26-
27-
Setting up Scancode Workbench
28-
-----------------------------
29-
30-
According to the Installation instructions for the Workbench, we have to install Node.js 6.x or later.
31-
Refer to Node.js install `instructions <https://nodejs.org/en/download/package-manager/>`_ here.
32-
33-
You can also run the following commands::
34-
35-
sudo apt-get install -y nodejs
36-
sudo npm install npm@5.2.0 -g
37-
38-
After ``Node.js`` and ``npm`` is installed and get the Scancode Workbench 3.1.0 tarball from the
39-
`Workbench Release Page <https://github.com/nexB/scancode-workbench/releases/tag/v3.1.0>`_. Extract
40-
the package and then launch Scancode Workbench::
41-
42-
./ScanCode-Workbench
43-
44-
This opens the Workbench.
45-
46-
.. note::
47-
48-
You can also build Scancode Toolkit and Scancode Workbench from source. Clone the repository,
49-
don't forget to checkout to the specific release using ``git checkout <release>``, and follow
50-
the build instructions. You will ll also have to create a Python virtual environment.
51-
52-
53-
54-
Importing Data into Scancode Workbench
55-
--------------------------------------
56-
57-
#. Click on the ``File -> Import JSON File`` or Press ``Ctrl + I``.
58-
59-
#. Select the file from the pop-up window.
60-
61-
#. Select a Name and Location (where you want it later) for the .sqlite output file.
62-
63-
.. note::
64-
65-
You can also import a .sqlite file you've saved in the past to load scan results. As it is much
66-
faster, once you've imported the JSON file and a corresponding SQLite file has been created,
67-
you shouldn't repeat this. Instead, import the SQLite file next time you want to visualize the
68-
same scan result.
69-
70-
Visualization
71-
-------------
72-
73-
Views
74-
^^^^^
75-
76-
Refer to the workbench documentation for more information on Visualization.
77-
78-
The dashboard has a general overview.
79-
80-
.. image:: /tutorials/data/workbench_dashboard.png
81-
82-
There are three main views (They appear in the same order in the GIFs):
83-
84-
- Chart Summary View,
85-
- Table View,
86-
- Components Summary View.
87-
88-
.. image:: /tutorials/data/views_sample.gif
89-
90-
Filters
91-
^^^^^^^
92-
93-
You can also click any file/directory on the file list located on the right, to filter the results
94-
such that it only contains results from that File/Directory.
95-
96-
.. image:: /tutorials/data/filter_sample.gif
97-
98-
Components
99-
^^^^^^^^^^
100-
101-
Refer :ref:`workbench_components` for more information on Components.
102-
103-
In the table view,
104-
105-
#. Apply filters by selecting Files/Directories
106-
#. Right Click on the Left Panel
107-
#. Select ``Edit Component``
108-
#. A pop-up opens with fields, make necessary edits and Save.
109-
#. Go to the Component Summary View to see the Component.
110-
111-
.. image:: /tutorials/data/components_sample.gif

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ requests==2.28.1
6464
saneyaml==0.6.0
6565
six==1.16.0
6666
soupsieve==2.3.2.post1
67-
spdx-tools==0.7.0rc0
67+
spdx-tools==0.8.1
6868
text-unidecode==1.3
6969
toml==0.10.2
7070
typecode==30.0.1

setup-mini.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ install_requires =
105105
pymaven_patch >= 0.2.8
106106
requests >= 2.7.0
107107
saneyaml >= 0.6.0
108-
spdx_tools == 0.7.0rc0
108+
spdx_tools == 0.8.1
109109
text_unidecode >= 1.0
110110
toml >= 0.10.0
111111
urlpy
@@ -141,6 +141,9 @@ docs =
141141
sphinx_rtd_theme >= 0.5.1
142142
sphinx-reredirects >= 0.1.2
143143
doc8 >= 0.8.1
144+
sphinx-autobuild
145+
sphinx-rtd-dark-mode>=1.3.0
146+
sphinx-copybutton
144147

145148
# linux-only package handling
146149
packages =

setup.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ install_requires =
105105
pymaven_patch >= 0.2.8
106106
requests >= 2.7.0
107107
saneyaml >= 0.6.0
108-
spdx_tools == 0.7.0rc0
108+
spdx_tools == 0.8.1
109109
text_unidecode >= 1.0
110110
toml >= 0.10.0
111111
urlpy
@@ -141,6 +141,9 @@ docs =
141141
sphinx_rtd_theme >= 0.5.1
142142
sphinx-reredirects >= 0.1.2
143143
doc8 >= 0.8.1
144+
sphinx-autobuild
145+
sphinx-rtd-dark-mode>=1.3.0
146+
sphinx-copybutton
144147

145148
# linux-only package handling
146149
packages =

0 commit comments

Comments
 (0)