Skip to content

Commit 0362454

Browse files
authored
Merge pull request #2680 from nexB/release-preparation-2021-08
Release preparation for 2021.08
2 parents d8d272a + 25cf04c commit 0362454

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

etc/release/scancode-create-release.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ PYTHON_APP_DOT_VERSIONS="3.6 3.7 3.8 3.9"
2121

2222
PYTHON_PYPI_TESTS_DOT_VERSIONS="3.6 3.7 3.8 3.9"
2323

24+
PYPI_LINKS=https://thirdparty.aboutcode.org/pypi
25+
2426
OPERATING_SYSTEMS="linux macos windows"
2527

2628
QUIET=""
@@ -272,9 +274,9 @@ function build_app_archive {
272274
mkdir -p thirdparty
273275

274276
if [ "$operating_system" == "windows" ]; then
275-
echo -n "py -$python_app_dot_version">PYTHON_EXECUTABLE
277+
echo -n "py -$python_app_dot_version" > PYTHON_EXECUTABLE
276278
else
277-
echo -n "python$python_app_dot_version">PYTHON_EXECUTABLE
279+
echo -n "python$python_app_dot_version" > PYTHON_EXECUTABLE
278280
fi
279281

280282
# 1. Collect thirdparty deps only for the subset for this Python/operating_system
@@ -339,7 +341,7 @@ if [ "$CLI_ARGS" != "--continue" ]; then
339341

340342
echo "## RELEASE: Clean and configure, then regen license index"
341343
./configure --clean
342-
PYPI_LINKS=$PYPI_LINKS ./configure --local
344+
./configure --local
343345
source bin/activate
344346
scancode --reindex-licenses
345347

etc/release/utils_thirdparty.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,20 @@ def fetch_wheels(
172172
else:
173173
force_pinned = False
174174

175-
rrp = list(get_required_remote_packages(
176-
requirements_file=requirements_file,
177-
force_pinned=force_pinned,
178-
remote_links_url=remote_links_url,
179-
))
175+
try:
176+
rrp = list(get_required_remote_packages(
177+
requirements_file=requirements_file,
178+
force_pinned=force_pinned,
179+
remote_links_url=remote_links_url,
180+
))
181+
except Exception as e:
182+
raise Exception(
183+
dict(
184+
requirements_file=requirements_file,
185+
force_pinned=force_pinned,
186+
remote_links_url=remote_links_url,
187+
)
188+
) from e
180189

181190
fetched_filenames = set()
182191
for name, version, package in rrp:
@@ -211,6 +220,7 @@ def fetch_wheels(
211220
print(f'Missed package {nv} in remote repo, has only:')
212221
for pv in rr.get_versions(n):
213222
print(' ', pv)
223+
raise Exception('Missed some packages in remote repo')
214224

215225

216226
def fetch_sources(
@@ -261,6 +271,8 @@ def fetch_sources(
261271
fetched = package.fetch_sdist(dest_dir=dest_dir)
262272
error = f'Failed to fetch' if not fetched else None
263273
yield package, error
274+
if missed:
275+
raise Exception(f'Missing source packages in {remote_links_url}', missed)
264276

265277
################################################################################
266278
#
@@ -2317,7 +2329,7 @@ def get_required_remote_packages(
23172329
repo = get_remote_repo(remote_links_url=remote_links_url)
23182330
else:
23192331
# a local path
2320-
assert os.path.exists(remote_links_url)
2332+
assert os.path.exists(remote_links_url), f'Path does not exist: {remote_links_url}'
23212333
repo = get_local_repo(directory=remote_links_url)
23222334

23232335
for name, version in required_name_versions:

etc/thirdparty/virtualenv.pyz

3.84 MB
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
about_resource: virtualenv.pyz
22
name: get-virtualenv
33
version: 20.6.0
4-
download_url: https://github.com/pypa/get-virtualenv/raw/20.6.0/public/virtualenv.pyz
4+
download_url: https://github.com/pypa/get-virtualenv/raw/20.7.2/public/virtualenv.pyz
55
description: virtualenv is a tool to create isolated Python environments.
66
homepage_url: https://github.com/pypa/virtualenv
77
license_expression: lgpl-2.1-plus AND (bsd-new OR apache-2.0) AND mit AND python AND bsd-new
@@ -10,4 +10,4 @@ copyright: Copyright (c) The Python Software Foundation and others
1010
redistribute: yes
1111
attribute: yes
1212
track_changes: yes
13-
package_url: pkg:github/pypa/get-virtualenv@20.6.0#public/virtualenv.pyz
13+
package_url: pkg:github/pypa/get-virtualenv@20.7.2#public/virtualenv.pyz

0 commit comments

Comments
 (0)