From 40b40d6604200e44e16a9ab825104f457fa1fb07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Beraud?= Date: Thu, 30 Sep 2021 11:36:01 +0200 Subject: [PATCH] Constraints jsonschema to version lower than 4.0.0 This patch aim to unlock our validation before spending more time to fix the following traceback: ``` + yamllint -f parsable -c ./yamllint.yml deliverables/victoria deliverables/wallaby deliverables/xena deliverables/_independent validate run-test: commands[1] | /home/zuul/src/opendev.org/openstack/releases/tools/tox-log-command.sh check-schema setting PATH=/home/zuul/src/opendev.org/openstack/releases/.tox/validate/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin [1954] /home/zuul/src/opendev.org/openstack/releases$ /home/zuul/src/opendev.org/openstack/releases/tools/tox-log-command.sh check-schema Logging check-schema output to /home/zuul/src/opendev.org/openstack/releases/.tox/validate/log/check-schema-results.log INFO: Checking data/series_status.yaml Traceback (most recent call last): File "/home/zuul/src/opendev.org/openstack/releases/.tox/validate/bin/check-schema", line 10, in sys.exit(main()) File "/home/zuul/src/opendev.org/openstack/releases/openstack_releases/cmds/check_schema.py", line 103, in main errors.extend( File "/home/zuul/src/opendev.org/openstack/releases/openstack_releases/cmds/check_schema.py", line 66, in validate_one_file validator = make_validator_with_date(schema_data) File "/home/zuul/src/opendev.org/openstack/releases/openstack_releases/cmds/check_schema.py", line 58, in make_validator_with_date return jsonschema.validators.extend( TypeError: __init__() got an unexpected keyword argument 'types' ERROR: InvocationError for command /home/zuul/src/opendev.org/openstack/releases/tools/tox-log-command.sh check-schema (exited with code 1) ``` Change-Id: Ia9cde2755dd0d9c80a42475fdb9f849a6549539b --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c189d5a8de..919f4425e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ yamlordereddictloader prompt_toolkit>=2.0.7 tqdm mwclient==0.8.1 -jsonschema>=3.2.0 +jsonschema<4.0.0,>=3.2.0 twine>=1.13.0 wheel>=0.34.2 ruamel.yaml>=0.15