From 35dfaadd52fa5aef3857cc9053934b08b87f9c2d Mon Sep 17 00:00:00 2001 From: Pierre Raybaut <1311787+PierreRaybaut@users.noreply.github.com> Date: Fri, 23 Oct 2026 13:46:42 +0200 Subject: [PATCH] chore: require Python 3.10 or newer Refs DataLab-Platform/datalab-synchrotron#1 Assisted-by: GPT-6.1 Sol --- CHANGELOG.md | 2 ++ README.md | 2 ++ pyproject.toml | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9a9d37..4e6d40e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. ## Unreleased +Python 3.10 or later is required. + First version of the Synchrotron Beamline Data example plugin: a demonstration of DataLab with beamline data, not a finished or supported feature. - SPEC reader in pure Python: index of scans with repeated numbers told apart by occurrence, columns in acquisition order, motor positions from the file headers, interrupted scans, MCA spectra with continuation lines, channel range and calibration; SPEC files recognized by their content, whatever their extension. diff --git a/README.md b/README.md index 3c318a6..10bcf91 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ The readers are written in pure Python: the plugin installs from DataLab's plugi ## Installation +Python 3.10 or later is required in a Python environment; the standalone DataLab application supplies its own interpreter. + The plugin needs DataLab 1.4 or later (not released yet). Download the wheel (`.whl`) attached to the latest release and install it with **Plugins > Configure plugins... > Install plugins**, or install it with pip in the Python environment of DataLab: ```bash diff --git a/pyproject.toml b/pyproject.toml index 4369e2c..99a951f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ description = "Example DataLab plugin: read beamline data (SPEC scans, MCA spect readme = "README.md" license = "BSD-3-Clause" license-files = ["LICENSE"] -requires-python = ">=3.9" +requires-python = ">=3.10" dependencies = ["datalab-platform >= 1.4, < 2"] keywords = ["datalab", "datalab-plugin", "example", "synchrotron", "spec", "beamline", "xas", "xdi"] classifiers = ["Development Status :: 2 - Pre-Alpha"] @@ -35,7 +35,7 @@ pythonpath = ["src", "tests"] [tool.ruff] line-length = 88 -target-version = "py39" +target-version = "py310" [tool.ruff.lint] select = ["E", "F", "I"]