Skip to content

Allow relative paths when specifying local dependencies #340

Description

@kfchou
  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • OS version: Ubuntu 20.04.6 LTS
  • Poetry (version 2.1.2)
  • Python version: 3.10

Issue:

Sort of a follow up to #145

my pyproject.toml file specifies a local dependency:

[tool.poetry.dependencies]
my_pkg = {path = "../../../my_pkg", develop=true}

The poetry.lock file specifies my_package with a relative path, which is correct.

But running poetry export --output requirments.txt results in

# requirements.txt
-e file:///full/path/to/my/local/dependency/my_pkg; 

this requirement.txt becomes unusable in CI due to the absolute path. There should be an optional to make the path in requirements.txt local path instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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