Skip to content

Commit cf29f16

Browse files
committed
Merge latest develop
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
2 parents 295628d + 9a340fc commit cf29f16

File tree

3,280 files changed

+134599
-62909
lines changed

Some content is hidden

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

3,280 files changed

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

40139
New CLI options:
41140

@@ -71,7 +170,7 @@ Changes in Output Data Structure:
71170
file-level ``package_data``
72171
* ``license_detections`` and ``other_license_detections`` in
73172
codebase level ``packages``
74-
173+
75174
- On using the CLI option ``--license-text-diagnostics`` there is
76175
now a new license match attribute ``matched_text_diagnostics``
77176
with the matched text and highlighted diagnostics, instead of
@@ -80,7 +179,7 @@ Changes in Output Data Structure:
80179
- A new ``reference_matches`` attribute is added to codebase-level
81180
``license_detections`` which is same as the ``matches`` attribute
82181
in other license detections.
83-
182+
84183
- We now have SPDX license expressions everywhere we have
85184
ScanCode license expressions for ease of use and adopting
86185
SPDX everywhere. A new attribute ``license_expression_spdx``
@@ -128,7 +227,7 @@ Changes in Output Data Structure:
128227
and https://github.com/nexB/scancode-toolkit/issues/3443
129228
Also improve debian manifests parsing and purl parsing from
130229
filenames. Support for https://github.com/nexB/purldb/issues/245
131-
Bumps debian-inspector to v31.1.0
230+
Bumps debian-inspector to v31.1.0
132231

133232
- Bump commoncode to v31.0.3
134233

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: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,33 @@ jobs:
7575
tests/licensedcode/test_detection_validate.py \
7676
-k TestValidateLicenseExtended5
7777
78+
79+
license_validate_ignorables_1: |
80+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
81+
tests/licensedcode/test_detection_validate.py \
82+
-k TestValidateLicenseIgnorableClues1
83+
84+
license_validate_ignorables_2: |
85+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
86+
tests/licensedcode/test_detection_validate.py \
87+
-k TestValidateLicenseIgnorableClues2
88+
89+
license_validate_ignorables_3: |
90+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
91+
tests/licensedcode/test_detection_validate.py \
92+
-k TestValidateLicenseIgnorableClues3
93+
94+
license_validate_ignorables_4: |
95+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
96+
tests/licensedcode/test_detection_validate.py \
97+
-k TestValidateLicenseIgnorableClues4
98+
99+
license_validate_ignorables_5: |
100+
venv/bin/pytest -n 3 -vvs --test-suite=validate \
101+
tests/licensedcode/test_detection_validate.py \
102+
-k TestValidateLicenseIgnorableClues5
103+
104+
78105
license_cache: |
79106
venv/bin/pytest -n 3 -vvs --test-suite=all \
80107
tests/licensedcode/test_zzzz_cache.py --reruns 2
@@ -111,19 +138,18 @@ jobs:
111138

112139
- template: etc/ci/azure-posix.yml
113140
parameters:
114-
job_name: macos11_cpython
115-
python_architecture: x64
116-
image_name: macOS-11
141+
job_name: macos12_cpython
142+
image_name: macOS-12
117143
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
144+
python_architecture: x64
118145
test_suites:
119146
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
120147

121148
- template: etc/ci/azure-posix.yml
122149
parameters:
123-
job_name: macos12_cpython
124-
image_name: macOS-12
150+
job_name: macos13_cpython
151+
image_name: macOS-13
125152
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
126-
python_architecture: x64
127153
test_suites:
128154
all: venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py --reruns 2
129155

@@ -204,19 +230,19 @@ jobs:
204230
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
205231
test_suites:
206232
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-
233+
208234
- template: etc/ci/azure-posix.yml
209235
parameters:
210-
job_name: macos11_cpython_latest_from_pip
211-
image_name: macos-11
236+
job_name: macos12_cpython_latest_from_pip
237+
image_name: macos-12
212238
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
213239
test_suites:
214240
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e .[testing] && venv/bin/pytest -n 2 -vvs tests/scancode/test_cli.py
215241

216242
- template: etc/ci/azure-posix.yml
217243
parameters:
218-
job_name: macos12_cpython_latest_from_pip
219-
image_name: macos-12
244+
job_name: macos13_cpython_latest_from_pip
245+
image_name: macos-13
220246
python_versions: ['3.8', '3.9', '3.10', '3.11', '3.12']
221247
test_suites:
222248
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
--------------------------------------------

0 commit comments

Comments
 (0)