Skip to content

Conversation

@amol-
Copy link
Collaborator

@amol- amol- commented Dec 15, 2025

Intent

Allow users to replicate locally the environment used by connect to run a specific content.

Closes #743

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change

Approach

Leverage the "lockfile" api provided by connect to retrieve the snapshot of the environment connect is using to run packages and save it as a requirements file via a "content get-lockfile" command

Also expose a "content venv" command that uses that API to create a local environment.

Automated Tests

Directions for Reviewers

Checklist

  • I have updated CHANGELOG.md to cover notable changes.
  • I have updated all related GitHub issues to reflect their current state.
  • I have run the rsconnect-python-tests-at-night workflow in Connect against this feature branch.

@github-actions
Copy link

github-actions bot commented Dec 15, 2025

PR Preview Action v1.6.3

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

Built to branch gh-pages at 2025-12-17 13:39 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link

github-actions bot commented Dec 15, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5206 3953 76% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
rsconnect/actions_content.py 67% 🟢
rsconnect/api.py 76% 🟢
rsconnect/http_support.py 80% 🟢
rsconnect/main.py 68% 🟢
TOTAL 73% 🟢

updated for commit: 14fd80c by action🐍

@amol- amol- marked this pull request as ready for review December 16, 2025 17:04
@amol- amol- requested a review from toph-allen December 16, 2025 18:01
Copy link
Contributor

@mconflitti-pbc mconflitti-pbc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A UX observation but otherwise working as expected!

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.

support retrieving lockfile from connect

3 participants