From be7bb6ded89a0bb47226fe7a316c95962d85a7ad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:46:23 +0000 Subject: [PATCH 1/4] ci(release): update readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d8f8c5c..c30226b 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,12 @@ The programs, version numbers, and the date stamp on the downloaded file used to | mf6 | 6.8.2 | 10/30/2026 | | mflgr | 2.0.0 | 09/20/2013 | | mfnwt | 1.3.0 | 09/07/2022 | -| mfusg | 1.5 | 09/30/2025 | +| mfusg | 1.5.2 | 11/10/2026 | | mfusgt | 2.8.1 | 11/01/2026 | -| mp6 | 6.0.1 | 10/23/2018 | -| mp7 | 7.2.001 | 10/23/2018 | +| mp6 | 6.0.1 | 11/16/2026 | +| mp7 | 7.2.001 | 11/16/2026 | | mt3dms | 5.3.0 | 07/05/2023 | -| mt3dusgs | 1.1.1 | 11/02/2026 | +| mt3dusgs | 1.1.1 | 11/16/2026 | | sutra | 4.0 | 12/19/2024 | | swtv4 | 4.00.05 | 10/24/2018 | | triangle | 1.6 | 05/26/2026 | From a4c9750d5030bc8ebb928a65afb07153dc9ddcfb Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Mon, 16 Nov 2026 12:58:43 -0800 Subject: [PATCH 2/4] ci(release): use source commit dates for archive-built programs mp6, mp7 and mt3dusgs are downloaded from GitHub source archives, which have no Last-Modified header, so the build date was recorded. Use the date of the commit each archive was built from instead. Co-Authored-By: Claude Opus 5.5 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c30226b..920c4eb 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,10 @@ The programs, version numbers, and the date stamp on the downloaded file used to | mfnwt | 1.3.0 | 09/07/2022 | | mfusg | 1.5.2 | 11/10/2026 | | mfusgt | 2.8.1 | 11/01/2026 | -| mp6 | 6.0.1 | 11/16/2026 | -| mp7 | 7.2.001 | 11/16/2026 | +| mp6 | 6.0.1 | 10/23/2026 | +| mp7 | 7.2.001 | 12/22/2017 | | mt3dms | 5.3.0 | 07/05/2023 | -| mt3dusgs | 1.1.1 | 11/16/2026 | +| mt3dusgs | 1.1.1 | 02/11/2026 | | sutra | 4.0 | 12/19/2024 | | swtv4 | 4.00.05 | 10/24/2018 | | triangle | 1.6 | 05/26/2026 | From 59c1aed819ac464b9ac4d777ecb259734a1ef8b8 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Mon, 16 Nov 2026 13:23:13 -0800 Subject: [PATCH 3/4] ci(release): always take fetched programs' url and date from releases.json patch_code_json.py skipped programs whose releases.json version matched pymake's, leaving pymake's url and date in code.json. Set them for every fetched program, and only use the Last-Modified header for the date, since Date is the time of the response. Co-Authored-By: Claude Opus 5.5 --- scripts/patch_code_json.py | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/scripts/patch_code_json.py b/scripts/patch_code_json.py index 581ce31..b6b47a1 100644 --- a/scripts/patch_code_json.py +++ b/scripts/patch_code_json.py @@ -32,11 +32,10 @@ def _get_url_date(url): try: req = urllib.request.Request(url, method="HEAD") with urllib.request.urlopen(req, timeout=10) as resp: - for key in ("Last-Modified", "Date"): - val = resp.headers.get(key) - if val: - dt = datetime.datetime.strptime(val, "%a, %d %b %Y %H:%M:%S %Z") - return dt.strftime("%m/%d/%Y") + val = resp.headers.get("Last-Modified") + if val: + dt = datetime.datetime.strptime(val, "%a, %d %b %Y %H:%M:%S %Z") + return dt.strftime("%m/%d/%Y") except Exception: pass return None @@ -88,23 +87,19 @@ def patch( if prog_name not in code: continue prev_version = code[prog_name].get("version") - if prev_version == version: - continue code[prog_name]["version"] = version if url: code[prog_name]["url"] = url date = _get_url_date(url) if date: code[prog_name]["url_download_asset_date"] = date - changed.append(f" {prog_name}: {prev_version!r} -> {version!r}") - - if changed: - for line in changed: - print(line) - code_json_path.write_text(json.dumps(code, indent=4) + "\n") - print(f"wrote {code_json_path}") - else: - print("code.json already up to date") + if prev_version != version: + changed.append(f" {prog_name}: {prev_version!r} -> {version!r}") + + for line in changed: + print(line) + code_json_path.write_text(json.dumps(code, indent=4) + "\n") + print(f"wrote {code_json_path}") if code_md_path: write_code_md(code, code_md_path) From 7de7f625ee9ef89f3238be2701b653aa6bec02d6 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Mon, 16 Nov 2026 13:25:36 -0800 Subject: [PATCH 4/4] Revert "ci(release): use source commit dates for archive-built programs" This reverts commit a4c9750 so the README matches code.json in the release zips. Co-Authored-By: Claude Opus 5.5 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 920c4eb..c30226b 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,10 @@ The programs, version numbers, and the date stamp on the downloaded file used to | mfnwt | 1.3.0 | 09/07/2022 | | mfusg | 1.5.2 | 11/10/2026 | | mfusgt | 2.8.1 | 11/01/2026 | -| mp6 | 6.0.1 | 10/23/2026 | -| mp7 | 7.2.001 | 12/22/2017 | +| mp6 | 6.0.1 | 11/16/2026 | +| mp7 | 7.2.001 | 11/16/2026 | | mt3dms | 5.3.0 | 07/05/2023 | -| mt3dusgs | 1.1.1 | 02/11/2026 | +| mt3dusgs | 1.1.1 | 11/16/2026 | | sutra | 4.0 | 12/19/2024 | | swtv4 | 4.00.05 | 10/24/2018 | | triangle | 1.6 | 05/26/2026 |