Skip to content

Commit 00faf96

Browse files
authored
Use a patched qiskit-ibm-runtime when testing Qiskit main (#1389)
This change runs the Qiskit main branch tests against a fork of Qiskit runtime with some `Qiskit<1` code (and the qiskit-ibm-provider dependency) removed. It can be undone once qiskit-ibm-runtime releases a version compatible with Qiskit 1.0.
1 parent b4fc262 commit 00faf96

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tox.ini

+8-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ commands =
3535
[testenv:qiskit-main]
3636
usedevelop = True
3737
install_command = pip install -U {opts} {packages}
38+
deps =
39+
{[testenv]deps}
40+
git+https://github.com/wshanks/qiskit-ibm-runtime.git@no-provider
3841
commands_pre =
3942
# We must remove qiskit-terra because some dependencies pull it in and it
4043
# conflicts with qiskit main. We must remove qiskit-ibm-provider because it gives
4144
# an import error for qiskit main and it gets automatically imported by qiskit's
4245
# plugin mechanism.
43-
pip uninstall -y qiskit qiskit-terra qiskit-ibm-provider
46+
pip uninstall -y qiskit qiskit-terra
4447
pip install git+https://github.com/Qiskit/qiskit
4548
commands = stestr run {posargs}
4649

@@ -105,9 +108,12 @@ passenv =
105108
PROD_BUILD
106109
RELEASE_STRING
107110
VERSION_STRING
111+
deps =
112+
{[testenv]deps}
113+
git+https://github.com/wshanks/qiskit-ibm-runtime.git@no-provider
108114
commands_pre =
109115
# See comment for qiskit-main
110-
pip uninstall -y qiskit qiskit-terra qiskit-ibm-provider
116+
pip uninstall -y qiskit qiskit-terra
111117
pip install git+https://github.com/Qiskit/qiskit
112118
commands =
113119
sphinx-build -j auto -T -W --keep-going -b html {posargs} docs/ docs/_build/html

0 commit comments

Comments
 (0)