python-poetry / python-poetry/poetry

poetry shell/run automatically installs current pyproject.toml

Open
#5,134 1 comment 6 reactions 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

Working in a monorepo leads to frequent changes, and currently one has to remember to rerun poetry install when changing branches. I did not find a way to let poetry shell or poetry run do a check if its venv is up2date with the lockfile, and perform an install in case it is not. That would be a nice convenience feature.

  • 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

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 tracing the implementations of poetry shell and poetry run, then inspect how the environment is compared with the lockfile and how poetry install is invoked. Done means both commands detect an out-of-date virtual environment and perform the required install, including when branches change in a monorepo.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.