From 9e6b7a2284a39ae74d2092083165e3fdf4cb8f33 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 19 May 2021 14:31:31 +0000 Subject: [PATCH] Install "pyroute2" as a doc job depedency By adding this library to the doc requirements file, tox will install it limiting the upper version according to "requirements/upper-constraints.txt". "pyroute2" is called in tox doc job as mentioned in [1]. Since version 0.6.0, the library structure changed. To keep backwards compatibility, all modules are imported from the main namespace. As reported in the referred bug, the library "mitogen" must be installed first. In stable releases that use older "pyroute2" versions, this library is not needed but this patch should enforce the upper library version. Related-Bug: #1928913 [1]https://github.com/openstack/neutron/blob/2a4074918c248adf84b0afa404d30c18710da4b2/doc/source/conf.py#L33-L40 Change-Id: I0cf458f4532d313e593a943653e8310b93ac1e9c --- doc/requirements.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/requirements.txt b/doc/requirements.txt index 1b9cb86202d..1db05a8149f 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -6,3 +6,6 @@ sphinx_feature_classification>=1.0.0 # Apache-2.0 openstackdocstheme>=2.2.1 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0 reno>=3.1.0 # Apache-2.0 +# NOTE(ralonsoh): pyroute2 module should be installed and the version limited +# according to upper-constraints.txt +pyroute2>=0.5.13;sys_platform!='win32' # Apache-2.0 (+ dual licensed GPL2)