Commit 83168d4
committed
Address PR feedback: widen release fixtures + drop speculative dev0 mapping
Two follow-ups on #1317 review:
1. Ting: "这个地方为什么有一个 dev0?"
`_PACKAGE_TO_SCHEMA["2026.1.28.dev0"]` was speculative - no such tag
exists in git and `get_ver_git.py`'s scheme never surfaces `.dev0` as
a release identifier a user would type. Removed. If a future user
types a PEP 440 dev/post suffix we'd rather show the clear
"no handler registered" dispatch error than silently remap.
2. Ting: "这个地方应该把之前发过的所有版本的 YAML 文件全都拿进来,
对不对?"
Vendored every formal supy release sample_config verbatim:
* 2025.10.15 + 2025.11.20 - identity path (both parse directly
under the current validator)
* 2026.1.28 - upgrade path via the pre-setpoint-split handler
(already present)
* 2026.4.3 - identity path (already present)
Rationale: regression guards for the whole migration surface, not
just "last release". If a future schema change breaks any of them,
CI fires immediately and either a new handler lands or the fixture
refresh goes through with a justifying commit, per the existing
README policy.
README rewritten to describe the fixture taxonomy per formal tag with
identity / upgrade-path annotations.
Test results:
* test_release_compat.py: 4 release fixtures (2025.10.15, 2025.11.20,
2026.4.3 identity; 2026.1.28 upgrade) + 3 docs examples all pass
* test_yaml_upgrade.py: 13 passed (module + CLI + handler)
Refs #1301, #1304.1 parent e0a547a commit 83168d4
File tree
5 files changed
+4742
-17
lines changed- src/supy/util/converter
- test/fixtures/release_configs
5 files changed
+4742
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments