python-poetry / python-poetry/poetry

Add local editable dependency, with remote backup?

Open
#8,450 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

Discussed in https://github.com/orgs/python-poetry/discussions/8366

Originally posted by Wyko August 25, 2023
Hey all,

I'm working on two projects. Project B imports Project A as a dependency. On my local machine, I can specify the folder with Project A in it using poetry add -e. This lets me develop both projects concurrently.

How do I do that, while at the same time putting the correct repo path of Project A as well? That way anyone who does pip install on Project B gets Project A too.

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 with the linked discussion and the behavior of poetry add -e; compare how Project B's dependency is represented for local development versus pip install. Define how a local editable source and a remote repository fallback should be recorded and installed, then verify both workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.