diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e11ef9f64753775a4a3df6f1dddbdd145138ad75..6eccfe07634dcc2becb4239527257cde06c36a30 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -70,8 +70,7 @@ unittest_py3.8:
   script: &python_test_script
     # Python docker has problems with tox and pip so use plain pytest here
     - touch ~/.pylinkahead.ini
-    - pip install pynose pytest pytest-cov jsonschema>=4.4.0 setuptools
-    - pip install .
+    - pip install .[test]
     - python -m pytest unittests
 
 # This needs to be changed once Python 3.9 isn't the standard Python in Debian
diff --git a/setup.py b/setup.py
index ec20e88b2cbe770801beda88cedc73e88cd413ac..daf36764ef043916bea44694bf0620505e6fcd9c 100755
--- a/setup.py
+++ b/setup.py
@@ -188,8 +188,8 @@ def setup_package():
                           'future',
                           ],
         extras_require={
-            'keyring': ['keyring>=13.0.0'],
-            'jsonschema': ['jsonschema>=4.4.0'],
+            "jsonschema": ["jsonschema>=4.4.0"],
+            "keyring": ["keyring>=13.0.0"],
             "mypy": [
                 "mypy",
                 "types-PyYAML",