Skip to content

Local path in wheel metadata seems wrong #4709

@Hartorn

Description

@Hartorn
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Docker container Ubuntu 18.04
  • Poetry version: 1.1.11
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

We have a pyproject.toml with deps towards local non-poetry python project, declared in subfolder.

local_package = {path = "./subfolder/local_package", develop = true}

Everything is working fine (install, lockfile, and so on), except when creating a package.
I built the wheel using poetry build, and when trying to install the package with pip afterwards, I got an error

  File "/poetry_cache/virtualenvs/hawk-AVX97199-py3.6/lib/python3.6/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3103, in __init__
    raise RequirementParseError(str(e))
pip._vendor.pkg_resources.RequirementParseError: Invalid URL: subfolder/local_package

I tried the poetry export function (worked fine), and noticed the local deps are written as vaedataset @ file:///full/path/to/subfolder/local_package

I checked the inside of the wheel and it's written in the metadata Requires-Dist: local_package @ subfolder/local_package
I think the error comes from here, shouldn't it be something similar, like an URI file://./subfolder/local_package or something like this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions