Skip to content

Commit 1d0fe75

Browse files
Merge pull request #4074 from aboutcode-org/release-prep-v32.3.1
Release prep v32.3.1
2 parents 2e69428 + 5455d8a commit 1d0fe75

16 files changed

+131
-65
lines changed

.github/workflows/scancode-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ jobs:
239239
strategy:
240240
fail-fast: true
241241
matrix:
242-
os: [ubuntu-22.04, ubuntu-24.04, macos-12, macos-13]
242+
os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14]
243243
pyver: ["3.9", "3.10", "3.11", "3.12"]
244244

245245
steps:
@@ -371,7 +371,7 @@ jobs:
371371
strategy:
372372
fail-fast: true
373373
matrix:
374-
os: [macos-12, macos-13]
374+
os: [macos-13, macos-14]
375375
pyver: ["3.9", "3.10", "3.11", "3.12"]
376376

377377
steps:

CHANGELOG.rst

+27-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ v33.0.0 (next next, roadmap)
1414
- Dependencies for
1515
- Support for copyright detection objects.
1616

17-
- We can now collect packages from a Rust binary using rust-inspector (Linux-only)
18-
1917
- A new field in packages with the license category for the
2018
detected license expression and also an API function to
2119
compute license categories from license expressions.
@@ -40,6 +38,33 @@ v33.0.0 (next next, roadmap)
4038
- Update Dockerfile and test container build.
4139
See https://github.com/aboutcode-org/scancode-toolkit/issues/3955
4240

41+
v32.3.1 - 2024-01-06
42+
--------------------
43+
44+
This is a minor release with license and package detection
45+
improvements, bugfixes and with new and updated license detection rules
46+
and new licenses added.
47+
48+
- We can now collect packages from a Rust binary using rust-inspector
49+
for rust binaries built with `cargo-auditable`(Linux-only)
50+
Also adds a plugin for colelcting rust symbols with the option
51+
``--rust-symbol``. See the initial release for more info:
52+
https://github.com/aboutcode-org/rust-inspector/releases/tag/v0.1.0
53+
https://github.com/aboutcode-org/scancode-toolkit/pull/4043
54+
55+
- Improves and adds bugfixes for package detection in the following ecosystems:
56+
conda, npm, rust, go.
57+
https://github.com/aboutcode-org/scancode-toolkit/pull/4073
58+
59+
- Updates go-inspector to v0.5.0 . GoReSym is now built from source and has
60+
been updated to v3.0.1. https://github.com/aboutcode-org/scancode-toolkit/pull/3972
61+
62+
- Adds new and updated licenses, license detection rules.
63+
https://github.com/aboutcode-org/scancode-toolkit/pull/3963
64+
65+
- Adds the latest license-expression with an updated licenseDB.
66+
https://github.com/aboutcode-org/scancode-toolkit/pull/3960
67+
4368
v32.3.0 - 2024-10-21
4469
--------------------
4570

azure-pipelines.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ jobs:
138138

139139
- template: etc/ci/azure-posix.yml
140140
parameters:
141-
job_name: macos12_cpython
142-
image_name: macOS-12
141+
job_name: macos14_cpython
142+
image_name: macOS-14
143143
python_versions: ['3.9', '3.10', '3.11', '3.12']
144144
python_architecture: x64
145145
test_suites:

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0 AND MIT
55
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
66
# ScanCode is a trademark of nexB Inc.
7-
# See https://github.com/nexB/ for support or download.
7+
# See https://github.com/aboutcode-org/ for support or download.
88
# See https://aboutcode.org for more information about nexB OSS projects.
99
#
1010

configure.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@rem Copyright (c) nexB Inc. and others. All rights reserved.
55
@rem SPDX-License-Identifier: Apache-2.0
66
@rem See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
7-
@rem See https://github.com/nexB/ for support or download.
7+
@rem See https://github.com/aboutcode-org/ for support or download.
88
@rem See https://aboutcode.org for more information about nexB OSS projects.
99

1010

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
# This points to aboutcode.readthedocs.io
4949
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
50-
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
50+
# Link was created at commit - https://github.com/aboutcode-org/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
5151

5252
intersphinx_mapping = {
5353
"aboutcode": ("https://aboutcode.readthedocs.io/en/latest/", None),

etc/scripts/check_thirdparty.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# ScanCode is a trademark of nexB Inc.
66
# SPDX-License-Identifier: Apache-2.0
77
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
8-
# See https://github.com/nexB/skeleton for support or download.
8+
# See https://github.com/aboutcode-org/skeleton for support or download.
99
# See https://aboutcode.org for more information about nexB OSS projects.
1010
#
1111
import click
@@ -17,7 +17,8 @@
1717
@click.option(
1818
"-d",
1919
"--dest",
20-
type=click.Path(exists=True, readable=True, path_type=str, file_okay=False),
20+
type=click.Path(exists=True, readable=True,
21+
path_type=str, file_okay=False),
2122
required=True,
2223
help="Path to the thirdparty directory to check.",
2324
)

etc/scripts/fetch_thirdparty.py

+12-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# ScanCode is a trademark of nexB Inc.
66
# SPDX-License-Identifier: Apache-2.0
77
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
8-
# See https://github.com/nexB/skeleton for support or download.
8+
# See https://github.com/aboutcode-org/skeleton for support or download.
99
# See https://aboutcode.org for more information about nexB OSS projects.
1010
#
1111

@@ -55,7 +55,8 @@
5555
"-d",
5656
"--dest",
5757
"dest_dir",
58-
type=click.Path(exists=True, readable=True, path_type=str, file_okay=False),
58+
type=click.Path(exists=True, readable=True,
59+
path_type=str, file_okay=False),
5960
metavar="DIR",
6061
default=utils_thirdparty.THIRDPARTY_DIR,
6162
show_default=True,
@@ -224,7 +225,8 @@ def fetch_thirdparty(
224225
environments = None
225226
if wheels:
226227
evts = itertools.product(python_versions, operating_systems)
227-
environments = [utils_thirdparty.Environment.from_pyver_and_os(pyv, os) for pyv, os in evts]
228+
environments = [utils_thirdparty.Environment.from_pyver_and_os(
229+
pyv, os) for pyv, os in evts]
228230

229231
# Collect PyPI repos
230232
repos = []
@@ -260,13 +262,14 @@ def fetch_thirdparty(
260262
repos=repos,
261263
)
262264
if not fetched:
263-
wheels_or_sdist_not_found[f"{name}=={version}"].append(environment)
265+
wheels_or_sdist_not_found[f"{name}=={version}"].append(
266+
environment)
264267
if TRACE:
265268
print(f" NOT FOUND")
266269

267270
if (sdists or
268271
(f"{name}=={version}" in wheels_or_sdist_not_found and name in sdist_only)
269-
):
272+
):
270273
if TRACE:
271274
print(f" ==> Fetching sdist: {name}=={version}")
272275

@@ -289,7 +292,8 @@ def fetch_thirdparty(
289292
sdist_missing = sdists and "sdist" in dists and not name in wheel_only
290293
if sdist_missing:
291294
mia.append(f"SDist missing: {nv} {dists}")
292-
wheels_missing = wheels and any(d for d in dists if d != "sdist") and not name in sdist_only
295+
wheels_missing = wheels and any(
296+
d for d in dists if d != "sdist") and not name in sdist_only
293297
if wheels_missing:
294298
mia.append(f"Wheels missing: {nv} {dists}")
295299

@@ -299,7 +303,8 @@ def fetch_thirdparty(
299303
raise Exception(mia)
300304

301305
print(f"==> FETCHING OR CREATING ABOUT AND LICENSE FILES")
302-
utils_thirdparty.fetch_abouts_and_licenses(dest_dir=dest_dir, use_cached_index=use_cached_index)
306+
utils_thirdparty.fetch_abouts_and_licenses(
307+
dest_dir=dest_dir, use_cached_index=use_cached_index)
303308
utils_thirdparty.clean_about_files(dest_dir=dest_dir)
304309

305310
# check for problems

etc/scripts/gen_requirements.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# ScanCode is a trademark of nexB Inc.
66
# SPDX-License-Identifier: Apache-2.0
77
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
8-
# See https://github.com/nexB/skeleton for support or download.
8+
# See https://github.com/aboutcode-org/skeleton for support or download.
99
# See https://aboutcode.org for more information about nexB OSS projects.
1010
#
1111
import argparse

etc/scripts/gen_requirements_dev.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# ScanCode is a trademark of nexB Inc.
66
# SPDX-License-Identifier: Apache-2.0
77
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
8-
# See https://github.com/nexB/skeleton for support or download.
8+
# See https://github.com/aboutcode-org/skeleton for support or download.
99
# See https://aboutcode.org for more information about nexB OSS projects.
1010
#
1111
import argparse

etc/scripts/utils_dejacode.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# ScanCode is a trademark of nexB Inc.
66
# SPDX-License-Identifier: Apache-2.0
77
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
8-
# See https://github.com/nexB/skeleton for support or download.
8+
# See https://github.com/aboutcode-org/skeleton for support or download.
99
# See https://aboutcode.org for more information about nexB OSS projects.
1010
#
1111
import io
@@ -33,7 +33,8 @@
3333

3434
def can_do_api_calls():
3535
if not DEJACODE_API_KEY and DEJACODE_API_URL:
36-
print("DejaCode DEJACODE_API_KEY and DEJACODE_API_URL not configured. Doing nothing")
36+
print(
37+
"DejaCode DEJACODE_API_KEY and DEJACODE_API_URL not configured. Doing nothing")
3738
return False
3839
else:
3940
return True
@@ -68,7 +69,8 @@ def get_package_data(distribution):
6869
return results[0]
6970

7071
elif len_results > 1:
71-
print(f"More than 1 entry exists, review at: {DEJACODE_API_URL_PACKAGES}")
72+
print(
73+
f"More than 1 entry exists, review at: {DEJACODE_API_URL_PACKAGES}")
7274
else:
7375
print("Could not find package:", distribution.download_url)
7476

@@ -149,7 +151,8 @@ def find_latest_dejacode_package(distribution):
149151
# there was no exact match, find the latest version
150152
# TODO: consider the closest version rather than the latest
151153
# or the version that has the best data
152-
with_versions = [(packaging_version.parse(p["version"]), p) for p in packages]
154+
with_versions = [(packaging_version.parse(p["version"]), p)
155+
for p in packages]
153156
with_versions = sorted(with_versions)
154157
latest_version, latest_package_version = sorted(with_versions)[-1]
155158
print(

etc/scripts/utils_requirements.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# ScanCode is a trademark of nexB Inc.
66
# SPDX-License-Identifier: Apache-2.0
77
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
8-
# See https://github.com/nexB/skeleton for support or download.
8+
# See https://github.com/aboutcode-org/skeleton for support or download.
99
# See https://aboutcode.org for more information about nexB OSS projects.
1010
#
1111

@@ -102,7 +102,8 @@ def lock_dev_requirements(
102102
all_req_nvs = get_required_name_versions(all_req_lines)
103103
dev_only_req_nvs = {n: v for n, v in all_req_nvs if n not in main_names}
104104

105-
new_reqs = "\n".join(f"{n}=={v}" for n, v in sorted(dev_only_req_nvs.items()))
105+
new_reqs = "\n".join(
106+
f"{n}=={v}" for n, v in sorted(dev_only_req_nvs.items()))
106107
with open(dev_requirements_file, "w") as fo:
107108
fo.write(new_reqs)
108109

@@ -113,10 +114,12 @@ def get_installed_reqs(site_packages_dir):
113114
as a text.
114115
"""
115116
if not os.path.exists(site_packages_dir):
116-
raise Exception(f"site_packages directory: {site_packages_dir!r} does not exists")
117+
raise Exception(
118+
f"site_packages directory: {site_packages_dir!r} does not exists")
117119
# Also include these packages in the output with --all: wheel, distribute,
118120
# setuptools, pip
119-
args = ["pip", "freeze", "--exclude-editable", "--all", "--path", site_packages_dir]
121+
args = ["pip", "freeze", "--exclude-editable",
122+
"--all", "--path", site_packages_dir]
120123
return subprocess.check_output(args, encoding="utf-8")
121124

122125

0 commit comments

Comments
 (0)