From e00f444211bf8dd349d9a159387e7ee23058a923 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 Conflicts: doc/requirements.txt Change-Id: I0cf458f4532d313e593a943653e8310b93ac1e9c (cherry picked from commit 9e6b7a2284a39ae74d2092083165e3fdf4cb8f33) --- doc/requirements.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/requirements.txt b/doc/requirements.txt index 33b2d2bdc4a..35e4c8f5ab9 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -6,3 +6,6 @@ sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD openstackdocstheme>=1.30.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0 reno>=2.5.0 # Apache-2.0 +# NOTE(ralonsoh): pyroute2 module should be installed and the version limited +# according to upper-constraints.txt +pyroute2>=0.5.3;sys_platform!='win32' # Apache-2.0 (+ dual licensed GPL2)