scientific-computing-system 2.2.19 → 2.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/README.md +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,51 @@ a git tag in this repository or on `origin` (checked with `git ls-remote --tags`
|
|
|
19
19
|
Any retroactive `v2.2.6` or `v2.2.7` tag should point at those commits. This note records
|
|
20
20
|
what the history supports; it does not claim that a tag exists.
|
|
21
21
|
|
|
22
|
+
## [Unreleased]
|
|
23
|
+
|
|
24
|
+
### Release policy keeps the signed source snapshot
|
|
25
|
+
|
|
26
|
+
- The `PyPI Release Policy` workflow deleted every `.tar.gz` asset from the matching GitHub Release, including the `<repository>-<tag>.tar.gz` snapshot that `sign-release.yml` attaches together with its `.sigstore` bundle. The verifier in `scripts/verify_release_integrity.py` has permitted exactly that snapshot since 2.2.18, so the removal step contradicted the policy it enforces and left the signature without its subject. Releases `v2.2.18` and `v2.2.20` carry only the `.sigstore` bundle; the snapshot is gone. The removal step now keeps the signed snapshot and deletes only wheels and other tarballs.
|
|
27
|
+
|
|
28
|
+
### Release verifier waits longer for PyPI propagation
|
|
29
|
+
|
|
30
|
+
- `scripts/verify_release_integrity.py` now allows five minutes (60 attempts at a 5-second pause) for the PyPI JSON API to expose a freshly uploaded release, up from one minute. Release run 40231188282 (v2.2.20) failed on the old budget while the artifacts were already live, and a rerun verified the same release; the release job's 30-minute timeout leaves room for the wider wait.
|
|
31
|
+
- That five minutes is a wall-clock deadline as well as a sleep total: each request may take up to 30 seconds, so the retry loop stops once the deadline passes instead of letting sixty slow requests outlast the release job.
|
|
32
|
+
- Each attempt line is flushed as it is written. In that failed run the twelve attempts shared one buffered timestamp, which hid the retry spacing from the log; flushed writes make a future failure diagnosable directly.
|
|
33
|
+
|
|
34
|
+
### Determinism matrix covers figure artifacts
|
|
35
|
+
|
|
36
|
+
- The determinism workload now writes `series.pdf` and `series.svg` through `cds.plot.charts.save_figure` whenever `DETERMINISM_ARTIFACT_DIR` is set, so the matrix records and hashes the figure exports on every seed, thread count, locale, timezone and OS variant instead of only `payload.json`. The workload fails when any artifact is empty.
|
|
37
|
+
- The determinism matrix job installs the `plot` extra, because the workload now renders figures. PDFs compare byte-for-byte; SVG line endings are normalized by the engine, so the Windows CRLF copy matches the POSIX LF copy.
|
|
38
|
+
|
|
39
|
+
### Determinism matrix covers the ML models
|
|
40
|
+
|
|
41
|
+
- The determinism workload now fits `cds.ml.clustering.KMeans` and `cds.ml.ensemble.RandomForestClassifier` on integer-grid data with fixed seeds and records cluster labels, centroids, inertia, iteration count and forest predictions on every seed, thread, locale, timezone and OS variant. Both models are documented as reproducible for a fixed seed, but no matrix run executed the ML suite, so a seeding or tie-breaking regression would have passed every gate.
|
|
42
|
+
- Centroids are rounded to 9 decimals and inertia to 6 before hashing, so compiler-level float noise cannot fail the cross-OS gate while a change in cluster assignments or split decisions still does.
|
|
43
|
+
- The workload fails when the clustering leaves a cluster empty or the forest predicts a single label, which keeps the sampled payload meaningful.
|
|
44
|
+
|
|
45
|
+
## [v2.2.21] - 2026-10-29
|
|
46
|
+
|
|
47
|
+
### Python 3.10 support removed
|
|
48
|
+
|
|
49
|
+
- `requires-python` is now `>=3.11`; the 3.10 classifier, the CI matrix entry, the ruff `target-version` and the mypy `python_version` all move together, so the three settings can no longer describe different support floors. CDS code and tests keep working unchanged on 3.11 through 3.13.
|
|
50
|
+
- The `tomli` fallbacks in `scripts/check_version_lockstep.py` and `scripts/verify_release_integrity.py` are gone: `tomllib` is stdlib on every supported interpreter, and CI no longer installs `tomli` for the suite.
|
|
51
|
+
- Documentation states the new floor: the README badge, `docs/getting-started.md`, `paper.md`, and the npm launcher's "no usable Python interpreter" message.
|
|
52
|
+
|
|
53
|
+
### numpy dev cap removed (issue #62)
|
|
54
|
+
|
|
55
|
+
- The `[dev]` extra no longer pins `numpy<2.5`. The cap existed because the numpy 2.5 stub (`numpy/__init__.pyi`) uses PEP 695 `type` aliases, which mypy releases before 2.4.1 reject whenever `python_version` is below 3.12. The mypy floor is now `>=2.4.1`, the first release verified to parse those aliases at the project's 3.11 target, so the uncapped stub type-checks.
|
|
56
|
+
- `tests/test_type_check_toolchain_contract.py` replaces the cap guard: it requires the mypy and ruff targets to match `requires-python`, rejects any numpy upper bound in the extras, and rejects a mypy floor below 2.4.1. The previous test would have accepted the cap being silently reintroduced.
|
|
57
|
+
- Bump synchronized package metadata to 2.2.21 as required by the version-discipline gate for the `[project]` change.
|
|
58
|
+
|
|
59
|
+
## [v2.2.20] - 2026-10-25
|
|
60
|
+
|
|
61
|
+
### Deterministic offline hypothesis ids
|
|
62
|
+
|
|
63
|
+
- `SimpleOfflineGenerator.generate` used `uuid.uuid4()` for `Hypothesis.id`, so `cds hypothesis --output` wrote different ids on every run even though the generator is documented as deterministic. Ids now derive from a SHA-256 digest of domain, question, rank and statement, preserving the `H-xxxxxxxx` format so generated content repeats exactly. `created_at` remains wall-clock metadata and is excluded from the determinism workload's content digest.
|
|
64
|
+
- The determinism test now compares full `to_dict()` payloads (minus `created_at`) across two runs and requires distinct ids for distinct questions. The determinism workload also generates hypotheses twice and fails if the content payloads differ.
|
|
65
|
+
- Bump synchronized package metadata to 2.2.20 as required by the version-discipline gate for the `src/cds/` change.
|
|
66
|
+
|
|
22
67
|
## [v2.2.19] - 2026-10-25
|
|
23
68
|
|
|
24
69
|
### Reproducible figure exports
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://pypi.org/project/scientific-computing-system/"><img src="https://img.shields.io/pypi/v/scientific-computing-system.svg" alt="PyPI version"></a>
|
|
11
11
|
<a href="https://www.npmjs.com/package/scientific-computing-system"><img src="https://img.shields.io/npm/v/scientific-computing-system.svg" alt="npm version"></a>
|
|
12
|
-
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.
|
|
12
|
+
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.11+-green.svg" alt="Python 3.11+"></a>
|
|
13
13
|
<a href="https://codecov.io/gh/Furox-Art/scientific-computing-system"><img src="https://codecov.io/gh/Furox-Art/scientific-computing-system/branch/main/graph/badge.svg" alt="codecov"></a>
|
|
14
14
|
<a href="https://github.com/Furox-Art/scientific-computing-system/actions/workflows/tests.yml"><img src="https://github.com/Furox-Art/scientific-computing-system/actions/workflows/tests.yml/badge.svg" alt="CI"></a>
|
|
15
15
|
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a>
|
|
@@ -183,7 +183,7 @@ The package installs a `cds` command with 13 subcommands:
|
|
|
183
183
|
|
|
184
184
|
```console
|
|
185
185
|
$ cds --version
|
|
186
|
-
System version 2.2.
|
|
186
|
+
System version 2.2.21
|
|
187
187
|
$ cds constants # physical constants table
|
|
188
188
|
```
|
|
189
189
|
|
package/index.js
CHANGED
|
@@ -76,7 +76,7 @@ function runSCS(args) {
|
|
|
76
76
|
process.stderr.write(
|
|
77
77
|
'scientific-computing-system: no usable Python interpreter found.\n' +
|
|
78
78
|
'Tried: ' + PYTHON_CANDIDATES.join(', ') + '\n' +
|
|
79
|
-
'Install Python 3.
|
|
79
|
+
'Install Python 3.11 or newer, or invoke the CLI directly with ' +
|
|
80
80
|
'`python -m cds` after `pip install scientific-computing-system`.\n'
|
|
81
81
|
);
|
|
82
82
|
return 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scientific-computing-system",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.21",
|
|
4
4
|
"description": "Scientific Computing System launcher - a thin Node wrapper that forwards to the pure-Python `cds` CLI. This npm package ships NO Python code: it requires the Python distribution to be installed (`pip install scientific-computing-system`), otherwise `scs` exits non-zero with an actionable message.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|