From 5a5cfc28fb84ef3335d234f60754233d566f156f Mon Sep 17 00:00:00 2001 From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Sun, 8 Oct 2023 20:55:05 +1000 Subject: [PATCH] [jythonscripting] Add a note not to use jython (#15623) * [jythonscripting] Add a note not to use jython * [jythonscripting] Mark as deprecated --------- Signed-off-by: Jimmy Tanagra --- bundles/org.openhab.automation.jythonscripting/README.md | 9 ++++++++- .../src/main/resources/OH-INF/addon/addon.xml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.automation.jythonscripting/README.md b/bundles/org.openhab.automation.jythonscripting/README.md index f124da39a..a19cc512a 100644 --- a/bundles/org.openhab.automation.jythonscripting/README.md +++ b/bundles/org.openhab.automation.jythonscripting/README.md @@ -1,4 +1,11 @@ -# Jython Scripting +# Jython Scripting (DEPRECATED) + +::: tip Note: +Currently, the development of Jython stopped at version 2.7 with no definite timeline to support Python 3.x. +The 3rd party openHAB helper library for Jython is also no longer maintained. +We would not recommend using Jython scripting at this point in time. +For alternatives, check out the list of other supported [automation add-ons](https://www.openhab.org/addons/#automation). +::: This add-on provides [Jython](https://www.jython.org/) 2.7.2 that can be used as a scripting language within automation rules and which eliminates the need to download Jython and create `EXTRA_JAVA_OPTS` entries for `bootclasspath`, `python.home` and `python.path`. diff --git a/bundles/org.openhab.automation.jythonscripting/src/main/resources/OH-INF/addon/addon.xml b/bundles/org.openhab.automation.jythonscripting/src/main/resources/OH-INF/addon/addon.xml index b3bf3cf5a..b6a78869b 100644 --- a/bundles/org.openhab.automation.jythonscripting/src/main/resources/OH-INF/addon/addon.xml +++ b/bundles/org.openhab.automation.jythonscripting/src/main/resources/OH-INF/addon/addon.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="https://openhab.org/schemas/addon/v1.0.0 https://openhab.org/schemas/addon-1.0.0.xsd"> automation - Jython Scripting + Jython Scripting (DEPRECATED) This adds a Jython script engine. none