Skip to content

[Bug]: Poetry installs setuptools-scm and setuptools #26932

@LehMaxence

Description

@LehMaxence

Bug summary

When adding matplotlib 3.8.0 to a poetry project, setuptools-scm and setuptools are installed and added to the list of dependencies. This was not the case with versions <= 3.7.2.

poetry version 1.6.1 was used.

Code for reproduction

poetry new poetry-demo
cd poetry-demo
poetry add matplotlib

Actual outcome

Using version ^3.8.0 for matplotlib

Updating dependencies
Resolving dependencies... (0.5s)

Package operations: 17 installs, 0 updates, 0 removals

  • Installing numpy (1.25.2)
  • Installing packaging (23.1)
  • Installing setuptools (68.2.2)
  • Installing six (1.16.0)
  • Installing tomli (2.0.1)
  • Installing typing-extensions (4.8.0)
  • Installing zipp (3.17.0)
  • Installing contourpy (1.1.1)
  • Installing cycler (0.11.0)
  • Installing fonttools (4.42.1)
  • Installing importlib-resources (6.1.0)
  • Installing kiwisolver (1.4.5)
  • Installing pillow (10.0.1)
  • Installing pyparsing (3.1.1)
  • Installing python-dateutil (2.8.2)
  • Installing setuptools-scm (8.0.3)
  • Installing matplotlib (3.8.0)

Writing lock file

Expected outcome

This is the outcome when installing matplotlib 3.7.2 with poetry add matplotlib==3.7.2 :

Updating dependencies
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/72/7d/2ad1b94106f8b1971d1eff0ebb97a81d980c448732a3e624bba281bd274d/matplotlib-3.7.2-cp310-cp310-macosx_10Resolving dependencies... Downloading https://files.pythonhosted.org/packages/72/7d/2ad1b94106f8b1971d1eff0ebb97a81d980c448732a3e624bba281bd274d/matplotlib-3.7.2-cp310-cp310-macosx_10Resolving dependencies... (1.0s)

Writing lock file

Package operations: 13 installs, 0 updates, 0 removals

  • Installing numpy (1.25.2)
  • Installing six (1.16.0)
  • Installing zipp (3.17.0)
  • Installing contourpy (1.1.1)
  • Installing cycler (0.11.0)
  • Installing fonttools (4.42.1)
  • Installing importlib-resources (6.1.0)
  • Installing kiwisolver (1.4.5)
  • Installing packaging (23.1)
  • Installing pillow (10.0.1)
  • Installing pyparsing (3.0.9)
  • Installing python-dateutil (2.8.2)
  • Installing matplotlib (3.7.2)

Additional information

No response

Operating system

Ubuntu, Windows

Matplotlib Version

3.8.0

Matplotlib Backend

No response

Python version

3.9.13

Jupyter version

No response

Installation

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions