posit-dev / posit-dev/rsconnect-python

Replace --python option with a --env option

Open
#656 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
37
Forks
28
Avg merge
1d 3h
Merged PRs (30d)
7

Description

See https://github.com/posit-dev/rsconnect-python/pull/655 for prior discussion.

As --python doesn't influence anymore the python interpreter version used to run the content, the only reason why the option is still around is to inspect a specific python environment to replicate the libraries installed there (generate requirements.txt based on that environment).

The naming of the option at that point is confusing, and renaming it to --env which points to the python environment to inspect would better comunicate the intent of the option.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the prior discussion in pull request #655, then search the CLI definitions and tests for --python. Rename the option and its help text to --env while preserving environment inspection and requirements.txt generation; done means the new option works and references to the old name are updated.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.