From 152ac0531e50b1af821f4b0b60041e8edbab695e Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Tue, 1 Mar 2022 08:50:33 -0500 Subject: [PATCH] Update asv.conf.json to support recent changes This commit updates the asv configuration to support two recent changes in the terra repo. The first is updating the supported python version list to reflect the current versions supported by terra. Python 3.6 is no longer supported and python 3.10 is now supported. Additionally, after Qiskit/qiskit-terra#7658 merged setuptools-rust and Rust are now being used to build compiled extensions. While cython is still being used, it's use will be removed soon with Qiskit/qiskit-terra#7702. This commit updates the build configuration to build the rust extension and then build a wheel from it instead of building the cython extension. --- asv.conf.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/asv.conf.json b/asv.conf.json index 5d7be20933e2..72da45ad338f 100644 --- a/asv.conf.json +++ b/asv.conf.json @@ -35,8 +35,8 @@ "return-code=any python -mpip uninstall -y qiskit-ignis" ], "build_command": [ - "pip install -U Cython", - "python setup.py build", + "pip install -U Cython setuptools-rust", + "python setup.py build_rust --release", "PIP_NO_BUILD_ISOLATION=false python -mpip wheel --no-deps --no-index -w {build_cache_dir} {build_dir}" ], @@ -67,7 +67,7 @@ // The Pythons you'd like to test against. If not provided, defaults // to the current version of Python used to run `asv`. - "pythons": ["3.6", "3.7", "3.8", "3.9"], + "pythons": ["3.7", "3.8", "3.9", "3.10"], // The list of conda channel names to be searched for benchmark // dependency packages in the specified order