Skip to content

Poetry install with path dependencies and entry points is unable to load the package #3930

@kalyangvs

Description

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

Issue

If there are path dependencies and an entry point present as poetry plugin, the entry point is unable to be loaded.

poetry new aa
poetry new bb
poetry new cc
cd cc
sed -i  '/\python*/a  aa = {path = "../aa"} \nbb = {path = "../bb"}' pyproject.toml
echo '
[tool.poetry.plugins."service"]
"cc" = "cc.service:CCService"' >> pyproject.toml
poetry install

In python:

import pkg_resources
for entry_point in  pkg_resources.iter_entry_points("service"):
    service = entry_point.load()

results in pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid URL: ../aa

Please look into the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions