Repository navigation
fix(python): CI couldn't install pytest 9 on Windows or Python 3.9 - #85
Merged
Merged
Conversation
Dependabot's #83 moved pytest to 9.0.3 in ci-requirements.txt by hand, so the hashed file missed colorama, which pytest needs on Windows, and pip's --require-hashes refused it. pytest 9 also needs Python 3.10, and the matrix tests 3.9. ci-requirements.in now keeps pytest 8.4.2 for 3.9 and 9.0.3 for the rest, and the file is compiled again from it, colorama included.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Dependabot's #83 bumped pytest to 9.0.3 in
bindings/python/ci-requirements.txtwithout compiling it again fromci-requirements.in. Two things broke in the Python matrix:colorama, which wasn't in the hashed file, sopip install --require-hashesrefused it.Change
ci-requirements.inkeeps pytest 8.4.2 for Python 3.9 and 9.0.3 for 3.10 and up.ci-requirements.txtis compiled again from it with the command in its header (uv pip compile --universal --generate-hashes -p 3.9), socoloramais in it for Windows.Tests