Skip to content

poetry export doesn't include non-optional groups #299

@jonapich

Description

@jonapich

The poetry export --help description mentions this:

--with=WITH The optional dependency groups to include.

However, it must also be used to include non-optional groups.

e.g.:

Given the following example pyproject.toml: https://gist.github.com/jonapich/80b8090d610da02d5de5137ca96da253

I get the following trace:

> poetry export | grep tenacity
(empty)

> poetry export --with my | grep tenacity
tenacity==8.2.2 ; python_version >= "3.8" and python_version < "3.12" \

I'm on poetry 1.5.1 on Windows, but it was reproduced on Linux as well.

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