First, fix test_help(). A commit[1], which first appeared in Python
3.10, changes the output of the help feature of argparse. Options used
to be in a section named "Optional arguments:", and they are now in a
section named "Options:".
Second, tox 4 changes the behaviour of tox, and
{toxinidir}/requirements.txt is no longer installed automagically in the
docs virtual environment. This causes autodoc to fail on some imports.
We explicitely add {toxinidir}/requirements.txt to the list of
dependencies to fix this issue.
These issues should be fixed in separate patches, but since they both
block the CI, they depend on each other.
Reviewed: https:/ /review. opendev. org/c/openstack /python- glanceclient/ +/869868 /opendev. org/openstack/ python- glanceclient/ commit/ 6c95122777c8449 056115292b492ec 3e1e0d6e50
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 6c95122777c8449 056115292b492ec 3e1e0d6e50
Author: Cyril Roelandt <email address hidden>
Date: Fri Dec 16 04:56:02 2022 +0100
Fix functional tests and docs generation
First, fix test_help(). A commit[1], which first appeared in Python
3.10, changes the output of the help feature of argparse. Options used
to be in a section named "Optional arguments:", and they are now in a
section named "Options:".
Second, tox 4 changes the behaviour of tox, and /requirements. txt is no longer installed automagically in the /requirements. txt to the list of
{toxinidir}
docs virtual environment. This causes autodoc to fail on some imports.
We explicitely add {toxinidir}
dependencies to fix this issue.
These issues should be fixed in separate patches, but since they both
block the CI, they depend on each other.
[1] https:/ /github. com/python/ cpython/ pull/23858
Change-Id: Ia7866390b31f46 9bdea95624325a1 3aaf45a496e
Closes-Bug: #2002566