Skip to content

fix: quickstart builds the venv on the running Python - #864

Merged
nealrichardson merged 1 commit into
mainfrom
fix-quickstart-python
Oct 14, 2026
Merged

nealrichardson merged 1 commit into
mainfrom
fix-quickstart-python

Conversation

@nealrichardson

Copy link
Copy Markdown
Contributor

The integration tests on main are failing (example). In 13 test_quickstart.py tests, uv sync fails while building pyarrow from source.

Cause: without --python, quickstart writes requires-python = ">=3.13" (based on the running interpreter), then runs a bare uv venv. uv then uses the newest Python that satisfies that range. In CI, posit-dev/with-connect had just installed a uv-managed CPython 3.15 for its own tool. pyarrow has no 3.15 wheels yet, so uv tried to build it from source and failed. Users who have a newer Python installed would hit the same problem.

Fix: without --python, quickstart now runs uv venv --python <sys.executable>, so the venv uses the same interpreter that requires-python came from. If --python is given, uv still picks an interpreter from requires-python, as before.

Also adds tests for the interpreter passed to uv venv and a changelog entry.

🤖 Generated with Claude Code

Without --python, uv venv picked the newest Python satisfying
requires-python. In CI that was a uv-managed 3.15, which has no pyarrow
wheels, so the streamlit quickstart tests failed building from source.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-10-14 13:45 UTC

@nealrichardson
nealrichardson requested a review from amol- October 13, 2026 22:15
@github-actions

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8957 7733 86% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/quickstart/quickstart.py 98% 🟢
TOTAL 98% 🟢

updated for commit: 17c5af9 by action🐍

@nealrichardson
nealrichardson merged commit 9e83864 into main Oct 14, 2026
27 checks passed
@nealrichardson
nealrichardson deleted the fix-quickstart-python branch October 14, 2026 13:44
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.

3 participants