-
Notifications
You must be signed in to change notification settings - Fork 20
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
how can I deal with unsupported python versions in my locked dependencies? #1116
Comments
@aryarm as a work around I did this:
|
@patrick91, great thanks! I'll try it out can you say a bit more about why this works? |
@aryarm |
ah, I see! thanks but I suppose the downside of this would be that none of the other dependencies would be locked, right? |
ok, I think I found a better approach to the problem using Nox's parametrization of python. Will this also work with |
from cjolowicz/nox-poetry#1116 (comment) since py3.11 is the most recent version we support anyway, so it's ok if it uses the most recent versions of all our dependencies
In case anyone else runs into this issue, here is my current workaround, which works only with poetry 2.0+ and poetry-plugin-export 1.9+
Now, you should be good to go! Unfortunately, running |
New updateI finally found the perfect solution! This one is a lot less hacky than the last one. Once again, this will only work with poetry 2.0+ and poetry-plugin-export 1.9+ https://github.com/orgs/python-poetry/discussions/10142#discussioncomment-12050625 The answer is to use |
Use-case
I am trying to test my project against different versions of python. Unfortunately, one of the dependencies in my lock file only supports a subset of the python versions that I'd like to test.
For example, in my particular situation, I'd like to test my project against python 3.7 and 3.11.
numpy
is a dependency of my project.My lock file contains
numpy
v1.21.1, which is compatible with python 3.7 but not 3.11. I could upgrade my lock file to a version compatible with 3.11 (likenumpy
v1.23.2), but unfortunately, that version wouldn't be compatible with 3.7Feature request
I would like to be able to do something like this:
But I think this will fail because pip does not allow for overriding constraints files like this.
Is there anything that I can do in this situation? Is there a way for me to override constraints from my lock file in
nox-poetry
?Related to
The text was updated successfully, but these errors were encountered: