-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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
Tox -min env doesn't actually test min dependencies #5050
Comments
I'm not sure why you think the freeze indicates it's not using the requested versions. I see |
Ah, I see, it's because |
IIUC, the problem is that requirements pulled-in by install override the min requirements file. The flags I mentioned have been introduced to fix this. It might not be an issue right now but the fact that the min deps file went outdated without notice is wrong, I suppose. |
It's because the requirements are installed first, then the package under test (flask) is installed. Flask's min requirements are higher than the min requirements pins, so it installs newer versions. I'm having trouble understanding the documentation on the flags you mentioned, so I'd rather just update the pins for now. |
So did I, but the issue and PR quoted above clarified the issue. (Note that the doc is wrong: constrain_package_deps was introduced with a default of Updating the pins will "hide" the issue. Flask requirements will still override the pins, so next time Flask bumps a requirement, we'll be out-of-sync again. |
OK, I've played around with the options and they make sense now. With |
Looks like
tests.pallet-min.in
does not do what it is meant to.I may be confused, but AFAIU, it is meant to test on minimal supported dependencies versions.
Here's the content of
tests.pallet-min.in
:And here's a job log:
The freeze indicates the versions in use are not the versions from the
tests.pallet-min.in
.I believe this could be fixed with constrain_package_deps and perhaps use_frozen_constraints. I used a configuration similar to the one here in Flask in a project of mine, and I solved it using those flags, but I'm not sure how to do it in Flask's
tox.ini
(it may require to de-factorize the min case out of [testenv]).dev requirements might be impacted as well. Not sure.
The text was updated successfully, but these errors were encountered: