python-poetry / python-poetry/poetry

Prompt before recreating a broken virtualenv

Open
#2,776 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature status/triage
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

When poetry detects a broken virtual environment it will currently delete it and recreate it. While that's great, this operation is destructive. In such cases, it would be best to prompt the user before to ensure they are okay with this happening (at least in an interactive context).

It would also be useful to add more details as to what prompts poetry to think that the virtual environment is broken so that the user may try to manually fix the issue.

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 locating Poetry's broken virtual-environment detection and recreation flow, then inspect how interactive prompts are handled. The change is complete when interactive users are warned before deletion and shown why the environment was considered broken, while the non-interactive behavior is defined and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.