diff --git a/constraints.txt b/constraints.txt new file mode 100644 index 0000000000..cd066084df --- /dev/null +++ b/constraints.txt @@ -0,0 +1,4 @@ +# Numpy 1.25 deprecated some behaviours that we used, and caused some +# tests to flake. See https://github.com/Qiskit/qiskit-terra/issues/10305, +# remove pin when resolving that. +numpy<1.25 \ No newline at end of file diff --git a/tox.ini b/tox.ini index 6839e04a93..e8b550604d 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ isolated_build = true [testenv] usedevelop = True -install_command = pip install -U {opts} {packages} +install_command = pip install -c{toxinidir}/constraints.txt -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} QISKIT_SUPPRESS_PACKAGING_WARNINGS=Y