python-poetry / python-poetry/poetry
poetry shell/run automatically installs current pyproject.toml
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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