-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qiskit 1.2.0 was the final minor version release of qiskit with Python 3.8 support. As Python 3.8 is going EoL before the next Qiskit minor release 1.3.0 we can drop support for running with 3.8 on the main branch now. This commit makes that change and updates everything using python 3.8 currently to use our new minimum instead.
- Loading branch information
Showing
10 changed files
with
38 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,35 +41,6 @@ jobs: | |
with: | ||
path: ./wheelhouse/*.whl | ||
name: wheels-${{ matrix.os }} | ||
build_wheels_macos_arm_py38: | ||
name: Build wheels on macOS arm | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-12] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: llvm-tools-preview | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin | ||
CIBW_BUILD: cp38-macosx_universal2 cp38-macosx_arm64 | ||
CIBW_ARCHS_MACOS: arm64 universal2 | ||
CIBW_ENVIRONMENT: >- | ||
CARGO_BUILD_TARGET="aarch64-apple-darwin" | ||
PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: wheels-${{ matrix.os }}-arm | ||
build_wheels_32bit: | ||
name: Build wheels 32bit | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -100,7 +71,7 @@ jobs: | |
environment: release | ||
permissions: | ||
id-token: write | ||
needs: ["build_wheels", "build_wheels_32bit", "build_wheels_macos_arm_py38"] | ||
needs: ["build_wheels", "build_wheels_32bit"] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" | |
[project] | ||
name = "qiskit" | ||
description = "An open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives." | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
license = {text = "Apache 2.0"} | ||
authors = [ | ||
{ name = "Qiskit Development Team", email = "[email protected]" }, | ||
|
@@ -27,7 +27,6 @@ classifiers = [ | |
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
|
@@ -134,12 +133,12 @@ include = ["qiskit", "qiskit.*"] | |
|
||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py38', 'py39', 'py310', 'py311'] | ||
target-version = ['py39', 'py310', 'py311'] | ||
|
||
[tool.cibuildwheel] | ||
manylinux-x86_64-image = "manylinux2014" | ||
manylinux-i686-image = "manylinux2014" | ||
skip = "pp* cp36-* cp37-* *musllinux* *win32 *i686 cp38-macosx_arm64" | ||
skip = "pp* cp36-* cp37-* cp38-* *musllinux* *win32 *i686 cp38-macosx_arm64" | ||
test-skip = "*win32 *linux_i686" | ||
test-command = "python {project}/examples/python/stochastic_swap.py" | ||
# We need to use pre-built versions of Numpy and Scipy in the tests; they have a | ||
|
@@ -191,7 +190,7 @@ extension-pkg-allow-list = [ | |
"tweedledum", | ||
] | ||
load-plugins = ["pylint.extensions.docparams", "pylint.extensions.docstyle"] | ||
py-version = "3.8" # update it when bumping minimum supported python version | ||
py-version = "3.9" # update it when bumping minimum supported python version | ||
|
||
[tool.pylint.basic] | ||
good-names = ["a", "b", "i", "j", "k", "d", "n", "m", "ex", "v", "w", "x", "y", "z", "Run", "_", "logger", "q", "c", "r", "qr", "cr", "qc", "nd", "pi", "op", "b", "ar", "br", "p", "cp", "ax", "dt", "__unittest", "iSwapGate", "mu"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
upgrade: | ||
- | | ||
The minimum supported version of Python is now 3.9, this has been raised | ||
from the previous minimum support version of 3.8. This change was necessary | ||
because the upstream cPython project no longer supports Python 3.8. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters