Repository navigation
dxray: fix the Python 3.9 checks, and a lighter test matrix - #59
Merged
Merged
Conversation
The Anthropic SDK (anthropic 2.x) needs Python 3.10+, so installing "dxray[all]" failed on Python 3.9 and every 3.9 job stopped before testing. - The ai/all extras now install the SDK only on Python 3.10+. On 3.9 the rest of dxray installs and works; dx.ask() says it needs Python 3.10. - The ask tests skip when the SDK isn't installed; a new test checks the message (with no SDK, and as if on 3.9). - The workflow tests every Python on Linux and the oldest and newest on Windows and macOS: 10 jobs instead of 18, so macOS runners don't sit queued and block publishing. Checked locally: the code parses as Python 3.9; 42 tests pass with pandas 3 / numpy 2 / the SDK, and 39 pass (3 skipped) with pandas 2.2 / numpy 1.26 and no SDK, which is what a Python 3.9 user gets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why the checks failed
Every Python 3.9 job failed, on Windows, Ubuntu and macOS alike. The Claude SDK (
anthropic2.x) needs Python 3.10+, and the test install useddxray[all], which includes it. pip couldn't install it on 3.9, so those jobs stopped before running any tests. Python 3.10–3.14 all passed.A few macOS jobs were also stuck waiting for a runner. With 18 jobs per run, GitHub was rationing macOS machines, and the publish step can't run until every test job finishes.
The fix
dxray[ai]anddxray[all]install the SDK only on Python 3.10+. On 3.9 the rest of dxray installs and works, anddx.ask()says it needs Python 3.10.dx.ask()needs Python 3.10+.Checked locally
anthropic>=2.13; (python_version >= '3.10') and extra == 'ai'.After merging
Run Actions → dxray (Python) → Run workflow → publish: pypi again. This PR's own checks will show all 10 jobs green before you merge.
🤖 Generated with Claude Code