poetry icon indicating copy to clipboard operation
poetry copied to clipboard

Main dependency shadows dev-dependency of local package

Open DivyanshuBhoyar opened this issue 1 year ago • 0 comments

Description

Main dependencies:

image

Dev dependencies:

image

Same dependencies re-declared in dev group, with develop = True wont be installed in editable mode using poetry install.

My usecase is:

In prod i run, poetry install --no-dev In local development: poetry install

but it installs the package in non editable mode. I have tried --dev-only but it removes the main dependencies. Is this expected?

Is there any way to install all the dependencies + override in dev mode for overlapping (editable) dependencies ?

Workarounds

Poetry Installation Method

install.python-poetry.org

Operating System

Ubuntu 22.04

Poetry Version

1.6.1

Poetry Configuration

-

Python Sysconfig

-

Example pyproject.toml

-

Poetry Runtime Logs

-

DivyanshuBhoyar avatar Jun 17 '24 08:06 DivyanshuBhoyar