-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
BUG: Python version constraints in releases causes issues for less strict downstream versions #19513
Comments
We had another issue with |
Yep! I saw that one while hunting to see if anyone reported something similar :) I think these two issues are not related except for that they are both encountered with Poetry. |
Exhaustively discussed in numpy/numpy#24810 and #17957 (I think) |
The solution in numpy/numpy#24962 was to remove the upper pin on the release branch. |
* this patch against our latest maintenance branch is related to scipygh-19513, and NumPy made a similar decision upstream in numpy/numpy#24962 * the discussions surrounding this are pretty confusing, but it seems like we may need to do it for resolvers like those used by `poetry`... * I suppose this increases the likelihood I have to do `1.11.4`, but it was looking somewhat likely anyway... [skip cirrus] [skip circle]
Alright, I'll probably unpin in |
* this patch against our latest maintenance branch is related to gh-19513, and NumPy made a similar decision upstream in numpy/numpy#24962 * the discussions surrounding this are pretty confusing, but it seems like we may need to do it for resolvers like those used by `poetry`... * I suppose this increases the likelihood I have to do `1.11.4`, but it was looking somewhat likely anyway... [skip cirrus] [skip circle]
This should be handled when I get |
Thank you! |
Describe your issue.
It looks like starting the 1.10.x series, the Python version upper bound is now set (
<3.12
in 1.10.x,<3.13
in 1.11.x).This causes problems when depending (including transitively) on scipy in a Poetry project whose python constraint is less strict.
I understand the desire to do this.
A negative consequence of this choice along with some other transitive dependencies' constraints (statsmodels not allowing scipy 1.9.2) results in poetry choosing scipy 1.6.1 for python >=3.10, and since there are no wheels a full build of scipy is attempted.
I can't install a newer version, because my project's (https://github.com/ibis-project/ibis) version constraints are wider than allowed by scipy.
Reproducing Code Example
Create a minimal poetry project with
python = "^3.9"
and then runError message
SciPy/NumPy/Python version and system information
The text was updated successfully, but these errors were encountered: