Skip to content

export requirements.txt - local dependency file exported as editable #897

@visciang

Description

@visciang
  • OS version and name: Linux
  • Poetry version: 1.0.0a2

Issue

poetry export --without-hashes --format=requirements.txt ouputs local file dependencies as "editable":

-e local/path/package.whl

This is reported as an error when parsed by pip install:

local/path/package.whl should either be a path to a local project
or a VCS url beginning with svn+, git+, hg+, or bzr+

The correct format should not include the -e part (ref. https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-format).

NOTE:
This is covered in test_exports.py https://github.com/sdispater/poetry/blob/develop/tests/utils/test_exporter.py#L353

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions