python-poetry / python-poetry/poetry

provide a simple way to force reinstalling local dependencies

Open
#7,349 6 comments 24 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

Feature Request

Given a pyproject.toml looking like this:

[tool.poetry.dependencies]
some-other-lib = {path = "../other_lib", develop=false}

It seems to me that poetry doesn't provide a way for me to "force reinstall" some-other-lib. If I for example have changes in that lib, how would I get those changes into my current poetry project's virtualenv?

I can remove+install, or bump the version of that lib - but that's of course cumbersome. It would be awesome if poetry provided something like
poetry update some-other-lib --force

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 how the poetry update command handles a local path dependency declared in pyproject.toml. Define the expected semantics of a force reinstall and verify them with a project using some-other-lib as a local dependency, including a case where that dependency has changed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.