From 886dfe38f9bce2cef119354cae54f442d051472a Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Fri, 18 Aug 2023 23:46:23 +0000 Subject: [PATCH] tests: create a separate constraints-base file Co-authored-by: Sviatoslav Sydorenko --- tests/constraints-base.in | 3 +++ tests/constraints.in | 4 +++- tests/requirements-relaxed.in | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 tests/constraints-base.in diff --git a/tests/constraints-base.in b/tests/constraints-base.in new file mode 100644 index 00000000000..77cb17091f0 --- /dev/null +++ b/tests/constraints-base.in @@ -0,0 +1,3 @@ +# Known limitations for indirect/transitive dependencies. + +rstcheck < 6 # rstcheck 6.x has problem with rstcheck.core triggered by include files w/ sphinx directives https://github.com/rstcheck/rstcheck-core/issues/3 diff --git a/tests/constraints.in b/tests/constraints.in index 712085be014..2d5485180b5 100644 --- a/tests/constraints.in +++ b/tests/constraints.in @@ -1,3 +1,5 @@ -# Known limitations for indirect/transitive dependencies. +# This constraints file contains pins for the stable, tested versions of sphinx +# and antsibull-docs that production builds rely upon. + sphinx == 5.3.0 antsibull-docs == 2.3.1 # currently approved version diff --git a/tests/requirements-relaxed.in b/tests/requirements-relaxed.in index 3f378e03a5f..efc542c66cc 100644 --- a/tests/requirements-relaxed.in +++ b/tests/requirements-relaxed.in @@ -2,11 +2,13 @@ # essential tools # It's used for testing purposes and devel branch builds on docs.ansible.com. +-c constraints-base.in + jinja2 >= 3.0.0 # used by hacking/build_library/build_ansible/command_plugins/generate_man.py and dump_keywords.py pyyaml >= 5.1 # used by ansible-core resolvelib >= 0.5.3, < 1.1.0 # used by ansible-core sphinx sphinx-notfound-page sphinx-ansible-theme -rstcheck < 6 # # rstcheck 6.x has problem with rstcheck.core triggered by include files w/ sphinx directives https://github.com/rstcheck/rstcheck-core/issues/3 +rstcheck antsibull-docs ~= 2.0