Skip to content

dxray: fix the Python 3.9 checks, and a lighter test matrix - #59

Merged
fcopensource merged 1 commit into
mainfrom
dxray-python39-ci
Nov 24, 2026
Merged

fcopensource merged 1 commit into
mainfrom
dxray-python39-ci

Conversation

@fcopensource

Copy link
Copy Markdown
Owner

Why the checks failed

Every Python 3.9 job failed, on Windows, Ubuntu and macOS alike. The Claude SDK (anthropic 2.x) needs Python 3.10+, and the test install used dxray[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

  • Extras: dxray[ai] and dxray[all] install the SDK only on Python 3.10+. On 3.9 the rest of dxray installs and works, and dx.ask() says it needs Python 3.10.
  • Tests: the ask tests skip when the SDK isn't installed. A new test checks the message, both without the SDK and as if on Python 3.9.
  • Test matrix: every Python version on Linux, and the oldest and newest on Windows and macOS. That's 10 jobs instead of 18.
  • README: notes that dx.ask() needs Python 3.10+.

Checked locally

  • The code parses as Python 3.9.
  • 42 tests pass with pandas 3, numpy 2 and the SDK.
  • 39 pass (3 skipped) with pandas 2.2, numpy 1.26 and no SDK, which is what a Python 3.9 user gets.
  • The built wheel's metadata has 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

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>
@fcopensource
fcopensource merged commit 722bebd into main Nov 24, 2026
24 checks passed
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.

2 participants