Skip to content

Select Python dependency sources consistently - #979

Open
tdstein wants to merge 9 commits into
mainfrom
symphony/posit-dev_rsconnect-python_975-1791be2534981672
Open

tdstein wants to merge 9 commits into
mainfrom
symphony/posit-dev_rsconnect-python_975-1791be2534981672

Conversation

@tdstein

@tdstein tdstein commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Explicit snapshot → Content Python
Otherwise → CLI requirements file → configured requirements file → uv.lock → static pyproject dependencies → requirements.txt

Validate locks offline and refresh generated requirements separately from user-managed files. Manifest overwrite refreshes generated output and preserves supplied requirements bytes.

Evidence

  • Before the merge resolution, four manifest writer hunks conflicted with main.
  • After resolution, 61 focused source selection and manifest overwrite tests passed on Python 3.13. Ruff formatting and lint passed.

Merge Danger

The change is reversible. Automatic selection changes for Python deployments and manifest generation when projects contain multiple dependency sources.

Closes #975.

Closes #975

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://posit-dev.github.io/rsconnect-python/pr-preview/pr-979/

Built to branch gh-pages at 2026-11-19 16:53 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

tdstein

This comment was marked as outdated.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
11430 10131 89% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/bundle.py 90% 🟢
rsconnect/environment.py 93% 🟢
rsconnect/log.py 76% 🟢
rsconnect/main.py 89% 🟢
rsconnect/pyproject.py 100% 🟢
rsconnect/subprocesses/inspect_environment.py 71% 🟢
TOTAL 87% 🟢

updated for commit: 1149492 by action🐍

@tdstein tdstein changed the title Select Python dependency sources consistently feat: select Python dependency sources consistently Nov 16, 2026
@tdstein
tdstein requested review from amol- and joshyam-k November 16, 2026 18:26
tdstein and others added 5 commits November 17, 2026 14:02
Write generated requirements back to requirements.txt instead of
requirements-connect.txt, and warn before replacing an existing file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tdstein tdstein changed the title feat: select Python dependency sources consistently Select Python dependency sources consistently Nov 19, 2026

This branch has not been deployed

No deployments
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.

Evaluate Python dependency source precedence

1 participant