You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d536bbf
Browse filesBrowse the repository at this point in the historyBrowse files
chore(release): bump KCL to v0.13.2 and support CPython 3.15
kcl-lang/kcl v0.13.2 is published, so the runtime pin and every binding's
package version move with it. The prebuilt binaries every binding vendors
come from that release, so the two move together (see docs/lib-vendoring.md).
- KCL_VERSION in go/install/install.go and the package version in every
binding go from 0.13.1 to 0.13.2.
- The kcl-* git dependencies move with them. They are unpinned to the
default branch, whose workspace version is already 0.13.2, so the 0.13.1
requirement no longer resolved -- that part is a build fix, not cosmetics.
- lua/kcl_lib-0.13.1-3.rockspec becomes kcl_lib-0.13.2-3.rockspec.
publish-luarocks.yaml globs for it by version and errors unless exactly
one matches.
Comments recording what changed *in* v0.13.1 are left alone -- historical,
not stale.
The Python binding gains CPython 3.15 support (#404), which it could not
have before: pyo3 was pinned to =0.20.2, whose documented ceiling is 3.12.
cp313 and cp314 only worked because the workflow also set
PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1.
- pyo3 goes to 0.30, the first line with final 3.15 support (0.29 had it
as beta). The =0.20.2 pin existed for PyO3/maturin#1960, closed in Feb
2024 once maturin 1.5 stopped detecting too-new interpreters, so it had
been constraining nothing for two years.
- The source change is one line: #[pymodule] takes &Bound<'_, PyModule>
under the post-0.21 API. The crate is two #[pyfunction]s, so that
migration is the entire surface.
- maturin's floor goes from >=1.5 to >=1.14, the first release that knows
about 3.15; CI pins v1.15.0.
- requires-python goes from >=3.7 to >=3.10. protobuf 7.x -- the wheel's
only runtime dependency -- requires >=3.10, so no build below 3.10 could
ever install. maturin skips interpreters below requires-python during
--find-interpreter rather than erroring, so the CPython 3.9 in the Linux
images simply stops being probed.
The wheel jobs needed three different fixes to produce a cp315 wheel on
every platform, and none of them is a version matrix:
- Windows stops at 3.14, so that job runs actions/setup-python for 3.15.
setup-python adds to what maturin discovers rather than replacing it, so
3.10-3.14 are still built.
- Linux aarch64 is a cross build, so maturin-action runs it in
ghcr.io/rust-cross/manylinux2014-cross:aarch64 rather than the native
manylinux image. That image does carry 3.15 and 3.15t, but
--find-interpreter never offers them: it reports 3.10 through 3.14, 3.14t
and PyPy 3.11 and stops. Naming them explicitly (-i python3.15, -i
python3.15t) resolves, so the aarch64 leg builds those two wheels in
separate steps. Without them aarch64 Linux ships no 3.15 wheel at all.
- Linux x86_64 and macOS need nothing; their images already carry 3.15.
An earlier revision of this PR added a python: [default, "3.15"] matrix
dimension to all the wheel jobs. That was redundant for x86_64 and macOS
and actively harmful: macOS produced a byte-identical cp315 wheel under two
artifact names, and those collide once the release job merges artifacts.
The dimension is gone; the test job keeps its 3.x/3.15 matrix, where the
version selects what is exercised rather than what is packaged.
The release job's artifact download changes shape too. It listed four
artifacts by exact name, which would have needed hand-editing for every
new Python version; it is now a single pattern: wheels-*-<run_id> download
with merge-multiple. The wheels- prefix deliberately excludes the sdist
artifact, which was never published either before or after.
The published set goes from 28 files to 29: every platform gains 3.15, and
the cp37/cp38/cp39 and older PyPy builds that protobuf 7.x made
uninstallable are gone.
Signed-off-by: Peefy <xpf6677@163.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments