diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 157db0cb5d..661b2e5d05 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -135,7 +135,7 @@ jobs: - name: Build wheels env: CIBW_BEFORE_ALL: "yum install -y yum-utils wget && wget https://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-rhel6-10-1-local-10.1.243-418.87.00-1.0-1.x86_64.rpm && rpm -i cuda-repo-rhel6-10-1-local-10.1.243-418.87.00-1.0-1.x86_64.rpm && yum clean all && yum -y install cuda-10-1 openblas-devel" - CIBW_SKIP: "*-manylinux_i686 pp* *musllinux*" + CIBW_SKIP: "*-manylinux_i686 pp* cp36* *musllinux*" CIBW_ENVIRONMENT: QISKIT_AER_PACKAGE_NAME=qiskit-aer-gpu AER_THRUST_BACKEND=CUDA CUDACXX=/usr/local/cuda/bin/nvcc run: | python -m cibuildwheel --output-dir wheelhouse diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3354683029..e0fd9e38f2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,7 +87,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9, "3.10"] + python-version: [3.7, 3.8, 3.9, "3.10"] os: ["ubuntu-latest"] env: AER_THRUST_BACKEND: OMP diff --git a/pyproject.toml b/pyproject.toml index 01b42e6c56..dfe3acc9e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ build-backend = "setuptools.build_meta" [tool.cibuildwheel] manylinux-x86_64-image = "manylinux2014" manylinux-i686-image = "manylinux2010" -skip = "pp* *musllinux*" +skip = "pp* cp36* *musllinux*" test-skip = "cp310-win32 cp310-manylinux_i686" test-command = "python {project}/tools/verify_wheels.py" # We need to use pre-built versions of Numpy and Scipy in the tests; they have a @@ -28,7 +28,7 @@ before-test = "pip install --only-binary=numpy,scipy numpy scipy" before-all = "yum install -y openblas-devel" [tool.cibuildwheel.windows] -environment = "CMAKE_GENERATOR='Visual Studio 16 2019'" +environment = { CMAKE_GENERATOR = "Visual Studio 16 2019"} # For older Pythons we maintain our manylinux2010 support. [[tool.cibuildwheel.overrides]] diff --git a/releasenotes/notes/drop-python36-61553302523fa240.yaml b/releasenotes/notes/drop-python36-61553302523fa240.yaml new file mode 100644 index 0000000000..0d590b6231 --- /dev/null +++ b/releasenotes/notes/drop-python36-61553302523fa240.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + Running qiskit-aer with Python 3.6 is no longer supported. Python >= 3.7 + is now required to install and run qiskit-aer. diff --git a/setup.py b/setup.py index 846553ce21..62cffc976a 100644 --- a/setup.py +++ b/setup.py @@ -131,14 +131,13 @@ def install_needed_req(import_name, package_name=None, min_version=None, max_ver "Operating System :: POSIX :: Linux", "Programming Language :: C++", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Topic :: Scientific/Engineering", ], - python_requires=">=3.6", + python_requires=">=3.7", install_requires=requirements, setup_requires=setup_requirements, include_package_data=True, diff --git a/tox.ini b/tox.ini index f980c8f2d4..abedfdfe3e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.1 -envlist = py36, py37, py38, py39, py310, lint +envlist = py37, py38, py39, py310, lint skipsdist = True [testenv]