Skip to content

Allow pytensor 3.3 - #8400

Merged
ricardoV94 merged 1 commit into
pymc-devs:mainfrom
velochy:bump-pytensor-3.3
Aug 16, 2026
Merged

Allow pytensor 3.3#8400
ricardoV94 merged 1 commit into
pymc-devs:mainfrom
velochy:bump-pytensor-3.3

Conversation

@velochy

@velochy velochy commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Description

Raises the PyTensor upper bound from <3.3 to <3.4 so that the current PyTensor 3.3.x releases can be used with PyMC. The pin is updated in requirements.txt, requirements-dev.txt and the six conda-envs/*.yml files.

No source changes were needed: PyTensor 3.3.0 documents no breaking changes (free-threaded build support, MLX dispatches, and bugfixes), so the lower bound stays at >=3.2.2 and both 3.2.x and 3.3.x remain supported.

Testing

Ran the full test suite locally on Python 3.12 against PyTensor 3.3.0 and 3.2.4 with everything else held fixed. The two runs produce identical results — same 3444 passed, same 42 failed, and a byte-identical list of failing test ids:

pytest tests -n 8 --ignore=tests/step_methods
3.3.0: 42 failed, 3444 passed, 66 skipped, 21 xfailed
3.2.4: 42 failed, 3444 passed, 66 skipped, 21 xfailed

The 42 failures are unrelated to this change and reproduce on the currently-supported 3.2.4: 36 are Multinomial tests that only fail under xdist (they pass when the selection is run on its own, so they look like local test-pollution), and the rest are missing optional dependencies in my environment (nutpie, h5py). tests/step_methods was run separately because unrelated lambda-id()-based parametrization ids break xdist collection matching; it passes: 133 passed, 6 skipped.

Related Issue

  • Closes #
  • Related to #

Checklist

Type of change

  • Maintenance

No code changes were needed for compatibility, so the lower bound stays at
3.2.2.
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 pymc | 🛠️ Build #34086804 | 📁 Comparing 0f1e075 against latest (47bdf54)

  🔍 Preview build  

2 files changed
± glossary.html
± _modules/pytensor/tensor/extra_ops.html

@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.87%. Comparing base (47bdf54) to head (0f1e075).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8400   +/-   ##
=======================================
  Coverage   91.87%   91.87%           
=======================================
  Files         128      128           
  Lines       21256    21256           
=======================================
  Hits        19530    19530           
  Misses       1726     1726           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ricardoV94
ricardoV94 merged commit da8fc47 into pymc-devs:main Aug 16, 2026
42 checks passed
@ricardoV94 ricardoV94 added pytensor no releasenotes Skipped in automatic release notes generation labels Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no releasenotes Skipped in automatic release notes generation pytensor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants