Repository: plone/plone.recipe.zope2instance (language: python)

Issue:
constraints file is not evaluated when running the test suite
Chaining options within a requirements file is not supported by `pip`, see https://pip--9474.org.readthedocs.build/en/9474/reference/requirements-files/#supported-options

This means that the following line is not supported pip syntax:

https://github.com/plone/plone.recipe.zope2instance/blob/28bc53987a3294e4a0111794a717ca635d2478e4/requirements-testing-zope-4.txt#L1

`pip` only supports one option per line, and instead of raising an error, it currently just ignores the second option, which here is the constraints file.

It will be an error in future - possibly, see https://github.com/pypa/pip/issues/9791

I'll create a PR to fix this.

P.S.: pinging @jensens as maybe you used this in other projects, too


Discussion / hints:

Fix patch:
diff --git a/news/171.bugfix.rst b/news/171.bugfix.rst
new file mode 100644
index 0000000..38e4443
--- /dev/null
+++ b/news/171.bugfix.rst
@@ -0,0 +1,2 @@
+Fix unsupported syntax in the requirements files which prevented to evaluate
+the specified constraints during test runs [jugmac00].


Test patch:
diff --git a/requirements-testing-zope-4.txt b/requirements-testing-zope-4.txt
index 69f7903..1e27cd3 100644
--- a/requirements-testing-zope-4.txt
+++ b/requirements-testing-zope-4.txt
@@ -1,4 +1,5 @@
--e .[test] -c https://zopefoundation.github.io/Zope/releases/4.5.5/requirements-full.txt
+-e .[test]
+-c https://zopefoundation.github.io/Zope/releases/4.5.5/requirements-full.txt
 
 # Windows specific down here (has to be installed here, fails in buildout)
 # Dependency of zope.sendmail:
diff --git a/requirements-testing-zope-5.txt b/requirements-testing-zope-5.txt
index eee12f1..a551a68 100644
--- a/requirements-testing-zope-5.txt
+++ b/requirements-testing-zope-5.txt
@@ -1,4 +1,5 @@
--e .[test] -c https://zopefoundation.github.io/Zope/releases/5.1.2/requirements-full.txt
+-e .[test]
+-c https://zopefoundation.github.io/Zope/releases/5.1.2/requirements-full.txt
 
 # Windows specific down here (has to be installed here, fails in buildout)
 # Dependency of zope.sendmail: