From 33f0d966d1a22bfb1029de4ab294aa1999ab2bb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Bellon-Gervais?= Date: Tue, 4 May 2021 13:29:10 +0200 Subject: [PATCH 1/6] Add python 3.9 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 25e7858..4eacbf6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ python: - 3.6 - 3.7 - 3.8 +- 3.9 install: - python setup.py develop before_script: From 1c913141591b2ec45849c7b45e89764962f525eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Bellon-Gervais?= Date: Tue, 4 May 2021 18:00:37 +0200 Subject: [PATCH 2/6] Try for pylint --- jolokia/utils/decorators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jolokia/utils/decorators.py b/jolokia/utils/decorators.py index adef178..b4420e7 100644 --- a/jolokia/utils/decorators.py +++ b/jolokia/utils/decorators.py @@ -18,7 +18,7 @@ def _new_func(*args, **kwargs): argument = kwargs[arg] LOGGER.debug(argument) return func(*args, **kwargs) - except KeyError: - raise IllegalArgumentException(err_msg) + except KeyError as e: + raise IllegalArgumentException(err_msg) from e return _new_func return _wrapper From 2b400b3386741566574d8db05db6b6f2d5ae5002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Bellon-Gervais?= Date: Tue, 4 May 2021 18:04:20 +0200 Subject: [PATCH 3/6] Try 2 for pylint --- jolokia/utils/decorators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jolokia/utils/decorators.py b/jolokia/utils/decorators.py index b4420e7..557b975 100644 --- a/jolokia/utils/decorators.py +++ b/jolokia/utils/decorators.py @@ -18,7 +18,7 @@ def _new_func(*args, **kwargs): argument = kwargs[arg] LOGGER.debug(argument) return func(*args, **kwargs) - except KeyError as e: - raise IllegalArgumentException(err_msg) from e + except KeyError as ke_except: + raise IllegalArgumentException(err_msg) from ke_except return _new_func return _wrapper From a0113193c4c159077c826c9a7162265acc9d771e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Bellon-Gervais?= Date: Tue, 4 May 2021 18:15:56 +0200 Subject: [PATCH 4/6] Added python 3.9 etc ... --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index d04e701..1cc4f5a 100644 --- a/setup.py +++ b/setup.py @@ -33,6 +33,10 @@ 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', ], keywords='jolokia http jmx', From 969df94d0a93d9bb7df321f9a2ffaf69a6448d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Bellon-Gervais?= Date: Tue, 4 May 2021 18:21:15 +0200 Subject: [PATCH 5/6] Try with python 3.9 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4eacbf6..b8895c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ notifications: jobs: include: - stage: PyPI and GitHub release - python: 3.8 + python: 3.9 deploy: - provider: releases api_key: From 5ddb192623af065716bf95b963245e737c32daa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Bellon-Gervais?= Date: Tue, 4 May 2021 18:31:27 +0200 Subject: [PATCH 6/6] Bumped to 0.3.2 for python 3.9 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1cc4f5a..ad44179 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name='jolokia', - version='0.3.1', + version='0.3.2', description='A Python Jolokia client', long_description=long_description, url='https://github.com/wbrefvem/python-jolokia',