Skip to content

Commit

Permalink
FIX: Version
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Dec 21, 2024
1 parent 2fd6774 commit ea26fc6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ repos:
language: python
entry: ./tools/hooks/sync_dependencies.py
files: pyproject.toml
additional_dependencies: ["mne"]
additional_dependencies: ["mne==1.9.0"]

# zizmor
- repo: https://github.com/woodruffw/zizmor-pre-commit
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The minimum required dependencies to run MNE-Python are:

.. ↓↓↓ BEGIN CORE DEPS LIST. DO NOT EDIT! HANDLED BY PRE-COMMIT HOOK ↓↓↓
- `Python <https://www.python.org>`__ ≥ 3.9
- `Python <https://www.python.org>`__ ≥ 3.10
- `NumPy <https://numpy.org>`__ ≥ 1.23
- `SciPy <https://scipy.org>`__ ≥ 1.9
- `Matplotlib <https://matplotlib.org>`__ ≥ 3.6
Expand Down
3 changes: 3 additions & 0 deletions tools/dev/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ feature-requests-12-to-2-months-old.json:

clean:
@rm bug-reports-12-to-2-months-old.json || true

dep:
cd ../../ && git grep -iI "\(deprecat\|futurewarning\)" -- ':!*.js' ':!*/conftest.py' ':!*/docs.py' ':!*/test_docs.py' ':!*/utils/__init__.pyi' mne/
4 changes: 4 additions & 0 deletions tools/hooks/sync_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

import difflib
import re

# NB here we use metadata from the latest stable release because this goes in our
# README, which should apply to the latest release (rather than dev).
# For oldest supported dev dependencies, see update_environment_file.py.
from importlib.metadata import metadata
from pathlib import Path

Expand Down
3 changes: 1 addition & 2 deletions tools/hooks/update_environment_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
import tomllib

repo_root = Path(__file__).resolve().parents[2]
with open(repo_root / "pyproject.toml", "rb") as fid:
pyproj = tomllib.load(fid)
pyproj = tomllib.loads((repo_root / "pyproject.toml").read_text("utf-8"))

# Get our "full" dependences from `pyproject.toml`, but actually ignore the
# "full" section as it's just "full-noqt" plus PyQt6, and for conda we need PySide
Expand Down

0 comments on commit ea26fc6

Please sign in to comment.