Search code examples
python-poetry

Does entry_points declared using [tool.poetry.dependencies] are supposed to be available in "sub-projects"


Let's say I have a project foo with:

[tools.poetry.scripts]
foo-cli = 'foo:main'

and a project bar with:

[tool.poetry.dependencies]
python = "^3.7"
bar = {path = "../foo"}

Is foo-cli supposed to be available in a virtualenv where bar is installed using poetry install (seems to not be the case so far) ?


Solution

  • My project was started using an older version of poetry, remove and recreate the virtual envs fixed the issue.