From 7b8061a87c63a2ed5b697e01b9511b37c4c330d9 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 12:08:02 -0400 Subject: [PATCH 01/11] Pin setuptools in CI The recently released setuptools 64.0.0 release introduced a regression that prevents editable installs from working (see pypa/setuptools#3498). This is blocking CI as we use editable installs to build and install terra for testing. When there is an upstream release fixing this issue we can remove the pins. --- .azure/docs-linux.yml | 2 +- .azure/lint-linux.yml | 2 +- .azure/test-linux.yml | 2 +- .azure/test-macos.yml | 2 +- .azure/test-windows.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.azure/docs-linux.yml b/.azure/docs-linux.yml index 4f1f9206a11c..7bf22d5d2570 100644 --- a/.azure/docs-linux.yml +++ b/.azure/docs-linux.yml @@ -30,7 +30,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip setuptools wheel + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel pip install -U tox sudo apt-get update sudo apt-get install -y graphviz diff --git a/.azure/lint-linux.yml b/.azure/lint-linux.yml index 830acdc1821e..21857f4b6a31 100644 --- a/.azure/lint-linux.yml +++ b/.azure/lint-linux.yml @@ -28,7 +28,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip setuptools wheel virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt diff --git a/.azure/test-linux.yml b/.azure/test-linux.yml index 6389dafc8604..16b96c906007 100644 --- a/.azure/test-linux.yml +++ b/.azure/test-linux.yml @@ -62,7 +62,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip setuptools wheel virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv virtualenv test-job displayName: "Prepare venv" diff --git a/.azure/test-macos.yml b/.azure/test-macos.yml index c0e05f4990ff..610c20e115f7 100644 --- a/.azure/test-macos.yml +++ b/.azure/test-macos.yml @@ -41,7 +41,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip setuptools wheel virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt diff --git a/.azure/test-windows.yml b/.azure/test-windows.yml index 9bac8b2683bf..0d3503d991ee 100644 --- a/.azure/test-windows.yml +++ b/.azure/test-windows.yml @@ -30,7 +30,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip setuptools wheel virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv virtualenv test-job source test-job/Scripts/activate pip install -r requirements.txt -r requirements-dev.txt -c constraints.txt From 831bc6e0dbc828e0437b5ecbb7cf86bdb2bfadfd Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 12:32:06 -0400 Subject: [PATCH 02/11] Remove pip/setuptools/wheel manual install step --- .azure/docs-linux.yml | 1 - .azure/lint-linux.yml | 2 +- .azure/test-linux.yml | 2 +- .azure/test-macos.yml | 2 +- .azure/test-windows.yml | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.azure/docs-linux.yml b/.azure/docs-linux.yml index 7bf22d5d2570..4ba81be9ee72 100644 --- a/.azure/docs-linux.yml +++ b/.azure/docs-linux.yml @@ -30,7 +30,6 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel pip install -U tox sudo apt-get update sudo apt-get install -y graphviz diff --git a/.azure/lint-linux.yml b/.azure/lint-linux.yml index 21857f4b6a31..7b0035c554d3 100644 --- a/.azure/lint-linux.yml +++ b/.azure/lint-linux.yml @@ -28,7 +28,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv + python -m pip install virtualenv virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt diff --git a/.azure/test-linux.yml b/.azure/test-linux.yml index 16b96c906007..fa2f4ddc93cc 100644 --- a/.azure/test-linux.yml +++ b/.azure/test-linux.yml @@ -62,7 +62,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv + python -m pip install virtualenv virtualenv test-job displayName: "Prepare venv" diff --git a/.azure/test-macos.yml b/.azure/test-macos.yml index 610c20e115f7..fc92107760ea 100644 --- a/.azure/test-macos.yml +++ b/.azure/test-macos.yml @@ -41,7 +41,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv + python -m pip install virtualenv virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt diff --git a/.azure/test-windows.yml b/.azure/test-windows.yml index 0d3503d991ee..3f4138e7a57f 100644 --- a/.azure/test-windows.yml +++ b/.azure/test-windows.yml @@ -30,7 +30,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv + python -m pip install virtualenv virtualenv test-job source test-job/Scripts/activate pip install -r requirements.txt -r requirements-dev.txt -c constraints.txt From 3ada81933069ee2fff8904863533fbad68c5e923 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 12:38:06 -0400 Subject: [PATCH 03/11] Try venv instead of virtualenv --- .azure/lint-linux.yml | 3 +-- .azure/test-linux.yml | 5 ++--- .azure/test-macos.yml | 3 +-- .azure/test-windows.yml | 3 +-- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.azure/lint-linux.yml b/.azure/lint-linux.yml index 7b0035c554d3..588a0cc7ea15 100644 --- a/.azure/lint-linux.yml +++ b/.azure/lint-linux.yml @@ -28,8 +28,7 @@ jobs: - bash: | set -e - python -m pip install virtualenv - virtualenv test-job + python -m venv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt pip install -U -c constraints.txt -e . diff --git a/.azure/test-linux.yml b/.azure/test-linux.yml index fa2f4ddc93cc..b589c3449ae5 100644 --- a/.azure/test-linux.yml +++ b/.azure/test-linux.yml @@ -62,8 +62,7 @@ jobs: - bash: | set -e - python -m pip install virtualenv - virtualenv test-job + python -m venv test-job displayName: "Prepare venv" - ${{ if eq(parameters.installFromSdist, true) }}: @@ -158,7 +157,7 @@ jobs: - ${{ if eq(parameters.testImages, true) }}: - bash: | set -e - virtualenv image_tests + python -m venv image_tests image_tests/bin/pip install -U -r requirements.txt -c constraints.txt image_tests/bin/pip install -U -c constraints.txt -e ".[visualization]" sudo apt-get update diff --git a/.azure/test-macos.yml b/.azure/test-macos.yml index fc92107760ea..770350af9a13 100644 --- a/.azure/test-macos.yml +++ b/.azure/test-macos.yml @@ -41,8 +41,7 @@ jobs: - bash: | set -e - python -m pip install virtualenv - virtualenv test-job + python -m venv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt pip install -U -c constraints.txt -e . diff --git a/.azure/test-windows.yml b/.azure/test-windows.yml index 3f4138e7a57f..e23b7cfad608 100644 --- a/.azure/test-windows.yml +++ b/.azure/test-windows.yml @@ -30,8 +30,7 @@ jobs: - bash: | set -e - python -m pip install virtualenv - virtualenv test-job + python -m venv test-job source test-job/Scripts/activate pip install -r requirements.txt -r requirements-dev.txt -c constraints.txt pip install -c constraints.txt -e . From 08312b87c772aef23f8e8896f3bae4e804af6feb Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 12:40:58 -0400 Subject: [PATCH 04/11] Revert "Try venv instead of virtualenv" This reverts commit 3ada81933069ee2fff8904863533fbad68c5e923. --- .azure/lint-linux.yml | 3 ++- .azure/test-linux.yml | 5 +++-- .azure/test-macos.yml | 3 ++- .azure/test-windows.yml | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.azure/lint-linux.yml b/.azure/lint-linux.yml index 588a0cc7ea15..7b0035c554d3 100644 --- a/.azure/lint-linux.yml +++ b/.azure/lint-linux.yml @@ -28,7 +28,8 @@ jobs: - bash: | set -e - python -m venv test-job + python -m pip install virtualenv + virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt pip install -U -c constraints.txt -e . diff --git a/.azure/test-linux.yml b/.azure/test-linux.yml index b589c3449ae5..fa2f4ddc93cc 100644 --- a/.azure/test-linux.yml +++ b/.azure/test-linux.yml @@ -62,7 +62,8 @@ jobs: - bash: | set -e - python -m venv test-job + python -m pip install virtualenv + virtualenv test-job displayName: "Prepare venv" - ${{ if eq(parameters.installFromSdist, true) }}: @@ -157,7 +158,7 @@ jobs: - ${{ if eq(parameters.testImages, true) }}: - bash: | set -e - python -m venv image_tests + virtualenv image_tests image_tests/bin/pip install -U -r requirements.txt -c constraints.txt image_tests/bin/pip install -U -c constraints.txt -e ".[visualization]" sudo apt-get update diff --git a/.azure/test-macos.yml b/.azure/test-macos.yml index 770350af9a13..fc92107760ea 100644 --- a/.azure/test-macos.yml +++ b/.azure/test-macos.yml @@ -41,7 +41,8 @@ jobs: - bash: | set -e - python -m venv test-job + python -m pip install virtualenv + virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt pip install -U -c constraints.txt -e . diff --git a/.azure/test-windows.yml b/.azure/test-windows.yml index e23b7cfad608..3f4138e7a57f 100644 --- a/.azure/test-windows.yml +++ b/.azure/test-windows.yml @@ -30,7 +30,8 @@ jobs: - bash: | set -e - python -m venv test-job + python -m pip install virtualenv + virtualenv test-job source test-job/Scripts/activate pip install -r requirements.txt -r requirements-dev.txt -c constraints.txt pip install -c constraints.txt -e . From 217f6c88df385d0f25a58107d4be9f74e285d0d8 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 12:41:10 -0400 Subject: [PATCH 05/11] Revert "Remove pip/setuptools/wheel manual install step" This reverts commit 831bc6e0dbc828e0437b5ecbb7cf86bdb2bfadfd. --- .azure/docs-linux.yml | 1 + .azure/lint-linux.yml | 2 +- .azure/test-linux.yml | 2 +- .azure/test-macos.yml | 2 +- .azure/test-windows.yml | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.azure/docs-linux.yml b/.azure/docs-linux.yml index 4ba81be9ee72..7bf22d5d2570 100644 --- a/.azure/docs-linux.yml +++ b/.azure/docs-linux.yml @@ -30,6 +30,7 @@ jobs: - bash: | set -e + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel pip install -U tox sudo apt-get update sudo apt-get install -y graphviz diff --git a/.azure/lint-linux.yml b/.azure/lint-linux.yml index 7b0035c554d3..21857f4b6a31 100644 --- a/.azure/lint-linux.yml +++ b/.azure/lint-linux.yml @@ -28,7 +28,7 @@ jobs: - bash: | set -e - python -m pip install virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt diff --git a/.azure/test-linux.yml b/.azure/test-linux.yml index fa2f4ddc93cc..16b96c906007 100644 --- a/.azure/test-linux.yml +++ b/.azure/test-linux.yml @@ -62,7 +62,7 @@ jobs: - bash: | set -e - python -m pip install virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv virtualenv test-job displayName: "Prepare venv" diff --git a/.azure/test-macos.yml b/.azure/test-macos.yml index fc92107760ea..610c20e115f7 100644 --- a/.azure/test-macos.yml +++ b/.azure/test-macos.yml @@ -41,7 +41,7 @@ jobs: - bash: | set -e - python -m pip install virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt diff --git a/.azure/test-windows.yml b/.azure/test-windows.yml index 3f4138e7a57f..0d3503d991ee 100644 --- a/.azure/test-windows.yml +++ b/.azure/test-windows.yml @@ -30,7 +30,7 @@ jobs: - bash: | set -e - python -m pip install virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv virtualenv test-job source test-job/Scripts/activate pip install -r requirements.txt -r requirements-dev.txt -c constraints.txt From ead5e1316bc8360dd352fc8460dbd7345adb8986 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 12:45:01 -0400 Subject: [PATCH 06/11] Pin in constraints.txt too --- .azure/docs-linux.yml | 4 ++-- .azure/lint-linux.yml | 2 +- .azure/test-linux.yml | 2 +- .azure/test-macos.yml | 2 +- .azure/test-windows.yml | 2 +- constraints.txt | 4 ++++ 6 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.azure/docs-linux.yml b/.azure/docs-linux.yml index 7bf22d5d2570..7b6a4dfc0ef4 100644 --- a/.azure/docs-linux.yml +++ b/.azure/docs-linux.yml @@ -30,8 +30,8 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel - pip install -U tox + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel -c constraints.txt + pip install -U tox -c constraints.txt sudo apt-get update sudo apt-get install -y graphviz displayName: 'Install dependencies' diff --git a/.azure/lint-linux.yml b/.azure/lint-linux.yml index 21857f4b6a31..42fc09dc09ec 100644 --- a/.azure/lint-linux.yml +++ b/.azure/lint-linux.yml @@ -28,7 +28,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv -c constraints.txt virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt diff --git a/.azure/test-linux.yml b/.azure/test-linux.yml index 16b96c906007..317f0749ec66 100644 --- a/.azure/test-linux.yml +++ b/.azure/test-linux.yml @@ -62,7 +62,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv -c constraints.txt virtualenv test-job displayName: "Prepare venv" diff --git a/.azure/test-macos.yml b/.azure/test-macos.yml index 610c20e115f7..eb137514c8ef 100644 --- a/.azure/test-macos.yml +++ b/.azure/test-macos.yml @@ -41,7 +41,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv -c constraints.txt virtualenv test-job source test-job/bin/activate pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt diff --git a/.azure/test-windows.yml b/.azure/test-windows.yml index 0d3503d991ee..fd65e9d2f0cf 100644 --- a/.azure/test-windows.yml +++ b/.azure/test-windows.yml @@ -30,7 +30,7 @@ jobs: - bash: | set -e - python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv + python -m pip install --upgrade pip 'setuptools<64.0.0' wheel virtualenv -c constraints.txt virtualenv test-job source test-job/Scripts/activate pip install -r requirements.txt -r requirements-dev.txt -c constraints.txt diff --git a/constraints.txt b/constraints.txt index 3cb8598cb345..dbe2bc0b89a5 100644 --- a/constraints.txt +++ b/constraints.txt @@ -13,3 +13,7 @@ pyparsing<3.0.0 # to work with the new jinja version (the jinja maintainers aren't going to # fix things) pin to the previous working version. jinja2==3.0.3 + +# setuptools 64.0.0 breaks editable installs. Pin to an old version until +# see https://github.com/pypa/setuptools/issues/3498 +setuptools==63.4.3 From d19828d555ea6af8ba82ba81c827d20fafeb25b5 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 12:49:16 -0400 Subject: [PATCH 07/11] Lower version further --- constraints.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constraints.txt b/constraints.txt index dbe2bc0b89a5..bf4e304596c5 100644 --- a/constraints.txt +++ b/constraints.txt @@ -16,4 +16,4 @@ jinja2==3.0.3 # setuptools 64.0.0 breaks editable installs. Pin to an old version until # see https://github.com/pypa/setuptools/issues/3498 -setuptools==63.4.3 +setuptools==63.3.0 From e1050563c1e79c6c5ee1716470f67331237a4b68 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 12:54:05 -0400 Subject: [PATCH 08/11] Pin setuptools-rust too --- pyproject.toml | 2 +- requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9282c3b8c8d0..728e2a2be55a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "wheel", "setuptools-rust"] +requires = ["setuptools", "wheel", "setuptools-rust<1.5.0"] build-backend = "setuptools.build_meta" [tool.black] diff --git a/requirements-dev.txt b/requirements-dev.txt index eef50c6b96e1..fb5e2cbeae18 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ -setuptools-rust +setuptools-rust<1.5.0 coverage>=4.4.0 hypothesis>=4.24.3 python-constraint>=1.4 From 989bf258c017c6f792965f85e1b5c5bd6addea5f Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 14:34:35 -0400 Subject: [PATCH 09/11] Set editable install to legacy mode via env var --- .azure/docs-linux.yml | 2 ++ .azure/lint-linux.yml | 2 ++ .azure/test-linux.yml | 3 +++ .azure/test-macos.yml | 2 ++ .azure/test-windows.yml | 2 ++ tox.ini | 2 +- 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.azure/docs-linux.yml b/.azure/docs-linux.yml index 7b6a4dfc0ef4..984b88b34156 100644 --- a/.azure/docs-linux.yml +++ b/.azure/docs-linux.yml @@ -35,6 +35,8 @@ jobs: sudo apt-get update sudo apt-get install -y graphviz displayName: 'Install dependencies' + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - bash: | tox -edocs diff --git a/.azure/lint-linux.yml b/.azure/lint-linux.yml index 42fc09dc09ec..5fddd6afef3f 100644 --- a/.azure/lint-linux.yml +++ b/.azure/lint-linux.yml @@ -36,6 +36,8 @@ jobs: pip install -U "qiskit-aer" -c constraints.txt python setup.py build_ext --inplace displayName: 'Install dependencies' + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - bash: | set -e diff --git a/.azure/test-linux.yml b/.azure/test-linux.yml index 317f0749ec66..7c309d205181 100644 --- a/.azure/test-linux.yml +++ b/.azure/test-linux.yml @@ -82,6 +82,9 @@ jobs: pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt pip install -U -c constraints.txt -e . displayName: "Install Terra directly" + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" + - bash: | set -e diff --git a/.azure/test-macos.yml b/.azure/test-macos.yml index eb137514c8ef..4417dd8add68 100644 --- a/.azure/test-macos.yml +++ b/.azure/test-macos.yml @@ -49,6 +49,8 @@ jobs: python setup.py build_ext --inplace pip check displayName: 'Install dependencies' + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - bash: | set -e diff --git a/.azure/test-windows.yml b/.azure/test-windows.yml index fd65e9d2f0cf..8140a6ce4fbb 100644 --- a/.azure/test-windows.yml +++ b/.azure/test-windows.yml @@ -39,6 +39,8 @@ jobs: python setup.py build_ext --inplace pip check displayName: 'Install dependencies' + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - bash: | set -e diff --git a/tox.ini b/tox.ini index f457cab047e0..0561b10732a7 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ setenv = QISKIT_SUPRESS_PACKAGING_WARNINGS=Y QISKIT_TEST_CAPTURE_STREAMS=1 QISKIT_PARALLEL=FALSE -passenv = RAYON_NUM_THREADS OMP_NUM_THREADS QISKIT_PARALLEL +passenv = RAYON_NUM_THREADS OMP_NUM_THREADS QISKIT_PARALLEL SETUPTOOLS_ENABLE_FEATURES deps = -r{toxinidir}/requirements.txt -r{toxinidir}/requirements-dev.txt commands = From 578d04353310be35b8f8674509ccd833bf78cd26 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 14:56:19 -0400 Subject: [PATCH 10/11] Set env variable correctly everywhere we build terra --- .azure/docs-linux.yml | 4 ++-- .azure/tutorials-linux.yml | 2 ++ .github/workflows/coverage.yml | 2 ++ .github/workflows/randomized_tests.yml | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.azure/docs-linux.yml b/.azure/docs-linux.yml index 984b88b34156..0f8e3015c0eb 100644 --- a/.azure/docs-linux.yml +++ b/.azure/docs-linux.yml @@ -35,12 +35,12 @@ jobs: sudo apt-get update sudo apt-get install -y graphviz displayName: 'Install dependencies' - env: - SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - bash: | tox -edocs displayName: 'Run Docs build' + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - task: ArchiveFiles@2 inputs: diff --git a/.azure/tutorials-linux.yml b/.azure/tutorials-linux.yml index 03eac35bc193..2ce7cb9026c8 100644 --- a/.azure/tutorials-linux.yml +++ b/.azure/tutorials-linux.yml @@ -39,6 +39,8 @@ jobs: sudo apt-get install -y graphviz pandoc pip check displayName: 'Install dependencies' + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - bash: | set -e diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6e149a0d39c7..08861cb1def9 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -20,6 +20,8 @@ jobs: run: pip install tox coveragepy-lcov - name: Run coverage report run: tox -ecoverage + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - name: Convert to lcov run: coveragepy-lcov --output_file_path coveralls.info - name: Coveralls diff --git a/.github/workflows/randomized_tests.yml b/.github/workflows/randomized_tests.yml index 5465e499b105..f96f84e0ed78 100644 --- a/.github/workflows/randomized_tests.yml +++ b/.github/workflows/randomized_tests.yml @@ -20,6 +20,8 @@ jobs: pip install -c constraints.txt -e . pip install "qiskit-ibmq-provider" -c constraints.txt pip install "qiskit-aer" + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - name: Run randomized tests run: make test_randomized - name: Create comment on failed test run From 938d02d9b00fb8df5beee34c3ecfc30f9539e066 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Thu, 11 Aug 2022 16:29:32 -0400 Subject: [PATCH 11/11] Add missing env variable setting for image tests --- .azure/test-linux.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.azure/test-linux.yml b/.azure/test-linux.yml index 7c309d205181..14d1c090f822 100644 --- a/.azure/test-linux.yml +++ b/.azure/test-linux.yml @@ -168,6 +168,8 @@ jobs: sudo apt-get install -y graphviz pandoc image_tests/bin/pip check displayName: 'Install dependencies' + env: + SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" - bash: image_tests/bin/python -m unittest discover -v test/ipynb displayName: 'Run image test'