Skip to content

0.156.5: a check holds the package's promise; the two deprecations say since and 1.0 - #72

Merged
tmoosting merged 2 commits into
mainfrom
promise-check
Nov 27, 2026
Merged

tmoosting merged 2 commits into
mainfrom
promise-check

Conversation

@tmoosting

Copy link
Copy Markdown
Member

scripts/verify_promise.py (in CI's gates job) reads each public module's names from the source against scripts/public-names.json and fails when a name is gone within a major, a new one is unlisted (--write adds it), a deprecation mark lacks its since or its leaving release, and, at a major, a name leaves under six months after its mark. Plants: a listed name deleted, an unlisted def, a mark without since, a warning without its release, a 1.0 that drops names too soon: each exit 1 with its own line; the real run exit 0 (40 modules, 620 names, 3 marks).

resolve_calendar_lens (since 0.69.0) and the layout answers' version key (since 0.133.0) now say they leave in onlyworlds 1.0.

🤖 Generated with Claude Code

tmoosting and others added 2 commits November 27, 2026 10:15
…fter six months marked

scripts/verify_promise.py reads src/onlyworlds/ with ast (never importing it) against
scripts/public-names.json, which lists each public module's names, their deprecation marks
(since, leaves) and the version they were read at. It fails when a deprecation mark does not
say "Deprecated since X.Y.Z" and "onlyworlds 1.0" (a DeprecationWarning's text must also name
its replacement), when a listed name is gone while the major is unchanged, when a public name
is not listed, and, once the major has moved, when a removed name was not marked at least six
months before. --write adds names and updates marks, and removes a name only when the major
moved. Exit 2 when a file cannot be read, never a pass.

The two existing marks now say so: resolve_calendar_lens (since 0.69.0) and the version key of
KindLayout and AroundLayout (since 0.133.0) leave in onlyworlds 1.0. The check runs in the
gates job and is listed in AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eave in onlyworlds 1.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmoosting
tmoosting merged commit f408501 into main Nov 27, 2026
11 checks passed

This branch was previously deployed

1 inactive deployment
pypi — f4085011 Deployed Nov 27, 2026 by tmoosting via publish #253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant