Skip to content

Request: poetry add <package> --markers="<environment marker>" #2425

@mickeykkim

Description

@mickeykkim
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

poetry add does not currently accept an option to set a marker, e.g.:

poetry add smbus2 --markers="platform_machine == 'armv7l'" ->

smbus2 = {version = "^0.3.0", markers = "platform_machine == 'armv7l'" }

This would be useful to add a dependency without having to write it in pyproject.toml manually and running poetry update, which may undesirably update other dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliRelated to the command linekind/featureFeature requests/implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions