Repository navigation
eegprep extra: declare torch>=2.7 on Python 3.11 (torch 2.6 pins sympy 1.13.1) - #1535
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the change making the Python 3.11 PyTorch requirement explicit.
No open issues 🎉
What changed in this PR
This PR makes the eegprep extra’s PyTorch requirement explicit on Python 3.11 to avoid incompatible SymPy requirements.
Changes:
- Adds
torch>=2.7to theeegprepextra for Python versions below 3.12, also applying through theallextra. - Leaves core dependencies and Python 3.12+ requirements unchanged.
- Documents the requirement in the 2.1.0 release notes.
| File | Description |
|---|---|
pyproject.toml |
Adds the conditional PyTorch minimum and explains the dependency conflict. |
docs/whats_new.rst |
Records the Python 3.11 requirement under Requirements. |
Review effort: Balanced
|
Verified in Voyager Jobs
Summary:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1535 +/- ##
=======================================
Coverage 91.36% 91.36%
=======================================
Files 170 170
Lines 22115 22115
=======================================
Hits 20206 20206
Misses 1909 1909 🚀 New features to boost your workflow:
|
With
torch==2.6.0(our floor) on Python 3.11,pip install braindecode[eegprep]cannot resolve:sympy==1.13.1;sympy>=1.14.0;torch 2.7 relaxed its pin to
sympy>=1.13.3.The
eegprepextra now declares that floor where it applies:torch>=2.7; python_version < "3.12". Core requirements do not change. On Python >= 3.12, torch 2.6 plus eegprep 0.4.0 still resolve, so the marker leaves those installs alone.The
allextra and CI'stests,moabb,hub,eegprep,typing,vizset include eegprep, so they get the same floor.The whats_new entry is under 2.1.0 → Requirements. Resolution matrix from the Voyager Job (
pip install --dry-run, before/after, py3.11/3.12 × torch 2.6.0 / 2.7.0 / latest) will be posted in a comment below.