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" 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") diff --git a/pyproject.toml b/pyproject.toml index 68de5cd..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", + "pyjapc; python_version < '3.12'", ] test = [ "pytest>=7.0",