Uh oh!
There was an error while loading. Please reload this page.
GH-49452: [Python] Reintroduce docstring injection for stubfiles - #49453
Conversation
rok
commented
Mar 9, 2026
@raulcd this is ready for review |
raulcd
commented
Mar 10, 2026
@github-actions crossbow submit wheel*-cp313-* |
Revision: f885111 Submitted crossbow builds: ursacomputing/crossbow @ actions-c1678cd8dd |
rok
commented
Mar 10, 2026
@github-actions crossbow submit wheel*-cp313-* |
Revision: 10509c4 Submitted crossbow builds: ursacomputing/crossbow @ actions-f3f679ce77 |
rok
commented
Mar 12, 2026
Thanks for the review @raulcd, I've pushed some changes, can you check if this now makes sense? |
rok
commented
Mar 12, 2026
@kou could you do a pass here too? Especially feedback on CMake changes would be valuable :). |
| message(WARNING "PyArrow stub source directory not found at ${PYARROW_STUBS_SOURCE_DIR}; " | ||
| "wheel will be built without .pyi files.") |
There was a problem hiding this comment.
This will happen for everything not only for wheels, I am wondering whether we want this warning at all we already have the checks for the wheels and we are setting PYARROW_REQUIRE_STUB_DOCSTRINGS on those. The validation of the wheel will fail if files are not present and this warning will appear every time we build locally now. Probably we can just remove the else case here?
| message(WARNING "PyArrow stub source directory not found at ${PYARROW_STUBS_SOURCE_DIR}; " | |
| "wheel will be built without .pyi files.") | |
| message(WARNING "PyArrow stub source directory not found at ${PYARROW_STUBS_SOURCE_DIR}; " | |
| "PyArrow will be built without .pyi files.") |
There was a problem hiding this comment.
Good point! I removed the else clause now, so we don't get too much noise.
Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com>
rok
commented
Mar 13, 2026
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 0a2a0c7. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 37 possible false positives for unstable benchmarks that are known to sometimes produce them. |
apache#49453) ### Rationale for this change Warning: should not be merged before apache#49259. See apache#49452 and apache#48618 ### What changes are included in this PR? Adds a wheel build time script to populate stubfiles with runtime docstrings. ### Are these changes tested? Not yet. ### Are there any user-facing changes? Users will get docstrings. * GitHub Issue: apache#49452 Lead-authored-by: Rok Mihevc <rok@mihevc.org> Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Rok Mihevc <rok@mihevc.org>
apache#49453) ### Rationale for this change Warning: should not be merged before apache#49259. See apache#49452 and apache#48618 ### What changes are included in this PR? Adds a wheel build time script to populate stubfiles with runtime docstrings. ### Are these changes tested? Not yet. ### Are there any user-facing changes? Users will get docstrings. * GitHub Issue: apache#49452 Lead-authored-by: Rok Mihevc <rok@mihevc.org> Co-authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Rok Mihevc <rok@mihevc.org>
Rationale for this change
Warning: should not be merged before #49259.
See #49452 and #48618
What changes are included in this PR?
Adds a wheel build time script to populate stubfiles with runtime docstrings.
Are these changes tested?
Not yet.
Are there any user-facing changes?
Users will get docstrings.