Skip to content

fix(python): CI couldn't install pytest 9 on Windows or Python 3.9 - #85

Merged
jamesconwaydev merged 1 commit into
mainfrom
python-ci-requirements
Nov 19, 2026
Merged

jamesconwaydev merged 1 commit into
mainfrom
python-ci-requirements

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

Problem

Dependabot's #83 bumped pytest to 9.0.3 in bindings/python/ci-requirements.txt without compiling it again from ci-requirements.in. Two things broke in the Python matrix:

  • On Windows, pytest needs colorama, which wasn't in the hashed file, so pip install --require-hashes refused it.
  • pytest 9 needs Python 3.10, and the matrix tests 3.9.

Change

  • ci-requirements.in keeps pytest 8.4.2 for Python 3.9 and 9.0.3 for 3.10 and up.
  • ci-requirements.txt is compiled again from it with the command in its header (uv pip compile --universal --generate-hashes -p 3.9), so colorama is in it for Windows.

Tests

  • The python workflow's matrix on this PR (Linux, macOS, Windows; 3.9, 3.14, 3.14t).

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.
@jamesconwaydev
jamesconwaydev enabled auto-merge (squash) November 19, 2026 02:02
@jamesconwaydev
jamesconwaydev merged commit e7da6bd into main Nov 19, 2026
28 checks passed
@jamesconwaydev
jamesconwaydev deleted the python-ci-requirements branch November 19, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant