Skip to content

Poetry export does not export local editable requirements correctly #145

@pawelrubin

Description

@pawelrubin
  • 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).

Issue

Local editable packages are not exported correctly by poetry. Thus, pip install -r requirements.txt fails with error:

ERROR: Invalid requirement: 'example-pkg @ /Users/pawelvewd/projects/test_poetry/example_pkg' (from line 3 of requirements.txt)
Hint: It looks like a path. File 'example-pkg @ /Users/pawelvewd/projects/test_poetry/example_pkg' does not exist.

Expected result

-e ./example_pkg["foo"] ; python_version >= "3.9"

Current result

example-pkg @ /Users/pawelvewd/projects/test_poetry/example_pkg; python_version >= "3.9"
  • the path should be relative IMO
  • Poetry does not export extras
  • Poetry does not export develop = true (editable mode)

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