Skip to content

Add all stable Pyrefly releases and use 1.5.1 in the examples - #3

Closed
kinto0 wants to merge 1 commit into
pyrefly-org:mainfrom
kinto0:bump-pyrefly-1.5.1
Closed

kinto0 wants to merge 1 commit into
pyrefly-org:mainfrom
kinto0:bump-pyrefly-1.5.1

Conversation

@kinto0

@kinto0 kinto0 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • What: Add the release checksums of every stable Pyrefly release from 1.2.0 to 1.5.1 to pyrefly/private/versions.bzl: 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.5.0, 1.5.1. Use 1.5.1 in examples/demo, the README, the docs, and the verify_toolchain_resolution.py default.
  • Why: The ruleset only knows Pyrefly 1.2.0. To use any newer version today, a user must pass the SHA-256 of all six release assets to pyrefly.toolchain(sha256 = {...}).
  • Scope: Releases before 1.2.0 do not have bazel-check, so this PR leaves them out. Prereleases (-dev.N) also stay out; they still work through the sha256 path.

The bazel-check interface did not change between 1.2.0 and 1.5.1, so the rules need no change.

Test plan

macOS arm64, Bazel 9.2.0:

  • I downloaded all 54 assets (9 versions × 6 platforms). Each SHA-256 matches the release's published .sha256 file. The regenerated 1.2.0 entry is identical to the existing one.
  • python tests/verify_toolchain_resolution.py --output-group=pyrefly --pyrefly-version=<v>: passes for each of the 9 versions, with the real binary running in darwin-sandbox.
  • python -m unittest discover -s tests -p "test_*.py": OK
  • python tests/verify_demo.py: pass
  • buildifier -mode=check -r .: clean
  • Real binary, in examples/demo. The resolved toolchain binary reports pyrefly 1.5.1.
    • bazel build --config=pyrefly --keep_going //...: pass, same diagnostics JSON as 1.2.0
    • bazel build --config=pyrefly //:type_error: same diagnostic as 1.2.0:
      ERROR `Literal['not an int']` is not assignable to `int` [bad-assignment]
        --> type_error.py:15:14
      

The checked-in release metadata only includes Pyrefly 1.2.0. To use a newer
Pyrefly, users must pass the SHA-256 of every release asset to
pyrefly.toolchain(sha256 = ...).

Add the checksums of every stable release from 1.2.1 to 1.5.1 to
pyrefly/private/versions.bzl. Pyrefly 1.2.0 is the first stable release with
bazel-check, so older releases are not useful here. Prereleases stay on the
sha256 path. Use 1.5.1 in the demo, the README, the docs, and the toolchain
resolution test.
@kinto0
kinto0 force-pushed the bump-pyrefly-1.5.1 branch from 7a931fe to fde1ef4 Compare December 2, 2026 17:49
@kinto0 kinto0 changed the title Add Pyrefly 1.5.1 and use it in the examples Add all stable Pyrefly releases and use 1.5.1 in the examples Dec 2, 2026
@kinto0

kinto0 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Replaced by #6, which is stacked on #5.

@kinto0 kinto0 closed this Dec 2, 2026
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