Open timothyjlaurent opened 4 months ago
You'll want to provide a way to reproduce this eg a GitHub repository and instructions
I'm on macOS (poetry 1.8.2, python 3.10)
I tested having something like this:
Then on test
project, I ran poetry install --only main
.
It installed python-json-logger
without issue. I also did the same path dependency with develop
set to true as well.
@timothyjlaurent Can you show the output of poetry show --tree
after the installation of poetry install --only main
?
Description
We have a poetry monorepo that uses relative imports for sharing code. We recently noticed that some non-optional dependencies in the main dependency section aren't being installed unless we install all deps with
poetry install
.In CI we like to install only the main deps and then install the dev deps and extras for testing the code.
packageA/pyproject.toml
logging/pyproject.toml
so python-json-logger shows up as expected in packageA's poetry.lock:
But when installing with
poetry install --only main
python-json-logger
isn't installed, only when installingpoetry install
is it installed.Workarounds
run
poetry install
but then all dev dependencies get baked in which isn't what we want.Poetry Installation Method
pipx
Operating System
Debian in docker
Poetry Version
Poetry (version 1.8.2)
Poetry Configuration
Python Sysconfig
Example pyproject.toml
No response
Poetry Runtime Logs