Use upper-constraint in doc generation

Currently doc jobs are broken because the latest sphinx 7.2.0 is not
compatible with the latest release of openstackdocstheme.

This updates the docs/releasenotes target to use the global upper
constraints to avoid that issue.

Also, the following flake8 error is fixed by this change.

cliff/tests/ E721 do not compare types,
for exact checks use `is` / `is not`, for instance checks use

Change-Id: Ia923ba1d0e2cf3327317e142cfa38470d9f053d2
Takashi Kajinami 2023-08-21 09:47:18 +09:00
parent 72e81d7d84
commit 989c440fe6
2 changed files with 4 additions and 2 deletions

View File

@ -50,7 +50,7 @@ def _table_tester_helper(tags, data, extra_args=None):
if extra_args is None:
# Default to no CLI arguments
parsed_args = args()
elif type(extra_args) == args:
elif isinstance(extra_args, args):
# Use the given CLI arguments
parsed_args = extra_args

View File

@ -45,7 +45,9 @@ deps = os:openstack/python-openstackclient:python-openstackclient
commands = {toxinidir}/integration-tests/ {envdir}
deps = -r{toxinidir}/doc/requirements.txt
deps =
commands = sphinx-build -W -b html doc/source doc/build/html