Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
- run: uv run python codegen/generate_nfc.py --check
# Published text names no one inside the team and points at no internal room or tracker.
- run: uv run python scripts/public_words.py
# A public name stays within a major, and a deprecation mark says since when and that it leaves in 1.0.
- run: uv run python scripts/verify_promise.py

okf-reference:
# OKF's own parser and viewer, at the commit onlyworlds.okf pins, read this package's export.
Expand Down
3 changes: 3 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ uv run python codegen/generate_directions.py --check
uv run python codegen/generate_casefold.py --check
uv run python codegen/generate_nfc.py --check
uv run python scripts/public_words.py
uv run python scripts/verify_promise.py
```

`scripts/verify_promise.py` holds the package's promise: a patch fixes and a minor adds, and neither removes or renames a public name. It reads the source (never importing it) against `scripts/public-names.json`, the public names of each public module and their deprecation marks. A change that adds public names runs `uv run python scripts/verify_promise.py --write`, which adds them and never removes one within a major. A name that will go is marked first: its docstring says `Deprecated since X.Y.Z` and `onlyworlds 1.0`, and a function also warns with `DeprecationWarning`, whose text names its replacement and `onlyworlds 1.0`. It goes only in 1.0, six months or more after the release that marked it.

`main` requires two checks: `gates (ubuntu-latest, 3.13)` and `wheel`. The `gates` job also runs on Windows and on Python 3.12 and 3.14. A pull request runs four more jobs that are not required: `commits` (the commit-message check below), `okf-reference`, `folder-conformance` and `wire`.

The `wheel` job builds the wheel, checks it holds exactly the tracked files under `src/onlyworlds/`, installs it in place of the source tree and runs the suite against it. Read its steps in `ci.yml`; its import check asserts a `/site-packages/` path and fails on Windows. If you change packaging (`pyproject.toml`, files added or removed under `src/`), let CI run it.
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ The package version runs on its own semver; the schema it is generated from is `

## Unreleased

## 0.156.5 (2026-11-27)

- **The two deprecations say since which release and that they leave in onlyworlds 1.0**: `calendar.resolve_calendar_lens` (since 0.69.0; its warning now names the release) and the `version` key of `KindLayout` and `AroundLayout` (since 0.133.0), which said it would leave with the npm SDK.
- **A check holds the package's promise: a patch fixes, a minor adds, and neither removes or renames a public name** (`scripts/verify_promise.py`, in CI). It reads each public module's names from the source against `scripts/public-names.json`, and fails on a listed name gone within a major, a public name the file does not list, and a deprecation mark that does not say since which release and that the name leaves in onlyworlds 1.0; when the major moves, a name may go only if it was marked at least six months before. The two marks now say so: `resolve_calendar_lens` is deprecated since 0.69.0 and its `DeprecationWarning` says it leaves in onlyworlds 1.0 (use `resolve_calendar`), and the `version` key of `KindLayout` and `AroundLayout` is deprecated since 0.133.0 and leaves in onlyworlds 1.0 (read `method`), where it said it would leave with the npm SDK's 5.0. Only those texts change.

## 0.156.4 (2026-11-27)

- **Fixed: `calendar.validate_calendar_config` names the profile's size bounds.** Since 0.156.0 the reader refuses a calendar past a bound (more than 256 eras, 64 months, a week of more than 64 steps or names, 16 festival days, an `except` longer than 8, a name or template longer than 256 characters, a year longer than 2^53 - 1 steps), but the validator said nothing about it. It now gives the npm SDK's words for each, such as `A calendar holds at most 256 eras`; a calendar with no months whose `year.steps` is past 2^53 - 1 included, which the npm SDK names from 4.212.2. Held to the npm SDK's validator on 3,000 randomized calendars near each bound, none differing.
Expand Down
Loading
Loading