Skip to content

Commit 15e0876

Browse files
Merge remote-tracking branch 'skeleton/main' into release-prep-v32.3.1
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
2 parents 2e69428 + 9c57f34 commit 15e0876

11 files changed

+94
-53
lines changed

configure

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 2 deletions
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

Lines changed: 12 additions & 7 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 7 additions & 4 deletions
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

Lines changed: 7 additions & 4 deletions
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)