Skip to content

Commit 8ed6b71

Browse files
authored
test: allow libcst build on Python 3.15 in import-profiler workflow (#17726)
This PR resolves a CI failure in the `import-profiler` workflow when building Rust-based dependencies (such as `libcst`) on Python 3.15 (`3.15.0-beta.3`). `pyo3` currently rejects Python 3.15 builds by default because Python 3.15 is newer than PyO3 0.26.0's maximum recognized version (3.14). Setting `PYO3_USE_ABI3_FORWARD_COMPATIBILITY="1"` allows building `libcst` against Python 3.15 using PyO3's stable ABI forward compatibility mode. This matches the existing workaround configuration in [.github/workflows/gapic-generator-tests.yml](file:///.github/workflows/gapic-generator-tests.yml#L25). Fixes #<535231604> 🦕
1 parent 22c5304 commit 8ed6b71

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/import-profiler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ jobs:
3232
TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref }}
3333
TEST_TYPE: import_profile
3434
PY_VERSION: "3.15"
35+
# Workaround: Allows libcst to compile on Python 3.15+ while PyO3 catches up
36+
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: "1"
3537
run: |
3638
ci/run_conditional_tests.sh

0 commit comments

Comments
 (0)