Update from master

Squashed commit of the following:

commit 7cedba14204492f7373db6e3362d04181658fc1b
Author: Mark Beierl <mark.beierl@canonical.com>
Date:   Wed May 10 21:35:27 2023 -0400

    Update to Python 3.10 and Ubuntu 22.04

    Removal of deprecated event loop
    Updated pip requirements

    Change-Id: I0eeba1b700187ec87197f5b28e6e20fd15bd945b
    Signed-off-by: Mark Beierl <mark.beierl@canonical.com>

commit d1dfd8b598a2852cc6400d323b29c405816f36a6
Author: garciadeblas <gerardo.garciadeblas@telefonica.com>
Date:   Tue Apr 18 18:25:13 2023 +0200

    Set autoescape to True in Jinja2 environment

    Change-Id: I2af8d9e30f610bb18928b4c85b16ecd6754129b8
    Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>

commit 2da4c43fa6e13582ffb79e852c47e986bf4a1384
Author: garciadeblas <gerardo.garciadeblas@telefonica.com>
Date:   Tue Apr 18 14:40:48 2023 +0200

    Clean stage-archive.sh

    Change-Id: Ie0a1c29cd15f4b9510bdbf8e14a051df93b24edd
    Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>

commit 9bd1ee2d3893c1450b3650ead9e71b5e01d0883f
Author: garciadeblas <gerardo.garciadeblas@telefonica.com>
Date:   Tue Mar 28 13:45:28 2023 +0200

    Fix black and cover errors

    Change-Id: I5525e17a4536686091967ceb3ac2900bce47d9e2
    Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>

Change-Id: I1f150e4b0bbe8c537940a2445c94bdf8da4c7e60
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
diff --git a/tox.ini b/tox.ini
index 9f416bc..98409d3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -23,7 +23,7 @@
 
 [testenv]
 usedevelop = True
-basepython = python3.8
+basepython = python3.10
 setenv = VIRTUAL_ENV={envdir}
          PYTHONDONTWRITEBYTECODE = 1
 deps =  -r{toxinidir}/requirements.txt
@@ -49,7 +49,7 @@
         coverage report --omit='*tests*'
         coverage html -d ./cover --omit='*tests*'
         coverage xml -o coverage.xml --omit=*tests*
-whitelist_externals = sh
+allowlist_externals = sh
 
 
 #######################################################################################
@@ -84,7 +84,7 @@
 [testenv:pip-compile]
 deps =  pip-tools==6.6.2
 skip_install = true
-whitelist_externals = bash
+allowlist_externals = bash
         [
 commands =
         - bash -c "for file in requirements*.in ; do \
@@ -108,7 +108,7 @@
         python3 setup.py --command-packages=stdeb.command sdist_dsc
         sh -c 'cd deb_dist/osm-pla*/ && dpkg-buildpackage -rfakeroot -uc -us'
         sh -c 'rm osm_pla/requirements.txt'
-whitelist_externals = sh
+allowlist_externals = sh
 
 #######################################################################################
 [flake8]