From e83638386f85f499996c384fad34141eeacd9c7c Mon Sep 17 00:00:00 2001 From: Felix Soubelet Date: Thu, 12 Mar 2026 11:46:55 +0100 Subject: [PATCH 1/4] python constraint on pyjapc --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 68de5cd..dce32bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ cern = [ "omc3[cern] >= 0.15", "pjlsa >= 0.2", "pytimber >= 3.0", # NXCALS support - "pyjapc", + "pyjapc; python_version < '3.14'", ] test = [ "pytest>=7.0", From 7f89705185ade949062ce37a8ea50d9ace428c38 Mon Sep 17 00:00:00 2001 From: Felix Soubelet Date: Thu, 12 Mar 2026 11:47:06 +0100 Subject: [PATCH 2/4] tiny patch --- pylhc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylhc/__init__.py b/pylhc/__init__.py index 7e469e2..0c6c131 100644 --- a/pylhc/__init__.py +++ b/pylhc/__init__.py @@ -11,7 +11,7 @@ __title__ = "pylhc" __description__ = "An accelerator physics script collection for the OMC team at CERN." __url__ = "https://github.com/pylhc/pylhc" -__version__ = "0.8.3" +__version__ = "0.8.4" __author__ = "pylhc" __author_email__ = "pylhc@github.com" __license__ = "MIT" From 42a5c9d0d9e4b265e61dd6deb1a37fda7bc00e74 Mon Sep 17 00:00:00 2001 From: Felix Soubelet Date: Thu, 12 Mar 2026 11:49:11 +0100 Subject: [PATCH 3/4] warn straight away --- pylhc/bsrt_logger.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pylhc/bsrt_logger.py b/pylhc/bsrt_logger.py index 02eb04b..2006cad 100644 --- a/pylhc/bsrt_logger.py +++ b/pylhc/bsrt_logger.py @@ -15,11 +15,18 @@ import pickle import sys import time +import warnings from pathlib import Path from omc3.definitions import formats from omc3.utils.mock import cern_network_import +warnings.warn( + "The pyjapc package has reached end-of-life and is not supported on Python 3.12+. " + "On higher Python versions this script will not run.", + stacklevel=2 +) + pyjapc = cern_network_import("pyjapc") From 6f2e4234a1baccd9fe25cfac3279b6d1adb246b1 Mon Sep 17 00:00:00 2001 From: Felix Soubelet Date: Thu, 12 Mar 2026 12:26:45 +0100 Subject: [PATCH 4/4] officially 3.12 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index dce32bb..838cc15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ cern = [ "omc3[cern] >= 0.15", "pjlsa >= 0.2", "pytimber >= 3.0", # NXCALS support - "pyjapc; python_version < '3.14'", + "pyjapc; python_version < '3.12'", ] test = [ "pytest>=7.0",