From e0bd7088fa5b109d97ed8d09e257b5e55f2fc9a1 Mon Sep 17 00:00:00 2001 From: Ron Pierce Date: Mon, 8 Jun 2026 07:32:05 -0700 Subject: [PATCH] fix: make requirements-test.txt installable alongside requirements.txt (#364) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit requirements.txt already pins pytest>=9.0.3,<10 (from #331), but requirements-test.txt re-pinned pytest>=7.4,<9. The two ranges are disjoint, so `pip install -r requirements.txt -r requirements-test.txt` fails with ResolutionImpossible — breaking the core test workflow and the plugins-repo safety workflow that installs both files. pytest, pytest-cov, pytest-mock, and jsonschema are all already pinned with major-version caps in requirements.txt, so drop them from requirements-test.txt and keep only freezegun (the one test dep requirements.txt doesn't provide). Co-authored-by: Claude Opus 4.8 --- requirements-test.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/requirements-test.txt b/requirements-test.txt index f0b5eb27..a11b33a4 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,8 +1,9 @@ # Test-only dependencies for the plugin safety harness and pytest suite. # Install alongside requirements.txt: pip install -r requirements.txt -r requirements-test.txt -# Upper bounds pin the major version so a new release can't silently change -# golden-image / time-sensitive test behavior between CI runs. -pytest>=7.4,<9 -pytest-cov>=4.1,<7 -jsonschema>=4.0,<5 # manifest validation +# +# pytest, pytest-cov, pytest-mock, and jsonschema are already pinned (with +# major-version caps) in requirements.txt, so they are intentionally NOT +# repeated here — re-pinning pytest to <9 collided with requirements.txt's +# pytest>=9.0.3,<10 and made the two files impossible to install together. +# Only declare what requirements.txt doesn't already provide. freezegun>=1.2,<2 # deterministic time for golden-image tests