Skip to content

Commit ed84329

Browse files
committed
Merge latest develop
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
2 parents e95f904 + 745ba9c commit ed84329

File tree

1,453 files changed

+106788
-6377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,453 files changed

+106788
-6377
lines changed

.github/workflows/scancode-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ jobs:
235235
strategy:
236236
fail-fast: true
237237
matrix:
238-
os: [ubuntu-22.04, ubuntu-22.04, macos-11, macos-12]
238+
os: [ubuntu-22.04, ubuntu-22.04, macos-12, macos-13]
239239
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
240240

241241
steps:
@@ -367,7 +367,7 @@ jobs:
367367
strategy:
368368
fail-fast: true
369369
matrix:
370-
os: [macos-11, macos-12]
370+
os: [macos-12, macos-13]
371371
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
372372

373373
steps:

CHANGELOG.rst

Lines changed: 100 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,103 @@ v33.0.0 (next next, roadmap)
3434
of these in other summary plugins.
3535
See https://github.com/nexB/scancode-toolkit/issues/1745
3636

37-
v32.1.0 (next, roadmap)
38-
----------------------------
37+
- Update link references of ownership from nexB to aboutcode-org
38+
See https://github.com/aboutcode-org/scancode-toolkit/issues/3885
39+
40+
- New and updated licenses, including support for newly released
41+
SPDX license list versions:
42+
- SPDX License List 3.25.0:
43+
This release of the SPDX license list had 9 new licenses
44+
and exceptions, and out of them 5 were present as licenses
45+
and 2 were present as rules already. There were 2 new
46+
license/exception texts added, and also 1 license was deprecated.
47+
For more details see https://github.com/aboutcode-org/scancode-toolkit/pull/3897
48+
49+
v32.2.1 - 2024-07-02
50+
---------------------
51+
52+
- Add support for parsing resolved packages and dependency relationships
53+
from nuget lockfile `packages.lock.json`.
54+
See https://github.com/nexB/scancode-toolkit/pull/3825
55+
56+
- Add support for parsing resolved packages and dependency relationships
57+
from cocoapods lockfile `Podfile.lock`.
58+
See https://github.com/nexB/scancode-toolkit/pull/3827
59+
60+
- Add support for parsing packages and dependency relationships
61+
from swift `swift-show-dependencies.deplock` generated by DepLock.
62+
See https://github.com/nexB/scancode-toolkit/pull/3829
63+
64+
- Add support for `pip-inspect.deplock` files to parse and store
65+
resolved packages and dependency relationships, to statically
66+
resolve a python dependency graph.
67+
See https://github.com/nexB/scancode.io/issues/1262
68+
69+
- Add support for poetry packages, with poetry specific pyproject.toml
70+
support, poetry.lock and package assembly support. Also add support
71+
for parsing and storing resolved packages and dependency relationships
72+
required to statically resolve poetry dependecy graphs.
73+
See https://github.com/nexB/scancode-toolkit/issues/2109
74+
75+
- Add support for pyproject.toml files in python projects.
76+
See https://github.com/nexB/scancode-toolkit/issues/3753
77+
78+
- More improved copyright detection, see
79+
https://github.com/nexB/scancode-toolkit/pull/3752
80+
81+
- ``scancode-toolkit`` is now installable from the fedora repo.
82+
See https://github.com/nexB/scancode-toolkit/pull/3824
83+
84+
v32.2.0 - 2024-06-19
85+
----------------------
86+
87+
- New and improved package/dependency data:
88+
- Added new attribute in DependentPackage `is_direct` to aid
89+
package resolution and dependency graph creation.
90+
- Added new attributes in PackageData: `is_private` and
91+
`is_virtual`. #3102 #3811
92+
https://github.com/nexB/scancode-toolkit/pull/3779
93+
94+
- Improved javascript package detection:
95+
- Add support for pnpm manifests and lockfiles #3766
96+
- Add support for npm, pnpm and yarn workspaces #3746
97+
- Improve resolved package and dependencies support in lockfiles for
98+
yarn.lock, package-lock.json, and pnpm. #3780
99+
- Add support for private packages. #3120
100+
- Add support for new dependency scopes across javascript
101+
- Lots of misc bugfixes in yarn and npm parsers.
102+
https://github.com/nexB/scancode-toolkit/pull/3779
103+
104+
- Improve cargo package detection support with various improvements
105+
and bugfixes:
106+
- Fix for parser crashing on cargo workspaces
107+
- Fix a bug in dependency parsing (we were not returning any dependencies)
108+
- Also support getting dependency versions from workspace
109+
- Support more attributes from cargo
110+
- Better handle workspace data thorugh extra_data attribute
111+
See https://github.com/nexB/scancode-toolkit/pull/3783
112+
113+
- We now support parsing the Swift manifest JSON dump and the
114+
``Package.resolved`` file https://github.com/nexB/scancode-toolkit/issues/2657.
115+
Run the command below on your local Swift project before running the scan:
116+
`swift package dump-package > Package.swift.json && swift package resolve``
117+
118+
- New and updated licenses, including support for newly released
119+
SPDX license list versions:
120+
- SPDX License List 3.24:
121+
This release of the SPDX license list had 25 new licenses
122+
and exceptions, and out of them 12 were present as licenses
123+
and 5 were present as rules already. There were 3 new
124+
license/exception texts added, and the rest 5 were either
125+
texts with small variations, additions to texts or several
126+
rule texts together. And the rest have been added as new licenses.
127+
For more details see https://github.com/nexB/scancode-toolkit/pull/3795
128+
129+
- More new licenses and rules:
130+
- 23 new licenses in https://github.com/nexB/scancode-toolkit/pull/3778
131+
132+
v32.1.0 - 2024-03-23
133+
---------------------
39134

40135
New CLI options:
41136

@@ -71,7 +166,7 @@ Changes in Output Data Structure:
71166
file-level ``package_data``
72167
* ``license_detections`` and ``other_license_detections`` in
73168
codebase level ``packages``
74-
169+
75170
- On using the CLI option ``--license-text-diagnostics`` there is
76171
now a new license match attribute ``matched_text_diagnostics``
77172
with the matched text and highlighted diagnostics, instead of
@@ -80,7 +175,7 @@ Changes in Output Data Structure:
80175
- A new ``reference_matches`` attribute is added to codebase-level
81176
``license_detections`` which is same as the ``matches`` attribute
82177
in other license detections.
83-
178+
84179
- We now have SPDX license expressions everywhere we have
85180
ScanCode license expressions for ease of use and adopting
86181
SPDX everywhere. A new attribute ``license_expression_spdx``
@@ -128,7 +223,7 @@ Changes in Output Data Structure:
128223
and https://github.com/nexB/scancode-toolkit/issues/3443
129224
Also improve debian manifests parsing and purl parsing from
130225
filenames. Support for https://github.com/nexB/purldb/issues/245
131-
Bumps debian-inspector to v31.1.0
226+
Bumps debian-inspector to v31.1.0
132227

133228
- Bump commoncode to v31.0.3
134229

README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Why use ScanCode?
8989
InstallShield installers, iOS apps, ISO images, Apache IVY, JBoss Sar,
9090
R CRAN, Apache Maven, Meteor, Mozilla extensions, MSI installers,
9191
JavaScript npm packages, package-lock.json, yarn.lock, NSIS Installers,
92-
NugGet, OPam, Cocoapods, Python PyPI setup.py, setup.cfg, and
92+
NuGet, OPam, Cocoapods, Python PyPI setup.py, setup.cfg, and
9393
several related lockfile formats, semi structured README
9494
files such as README.android, README.chromium, README.facebook, README.google,
9595
README.thirdparty, RPMs, Shell Archives, Squashfs images, Java WAR, Windows
@@ -161,6 +161,8 @@ There are a few common ways to `install ScanCode <https://scancode-toolkit.readt
161161
- `Run in a Docker container with a git clone and "docker run"
162162
<https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-via-docker>`_
163163

164+
- In Fedora 40+ you can `dnf install scancode-toolkit`
165+
164166

165167
Quick Start
166168
===========
@@ -258,4 +260,4 @@ the third-party code used in ScanCode for more details.
258260

259261
.. |release-github-actions| image:: https://github.com/nexB/scancode-toolkit/actions/workflows/scancode-release.yml/badge.svg?event=push
260262
:target: https://github.com/nexB/scancode-toolkit/actions/workflows/scancode-release.yml
261-
:alt: Release tests
263+
:alt: Release tests

azure-pipelines.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,18 @@ jobs:
111111

112112
- template: etc/ci/azure-posix.yml
113113
parameters:
114-
job_name: macos11_cpython
115-
python_architecture: x64
116-
image_name: macOS-11
114+
job_name: macos12_cpython
115+
image_name: macOS-12
117116
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
117+
python_architecture: x64
118118
test_suites:
119119
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
120120

121121
- template: etc/ci/azure-posix.yml
122122
parameters:
123-
job_name: macos12_cpython
124-
image_name: macOS-12
123+
job_name: macos13_cpython
124+
image_name: macOS-13
125125
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
126-
python_architecture: x64
127126
test_suites:
128127
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
129128

@@ -204,19 +203,19 @@ jobs:
204203
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
205204
test_suites:
206205
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
207-
206+
208207
- template: etc/ci/azure-posix.yml
209208
parameters:
210-
job_name: macos11_cpython_latest_from_pip
211-
image_name: macos-11
209+
job_name: macos12_cpython_latest_from_pip
210+
image_name: macos-12
212211
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
213212
test_suites:
214213
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
215214

216215
- template: etc/ci/azure-posix.yml
217216
parameters:
218-
job_name: macos12_cpython_latest_from_pip
219-
image_name: macos-12
217+
job_name: macos13_cpython_latest_from_pip
218+
image_name: macos-13
220219
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
221220
test_suites:
222221
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py

docs/source/cli-reference/basic-options.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"license_expression": "apache-2.0",
109109
"rule_identifier": "apache-2.0_65.RULE",
110110
"rule_relevance": 100,
111-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_65.RULE",
111+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_65.RULE",
112112
"matched_text": "License: Apache-2.0"
113113
}
114114
],
@@ -587,19 +587,19 @@
587587

588588
A scan example using the ``--license-url-template TEXT`` option ::
589589

590-
scancode -clpieu --json-pp output.json samples --license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE
590+
scancode -clpieu --json-pp output.json samples --license-url-template https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE
591591

592592
In a normal scan, reference url for "ZLIB License" is as follows::
593593

594594
"reference_url": "https://scancode-licensedb.aboutcode.org/zlib",
595595

596596
After using the option in the following manner::
597597

598-
``--license-url-template https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE``
598+
``--license-url-template https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/{}.LICENSE``
599599

600-
the reference URL changes to this `zlib.LICENSE file <https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE>`_::
600+
the reference URL changes to this `zlib.LICENSE file <https://github.com/aboutcode-org/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE>`_::
601601

602-
"reference_url": "https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE",
602+
"reference_url": "https://github.com/aboutcode-org/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/zlib.LICENSE",
603603

604604
The reference URL changes for all detected licenses in the scan, across the scan result file.
605605

@@ -691,7 +691,7 @@
691691
"license_expression": "unknown-license-reference",
692692
"rule_identifier": "lead-in_unknown_30.RULE",
693693
"rule_relevance": 100,
694-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lead-in_unknown_30.RULE",
694+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lead-in_unknown_30.RULE",
695695
"matched_text": "dual-licensed under [`
696696
},
697697
{
@@ -704,7 +704,7 @@
704704
"license_expression": "wtfpl-2.0",
705705
"rule_identifier": "spdx_license_id_wtfpl_for_wtfpl-2.0.RULE",
706706
"rule_relevance": 50,
707-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/spdx_license_id_wtfpl_for_wtfpl-2.0.RULE",
707+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/spdx_license_id_wtfpl_for_wtfpl-2.0.RULE",
708708
"matched_text": "WTFPL"
709709
},
710710
{
@@ -717,7 +717,7 @@
717717
"license_expression": "wtfpl-2.0",
718718
"rule_identifier": "wtfpl-2.0_27.RULE",
719719
"rule_relevance": 100,
720-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/wtfpl-2.0_27.RULE",
720+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/wtfpl-2.0_27.RULE",
721721
"matched_text": "www.wtfpl.net/"
722722
},
723723
{
@@ -730,7 +730,7 @@
730730
"license_expression": "mit",
731731
"rule_identifier": "mit_64.RULE",
732732
"rule_relevance": 100,
733-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_64.RULE",
733+
"rule_url": "https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mit_64.RULE",
734734
"matched_text": "MIT`](https://opensource.org/licenses/MIT)."
735735
}
736736
],

docs/source/cli-reference/help-text-options.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The Following Help Text is displayed, i.e. This is the help text for Scancode Ve
7979
--csv FILE [DEPRECATED] Write scan output as CSV to FILE. The
8080
--csv option is deprecated and will be replaced by new
8181
CSV and tabular output formats in the next ScanCode
82-
release. Visit https://github.com/nexB/scancode-
82+
release. Visit https://github.com/aboutcode-org/scancode-
8383
toolkit/issues/3043 to provide inputs and feedback.
8484
--html FILE Write scan output as HTML to FILE.
8585
--custom-output FILE Write scan output to FILE formatted with the custom
@@ -321,7 +321,7 @@ The Following Text is displayed, i.e. This is the available plugins for Scancode
321321
required_plugins:
322322
options:
323323
help_group: output formats, name: csv: --csv
324-
help: [DEPRECATED] Write scan output as CSV to FILE. The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
324+
help: [DEPRECATED] Write scan output as CSV to FILE. The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/aboutcode-org/scancode-toolkit/issues/3043 to provide inputs and feedback.
325325
doc: None
326326

327327
--------------------------------------------

docs/source/cli-reference/output-format.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ following options.
5858
"--package": true,
5959
"--url": true
6060
},
61-
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
61+
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/aboutcode-org/scancode-toolkit/ for support and download.",
6262
"start_timestamp": "2019-10-19T191117.292858",
6363
"end_timestamp": "2019-10-19T191219.743133",
6464
"message": null,
@@ -221,7 +221,7 @@ following options.
221221

222222
The whole Output file looks like::
223223

224-
{"headers":[{"tool_name":"scancode-toolkit","tool_version":"3.1.1","options":{"input":["samples/"],"--copyright":true,"--email":true,"--info":true,"--json-lines":"output.json","--license":true,"--package":true,"--url":true},"notice":"Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.","start_timestamp":"2019-10-19T210920.143831","end_timestamp":"2019-10-19T211052.048182","message":null,"errors":[],"extra_data":{"files_count":36}}]}
224+
{"headers":[{"tool_name":"scancode-toolkit","tool_version":"3.1.1","options":{"input":["samples/"],"--copyright":true,"--email":true,"--info":true,"--json-lines":"output.json","--license":true,"--package":true,"--url":true},"notice":"Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/aboutcode-org/scancode-toolkit/ for support and download.","start_timestamp":"2019-10-19T210920.143831","end_timestamp":"2019-10-19T211052.048182","message":null,"errors":[],"extra_data":{"files_count":36}}]}
225225
{"files":[{"path":"samples" ... "scan_errors":[]}]}
226226
{"files":[{"path":"samples/README", ... "scan_errors":[]}]}
227227
{"files":[{"path":"samples/screenshot.png", ... "scan_errors":[]}]}
@@ -340,7 +340,7 @@ Comparing Different ``json`` Output Formats
340340
ScanCode should be considered or used as legal advice. Consult an Attorney
341341
for any legal advice.
342342
ScanCode is a free software code scanning tool from nexB Inc. and others.
343-
Visit https://github.com/nexB/scancode-toolkit/ for support and download.</text>
343+
Visit https://github.com/aboutcode-org/scancode-toolkit/ for support and download.</text>
344344

345345

346346
# Creation Info
@@ -459,7 +459,7 @@ Comparing Different ``json`` Output Formats
459459

460460
This option is deprecated and will be replaced by new CSV and tabular
461461
output formats in the next ScanCode release. Visit
462-
https://github.com/nexB/scancode-toolkit/issues/3043
462+
https://github.com/aboutcode-org/scancode-toolkit/issues/3043
463463
for details and to provide inputs and feedback.
464464

465465
The following code performs a scan on the samples directory, and publishes the results in

0 commit comments

Comments
 (0)