From 998553d04e4226695b8cf7a0b29ea701fe314a24 Mon Sep 17 00:00:00 2001 From: OMOTO Kenji Date: Wed, 27 Dec 2017 15:49:10 +0900 Subject: [PATCH 1/2] Removed contextlib.nested --- execjs/_pyv8runtime.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/execjs/_pyv8runtime.py b/execjs/_pyv8runtime.py index 2f93a2c..06ddcb7 100644 --- a/execjs/_pyv8runtime.py +++ b/execjs/_pyv8runtime.py @@ -1,5 +1,4 @@ import json -import contextlib import execjs._exceptions as exceptions from execjs._abstract_runtime import AbstractRuntime @@ -48,7 +47,7 @@ def _exec_(self, source): source = str(source) # backward compatibility - with contextlib.nested(PyV8.JSContext(), PyV8.JSEngine()) as (ctxt, engine): + with PyV8.JSContext() as ctxt, PyV8.JSEngine() as engine: js_errors = (PyV8.JSError, IndexError, ReferenceError, SyntaxError, TypeError) try: script = engine.compile(source) From 025e9fb9d444653fadaca12395835d05c9dd4400 Mon Sep 17 00:00:00 2001 From: OMOTO Kenji Date: Thu, 18 Jan 2018 13:20:05 +0900 Subject: [PATCH 2/2] Version 1.5.1, EOL --- README.md | 12 ++++++++++-- README.rst | 14 ++++++++++++-- setup.py | 2 +- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 36454db..bf4b296 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,15 @@ -PyExecJS -======== +PyExecJS (EOL) +============== [![Build Status](https://travis-ci.org/doloopwhile/PyExecJS.svg?branch=travis-ci)](https://travis-ci.org/doloopwhile/PyExecJS) +# End of life + +This library is no longer maintananced. Bugs are not be fixed (even if they are trivial or essential). + +We suggest to use other library or to make a fork. + +--- + Run JavaScript code from Python. PyExecJS is a porting of ExecJS from Ruby. diff --git a/README.rst b/README.rst index c26d955..e3a5e83 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,15 @@ -PyExecJS -======== +PyExecJS (EOL) +============== + +End of life +=========== + +This library is no longer maintananced. Bugs are not be fixed (even if +they are trivial or essential). + +We suggest to use other library or to make a fork. + +-------------- Run JavaScript code from Python. diff --git a/setup.py b/setup.py index d15dad4..68689ea 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ import sys import io -version = '1.5.0' +version = '1.5.1' author = "Omoto Kenji" license = "MIT License" author_email = 'doloopwhile@gmail.com'