Skip to content

Optional dependencies are generated as required in wheel #2357

@cutwater

Description

@cutwater
  • 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

Optional dependencies are generated as required dependencies in wheel package produced by executing poetry build. Dependency list in sdist package does not include optional dependencies as expected. Please refer to the gist above for more details.

Steps to reproduce the issue:

$ poetry new example
$ cd example
$ poetry add --optional psycopg2
$ poetry build

Metadata

Metadata

Assignees

Labels

area/build-systemRelated to PEP 517 packaging (see poetry-core)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