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 <module>
    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
This commit is contained in:
Hervé Beraud 2021-09-30 11:36:01 +02:00
parent 192fe15bde
commit 40b40d6604

View File

@ -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