Skip to content

chore: request for tensorflow in requirements only if python < 3.14#3787

Merged
ianna merged 1 commit intoscikit-hep:mainfrom
ikrommyd:do-not-install-tensorflow
Jan 6, 2026
Merged

chore: request for tensorflow in requirements only if python < 3.14#3787
ianna merged 1 commit intoscikit-hep:mainfrom
ikrommyd:do-not-install-tensorflow

Conversation

@ikrommyd
Copy link
Copy Markdown
Collaborator

@ikrommyd ikrommyd commented Jan 5, 2026

Tensorflow does not support python 3.14 and given the project's status, they will probably not support it for like a year.
We should only ask for it in requirements if python < 3.14

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.75%. Comparing base (5a6e69f) to head (3d8d8c4).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 5, 2026

The documentation preview is ready to be viewed at http://preview.awkward-array.org.s3-website.us-east-1.amazonaws.com/PR3787

Copy link
Copy Markdown
Member

@ianna ianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is correct and necessary.

TensorFlow does not currently publish wheels for Python 3.14, which causes installation failures during test environment setup. Because these failures occur before the test suite runs, pytest.importorskip("tensorflow") cannot intercept them. Adding an environment marker to exclude TensorFlow on Python 3.14 is the appropriate and minimal fix.

The update:

tensorflow >= 2.12 ; python_version < "3.14"

is consistent with Awkward’s backend‑optional design and ensures that:

  • CI on Python 3.14 runs cleanly
  • TensorFlow‑dependent tests are skipped as intended
  • No unrelated failures appear in the test matrix
  • No behavior changes occur for supported Python versions

The change is isolated to test requirements and has no impact on users or packaging.

@ianna ianna merged commit c7e21ea into scikit-hep:main Jan 6, 2026
39 checks passed
@ikrommyd ikrommyd deleted the do-not-install-tensorflow branch January 6, 2026 11:33
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