-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: Poetry installs setuptools-scm and setuptools #26932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From a quite quick check there is no obvious reason for this. Both those packages are added a build-only dependencies Lines 1 to 9 in 11aa656
But that has not changed between 3.7.2 and 3.8.0. This leaves the option that |
This should only be true for source installs I spot checked a wheel from pypi, and setuptools does not appear in the METADATA file there. In a fresh virtualenv, pip does not pull in setuptools/setuptools-scm. Certainly we have logic which does add setuptools-scm as a dependency (and recently added setuptools explicitly because of version conflicts), but that is only added if Lines 346 to 349 in 11aa656
But that logic is not new for 3.8. From reading the poetry faq it looks like they do the pypi JSON API. and from looking at that, I do see Looking at the versioned json api:
This traces back to the |
I think the action item here is to set the environment variable |
Closed by #27022 |
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
Actual outcome
Expected outcome
This is the outcome when installing matplotlib 3.7.2 with
poetry add 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
The text was updated successfully, but these errors were encountered: