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]2a4074918c/doc/source/conf.py (L33-L40)

Conflicts:
      doc/requirements.txt

Change-Id: I0cf458f4532d313e593a943653e8310b93ac1e9c
(cherry picked from commit 9e6b7a2284)
This commit is contained in:
Rodolfo Alonso Hernandez 2021-05-19 14:31:31 +00:00
parent 3e06f40e3d
commit e00f444211

View File

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