Repository navigation
Fix dependency filtering and require pip 20.3 for inspection #909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tdstein
merged 14 commits into
main
from
symphony/posit-dev_rsconnect-python_899-38c6ab791ff8ed78
Nov 5, 2026
+348
−8
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
862ffaf
fix: correct requirement filtering for local installs
tdstein b5bac35
chore: merge main into symphony/posit-dev_rsconnect-python_899-38c6ab…
tdstein 89646d8
fix: preserve non-hierarchical editable VCS URLs
tdstein c22b5a9
chore: merge main into symphony/posit-dev_rsconnect-python_899-38c6ab…
tdstein d415b5a
fix: report local editable dependencies during inspection
tdstein 0811d19
docs: follow changelog issue reference convention
tdstein 5fd7a61
fix: reject editable dependencies Connect cannot reach
tdstein 3c40725
fix: satisfy pyright for optional requirements contents
tdstein 6b84f81
chore: merge main into symphony/posit-dev_rsconnect-python_899-38c6ab…
tdstein e89efee
fix: exclude both rsconnect distribution names
tdstein e9b4592
fix: require pip 20.3 for dependency inspection
tdstein e69d643
fix: combine dependency filtering and pip compatibility fixes
tdstein 019dbd3
refactor: derive pip freeze exclusions from excluded_distributions
tdstein 216438d
Merge remote-tracking branch 'origin/main' into symphony/posit-dev_rs…
tdstein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the inspector runs in the users venv so putting things outside of the standard library here could crash the inspection.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be possible to replace the
packagingcalls with standard library code?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 #889 removes this constraint. The inspector will run on the CLI's own interpreter, where
packagingis always installed, and receive the project's interpreter as--python. The project's interpreter only gets asked for three things, and none of them imports rsconnect or its dependencies:<python> -I -c "import sys; print(...)"<python> -m pip --version(optional; we fall back when pip is missing)<python> -m pip freeze, oruv pip freeze --python <python>I ran all three in a venv with neither rsconnect nor
packaging, and they work. That also fixes the relateduv tool installproblem, where the project's venv doesn't have rsconnect at all.Until #889 lands, the risk from this PR is small. The inspector runs as
<python> -m rsconnect..., so rsconnect must already be installed there.packagingis a declared dependency of the released 1.32.0, so a normal install already brings it along. The only setups that newly break are rsconnect importable without its dependencies (--no-deps,PYTHONPATH, a source checkout) on Python ≥ 3.11. On Python ≤ 3.10 the inspector already fails there ontoml. Given that, I'd rather keeppackagingthan write stdlib code to parse requirements.