Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Python 3.6 #1430

Merged
merged 11 commits into from
Feb 21, 2022
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
- name: Build Wheels
env:
CIBW_BEFORE_ALL_LINUX: "yum install -y openblas-devel"
CIBW_SKIP: "cp310-* pp*"
CIBW_SKIP: "cp36-* cp310-* pp*"
CIBW_TEST_COMMAND: "python {project}/tools/verify_wheels.py"
CIBW_ENVIRONMENT_WINDOWS: "CMAKE_GENERATOR='Visual Studio 16 2019'"
run: cibuildwheel --output-dir wheelhouse
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Build wheels
env:
CIBW_BEFORE_ALL_LINUX: "yum install -y openblas-devel"
CIBW_SKIP: "cp310-* pp*"
CIBW_SKIP: "cp36-* cp310-* pp*"
CIBW_TEST_COMMAND: "python {project}/tools/verify_wheels.py"
CIBW_ENVIRONMENT_WINDOWS: "CMAKE_GENERATOR='Visual Studio 16 2019'"
run: |
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_ALL_LINUX: "yum install -y https://dl.fedoraproject.org/pub/epel/7/aarch64/Packages/e/epel-release-7-12.noarch.rpm && yum install -y openblas-devel"
CIBW_SKIP: "cp310-* pp*"
CIBW_SKIP: "cp36-* cp310-* pp*"
CIBW_TEST_COMMAND: "python {project}/tools/verify_wheels.py"
CIBW_ARCHS_LINUX: aarch64
- uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -117,7 +117,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: "cp310-* *-manylinux_i686 pp*"
CIBW_SKIP: "cp36-* cp310-* *-manylinux_i686 pp*"
CIBW_ENVIRONMENT: QISKIT_AER_PACKAGE_NAME=qiskit-aer-gpu AER_THRUST_BACKEND=CUDA CUDACXX=/usr/local/cuda/bin/nvcc
CIBW_TEST_COMMAND: "python {project}/tools/verify_wheels.py"
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9]
os: ["ubuntu-latest"]
env:
AER_THRUST_BACKEND: OMP
Expand All @@ -113,7 +113,6 @@ jobs:
run: python -m pip install -U -c constraints.txt -r requirements-dev.txt wheel
- name: Install terra from source
run: python -m pip install -U -c constraints.txt git+https://github.com/Qiskit/qiskit-terra
if: matrix.python-version != '3.6'
- name: Install openblas
run: |
set -e
Expand Down
5 changes: 5 additions & 0 deletions releasenotes/notes/drop-python36-61553302523fa240.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
upgrade:
- |
Running qiskit-aer with Python 3.6 is no longer supported. Python >= 3.7
is no required to install and run qiskit-aer.
mtreinish marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,12 @@ 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",
"Topic :: Scientific/Engineering",
],
python_requires=">=3.6",
python_requires=">=3.7",
install_requires=requirements,
setup_requires=setup_requirements,
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 2.1
envlist = py36, py37, py38, py39, lint
envlist = py37, py38, py39, lint
skipsdist = True

[testenv]
Expand Down