From b1cb7a54d6a3b3c086bb4c35a729f3e6c3a79579 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Mon, 1 Dec 2025 19:11:09 +0100 Subject: [PATCH] minor bumps --- .github/workflows/python_build.yml | 2 +- .github/workflows/python_tests.yml | 4 ++-- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 6 +++--- .readthedocs.yml | 2 +- README.rst | 2 +- docs/changelog.rst | 1 + pyproject.toml | 4 ++-- 8 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/python_build.yml b/.github/workflows/python_build.yml index b303545..071280d 100644 --- a/.github/workflows/python_build.yml +++ b/.github/workflows/python_build.yml @@ -19,7 +19,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.12"] + python-version: ["3.13"] env: TZ: Europe/Berlin FORCE_COLOR: true diff --git a/.github/workflows/python_tests.yml b/.github/workflows/python_tests.yml index 1991906..0bc7ac2 100644 --- a/.github/workflows/python_tests.yml +++ b/.github/workflows/python_tests.yml @@ -18,13 +18,13 @@ jobs: fail-fast: false matrix: platform: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.12"] + python-version: ["3.13"] mne-version: [mne-stable] include: # Test mne development version only on ubuntu - platform: ubuntu-latest - python-version: "3.12" + python-version: "3.13" mne-version: mne-main run-as-extra: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2cdf36..770c3cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: fetch-tags: true - uses: actions/setup-python@v6 with: - python-version: '3.12' + python-version: '3.13' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8119b6c..45c4e3d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -14,7 +14,7 @@ repos: - id: check-docstring-first - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.3 + rev: v0.14.7 hooks: - id: ruff name: ruff check --fix @@ -25,7 +25,7 @@ repos: files: ^(pyprep/|examples/|tests/) - repo: https://github.com/pappasam/toml-sort - rev: v0.24.2 + rev: v0.24.3 hooks: - id: toml-sort-fix files: pyproject.toml diff --git a/.readthedocs.yml b/.readthedocs.yml index fa7dbbe..edc578c 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,7 +6,7 @@ version: 2 build: os: ubuntu-lts-latest tools: - python: "3.12" + python: "3.13" sphinx: configuration: docs/conf.py diff --git a/README.rst b/README.rst index 501402f..d98b184 100644 --- a/README.rst +++ b/README.rst @@ -48,7 +48,7 @@ for EEG data, working with `MNE-Python `_. Installation ============ -``pyprep`` runs on Python version 3.9 or higher. +``pyprep`` runs on Python version 3.10 or higher. We recommend to run ``pyprep`` in a dedicated virtual environment (for example using `conda `_). diff --git a/docs/changelog.rst b/docs/changelog.rst index 0e1196f..0d7a00f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -39,6 +39,7 @@ Changelog - :meth:`~pyprep.NoisyChannels.find_bad_by_nan_flat` now accepts a ``flat_threshold`` argument, by `Nabil Alibou`_ (:gh:`144`) - replaced an internal implementation of the MAD algorithm with :func:`scipy.stats.median_abs_deviation`, by `Ayush Agarwal`_ (:gh:`153`) and `Stefan Appelhoff`_ (:gh:`155`) - The :class:`~pyprep.NoisyChannels` class now accepts a `ransac` boolean argument at instantiation that is carried over to :meth:`~pyprep.NoisyChannels.find_all_bads`, by `Stefan Appelhoff`_ (:gh:`164`) +- Python 3.10 or higher is now required. Bug ~~~ diff --git a/pyproject.toml b/pyproject.toml index 6eeec3c..b147f0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.13", "Programming Language :: Python", "Topic :: Scientific/Engineering", ] @@ -43,7 +43,7 @@ maintainers = [ ] name = "pyprep" readme = {content-type = "text/x-rst", file = "README.rst"} -requires-python = ">=3.9" +requires-python = ">=3.10" [project.optional-dependencies] dev = ["ipykernel", "ipython", "pyprep[test,docs]"]