Skip to content

pytype: Add version 2024.10.11 - #2168

Merged
luhenry merged 1 commit into
mainfrom
pytype
Sep 21, 2026
Merged

luhenry merged 1 commit into
mainfrom
pytype

Conversation

@luhenry

@luhenry luhenry commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Compiles pytype's typegraph solver, a pybind11 C++ extension. Upstream publishes no riscv64 wheel.

Mirrors upstream's build.yml.

Differs from upstream

  • cibuildwheel replaces build_scripts/wheels/manylinux.sh - the same pip wheel plus auditwheel repair.
  • libcst and msgspec resolve from our registry - neither ships a riscv64 wheel on PyPI.

Matrix: cp312 only - pytype refuses to run on an interpreter past 3.12, which is why upstream ships cp310-cp312.

Testing

  • Upstream tests a CMake build tree, not the wheel; this runs the wheel's own unit tests with pytest --pyargs pytype, plus a one-file run of the pytype command.
  • The pytype.tests helpers a third of those tests import are excluded from the wheel, so they are staged beside it.
  • Deselected: main_test.py, test_error_doc and two typeshed tests, which read files that only exist in a git checkout; test_die, which needs a mkdir to fail and the container is root; and two serialize_ast tests, which fail identically on an x86 checkout of the same tag.

License: Wheel bundles typeshed stubs and a CPython-derived umarshal.py (Apache-2.0 and PSF-2.0), exactly as upstream's own wheels do.

Built on cp312; 1746 passed, 22 skipped.

@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-21 13:54 UTC

Builds the pybind11 typegraph extension from the upstream checkout with
cibuildwheel, mirroring the manylinux_wheels job of upstream's build.yml.
Tests run the wheel's own unit tests with the pytype.tests helpers staged
alongside, since upstream excludes them from the distribution.
@luhenry
luhenry marked this pull request as ready for review September 21, 2026 13:09
luhenry added a commit that referenced this pull request Sep 21, 2026
CI green on PR #2168: the cp312 riscv64 wheel builds from the upstream
checkout with cibuildwheel and the wheel's own unit suite passes (1746
passed, 22 skipped), with the publish job dry-running cleanly.

Three reusable findings from the port:

512 - pytest's --ignore/--ignore-glob are silently inert under
      --pyargs <pkg>; --deselect works and its nodeids are relative to
      the package directory, not the rootdir pytest prints.
513 - a wheel can carry the test modules but not the helper package
      they import; stage the helpers with test-sources and copy them
      into the installed package from test-command.
514 - a tool that models a target Python version caps the matrix by
      itself, invisibly to a build-and-import check.
luhenry added a commit that referenced this pull request Sep 21, 2026
@luhenry
luhenry merged commit 7d3270c into main Sep 21, 2026
9 checks passed
@luhenry
luhenry deleted the pytype branch September 21, 2026 13:46
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