From c9f41a6d8ab0c46a6ce3837ef45a31da1b5b7dd0 Mon Sep 17 00:00:00 2001 From: Martyn Date: Mon, 17 Oct 2022 17:38:05 +0100 Subject: [PATCH] Pin to importlib-metadata==4.13.0, because it's not supported in Python3.7 - Tests are failing Although it's in the requirements-dev.txt it's not used in flake8, bandit or doc8 Signed-off-by: Martyn --- requirements-dev.txt | 2 +- tox.ini | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index d4ce9ebb7..711ff46d6 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -13,4 +13,4 @@ python-magic # On October 4, 2022 importlib-metadata released importlib-metadata 5.0.0 and in version 5.0.0 # They have Deprecated EntryPoints and that's why you are facing this error. -importlib-metadata==4.13.0 \ No newline at end of file +importlib-metadata<=4.13.0 \ No newline at end of file diff --git a/tox.ini b/tox.ini index 24004721c..f11bf45cc 100644 --- a/tox.ini +++ b/tox.ini @@ -21,7 +21,8 @@ parallel_show_output = true [testenv:flake8] basepython = python3 skip_install = true -deps = +deps = + importlib-metadata<=4.13.0 flake8 flake8-no-fstring commands = flake8 {[base]linting_targets} @@ -47,13 +48,16 @@ commands = mypy atlassian/ [testenv:bandit] basepython = python3 skip_install = true -deps = bandit +deps = + importlib-metadata<=4.13.0 + bandit commands = bandit -r atlassian/ [testenv:doc8] basepython = python3 skip_install = true deps = + importlib-metadata<=4.13.0 sphinx doc8 commands = doc8 --ignore-path docs/_build/ docs/