This patch fixes 3 problems to fix gate jobs in Rocky.
1. In Stein the docs target started to fail when new release of
neutron-lib appeared. This is because tox installs neutron and its
requirements without any constraints. To fix this both the upper
constraints and neutron requirements needs to be added to
dependencies of docs target.
2. Cap hacking in test-requirements.txt
hacking as a linter is in global requirements blacklist and so is
not in constraints. Recent release introduced new rules that
required fix on master, on stable branches we should rather cap to
the version that was in use during this release development.
3. Update sphinx requirements
Requirement check is failing on sphinx:
Requirement(package='sphinx', location='', specifiers='!=1.6.6,>=1.6.2', markers='', comment='# BSD', extras=frozenset()) 'markers': '' does not match "python_version>='3.4'"
Could not find a global requirements entry to match package {}. If the package is already included in the global list, the name or platform markers there may not match the local settings.
Conflicts:
tox.ini
Closes-Bug: #1856156
Change-Id: Iea61238f37fdf24c0264f96d104ee0b3b6aec8e2
(cherry picked from commit 07be793435)
(cherry picked from commit d1c4ba5810)
(cherry picked from commit 34239888eb)