Skip to content

Poetry does ignores extras_require packages defined in setup.py #3180

Closed

Description

@NixBiks
  • 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).
  • OS version and name: both debian and macOS
  • Poetry version: 1.1.2

Issue

If I run the following poetry add 'camelot-py[cv]' then I correctly get the following in pyproject.toml

[tool.poetry.dependencies]
python = "^3.8"
camelot-py = {extras = ["cv"], version = "^0.8.2"}

But opencv-python is not installed as stated in extras_require in setup.py. If I use pip install 'camelot-py[cv]' then it works as expected

Activity

  1. added
    kind/bugSomething isn't working as expected
    status/triageThis issue needs to be triaged
    on Oct 12, 2020
  2. tamuhey commented on Oct 12, 2020

    @tamuhey
    Contributor

    I've confirmed this bug with poetry add modin[dask]

  3. tamuhey commented on Oct 12, 2020

    @tamuhey
    Contributor

    It doesn't happen with poetry=1.0.10

  4. abn commented on Oct 12, 2020

    @abn
    Member

    Can you please try the fix at #3147.

    Using pipx

    pipx install --suffix=@3147 'poetry @ git+https://github.com/python-poetry/poetry.git@refs/pull/3147/head'

    Using a container (podman | docker)

    podman run --rm -i --entrypoint bash python:3.8 <<EOF
    set -e
    python -m pip install -q git+https://github.com/python-poetry/poetry.git@refs/pull/3147/head
    python -m poetry new foobar
    pushd foobar
    sed -i /pytest/d pyproject.toml
    python -m poetry add 'camelot-py[cv]'
    EOF
  5. added and removed
    status/triageThis issue needs to be triaged
    kind/bugSomething isn't working as expected
    on Oct 12, 2020
  6. abn commented on Oct 12, 2020

    @abn
    Member

    Duplicate of #3129

  7. github-actions commented on Mar 2, 2024

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  8. locked as resolved and limited conversation to collaborators on Mar 2, 2024
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions