python-poetry / python-poetry/poetry

Support for `--config-settings` options for `poetry add --editable`

Open
#8,909 10 comments 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

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

Feature Request

pip install -e supports the --config-settings argument when installing a package as editable, like so:

pip install -e . --config-settings editable_mode=strict

However, I cannot use it when invoking poetry add --editable

The reason this feature would be useful is because both Pylance and PyCharm require editable packages to be installed with editable_mode=strict or editable_mode=compat for intellisense to work:
https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#editable-install-modules-not-found
https://stackoverflow.com/a/76301809

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 poetry add --editable command and compare its behavior with the documented pip install -e . --config-settings editable_mode=strict example. The work is done when editable additions accept the requested --config-settings options and support the Pylance and PyCharm use case described in the issue.

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.