diff --git a/.zuul.d/project-template.yaml b/.zuul.d/project-template.yaml index 19e0bcbb11..51cf75baf4 100644 --- a/.zuul.d/project-template.yaml +++ b/.zuul.d/project-template.yaml @@ -17,4 +17,5 @@ - ^tools/.*-requires$ - ^.*requirements.txt$ - ^.*requirements-py[2,3].txt$ + - ^doc/requirements.txt$ - playbooks/requirements-check.yaml diff --git a/README.rst b/README.rst index 41ef914ce2..ea5f957152 100644 --- a/README.rst +++ b/README.rst @@ -57,7 +57,8 @@ Solution The mechanics of the solution are relatively simple. We maintain a central list of all the requirements (``global-requirements.txt``) that are allowed in OpenStack projects. This is enforced for -``requirements.txt``, ``test-requirements.txt`` and extras defined in +``requirements.txt``, ``test-requirements.txt``, +``doc/requirements.txt``, and extras defined in ``setup.cfg``. This is maintained by hand, with changes going through CI. We also maintain a compiled list of the exact versions, including transitive diff --git a/openstack_requirements/project.py b/openstack_requirements/project.py index a401ac9b69..995aba5925 100644 --- a/openstack_requirements/project.py +++ b/openstack_requirements/project.py @@ -132,6 +132,7 @@ def read(root): target_files = [ 'requirements.txt', 'tools/pip-requires', 'test-requirements.txt', 'tools/test-requires', + 'doc/requirements.txt' ] for py_version in (2, 3): target_files.append('requirements-py%s.txt' % py_version) diff --git a/tools/cruft.sh b/tools/cruft.sh index ce81a36edc..8a83d79f58 100755 --- a/tools/cruft.sh +++ b/tools/cruft.sh @@ -57,7 +57,8 @@ for PROJECT in $(cat projects.txt); do test-requirements-py3.txt \ test-requirements.txt \ tools/pip-requires \ - tools/test-requires + tools/test-requires \ + doc/requirements.txt do if [ -f $FILE ]; then # Add diagnostic comments to aid debugging.