Repository navigation
fix: import without the uv Python module - #938
Merged
Merged
Conversation
tdstein
added a commit
that referenced
this pull request
Nov 9, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
joshyam-k
approved these changes
Nov 9, 2026
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tdstein
force-pushed
the
fix-optional-uv-module
branch
from
November 9, 2026 19:34
1cd2638 to
286ab94
Compare
tdstein
enabled stacked auto-merge (squash)
November 9, 2026 19:35
tdstein
disabled stacked auto-merge
November 9, 2026 19:35
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rsconnect 1.33.0 doesn't import when the
uvexecutable is installed without its Python module. On conda-forge,uvships only the binary, so the 1.33.0 feedstock build fails itsimport rsconnecttest withModuleNotFoundError: No module named 'uv'(conda-forge/rsconnect-python-feedstock#62)._uv_bin()now importsuvwhen it's called. If the module is missing, it returns"uv"fromPATH, which is the fallback it already used when the bundled binary is missing. #920 added the top-level import that caused this.Tests:
test_cli_imports_without_uv_moduleimportsrsconnect.mainin a subprocess with theuvmodule blocked. It fails on 1.33.0 and passes with this change.test_uv_freeze_filters_distributions_and_rewrites_editable_file_urlsnow also covers freezing an environment with uv fromPATHwhen the module is missing.uv.find_uv_bindirectly, sincersconnect.environmentno longer has auvattribute.Stacked on #937, which adds back the
[Unreleased]changelog section.🤖 Generated with Claude Code