diff --git a/.github/workflows/deploy-code.yml b/.github/workflows/deploy-code.yml index c0bdd810a..b13cbc2c2 100644 --- a/.github/workflows/deploy-code.yml +++ b/.github/workflows/deploy-code.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7] + python-version: [3.8] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6adb317a3..bdf7cad61 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -116,7 +116,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: [3.7, 3.8, 3.9, '3.10', 3.11] + python-version: [3.8, 3.9, '3.10', 3.11] include: - os: macos-latest python-version: 3.8 @@ -222,7 +222,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: [3.7, 3.8] + python-version: [3.8, 3.11] steps: - uses: actions/checkout@v3 with: @@ -307,10 +307,6 @@ jobs: - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - uses: actions/download-artifact@v3 - with: - name: ubuntu-latest-3.7 - path: /tmp/o37 - uses: actions/download-artifact@v3 with: name: ubuntu-latest-3.8 @@ -348,7 +344,7 @@ jobs: shell: bash - name: Combined Deprecation Messages run: | - sort -f -u /tmp/o37/opt.dep /tmp/o38/opt.dep /tmp/o39/opt.dep /tmp/o310/opt.dep /tmp/o311/opt.dep /tmp/m38/opt.dep /tmp/m310/opt.dep /tmp/w38/opt.dep /tmp/w310/opt.dep || true + sort -f -u /tmp/o38/opt.dep /tmp/o39/opt.dep /tmp/o310/opt.dep /tmp/o311/opt.dep /tmp/m38/opt.dep /tmp/m310/opt.dep /tmp/w38/opt.dep /tmp/w310/opt.dep || true shell: bash - name: Coverage combine run: coverage3 combine /tmp/o38/opt.dat diff --git a/pyproject.toml b/pyproject.toml index 6c0857b79..f9728a2be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,4 +4,4 @@ build-backend = "setuptools.build_meta" [tool.black] line-length = 100 -target-version = ['py37', 'py38', 'py39', 'py310'] +target-version = ['py38', 'py39', 'py310', 'py311'] diff --git a/releasenotes/notes/drop_python_37-c640811d7c84520e.yaml b/releasenotes/notes/drop_python_37-c640811d7c84520e.yaml new file mode 100644 index 000000000..8e5ec0429 --- /dev/null +++ b/releasenotes/notes/drop_python_37-c640811d7c84520e.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - | + Support for running with Python 3.7 has been removed. + To run Qiskit Optimization you need a minimum Python version of 3.8. + diff --git a/setup.py b/setup.py index e98ff327c..b348c10de 100644 --- a/setup.py +++ b/setup.py @@ -61,7 +61,6 @@ "Operating System :: MacOS", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", @@ -72,7 +71,7 @@ packages=setuptools.find_packages(include=["qiskit_optimization", "qiskit_optimization.*"]), install_requires=REQUIREMENTS, include_package_data=True, - python_requires=">=3.7", + python_requires=">=3.8", extras_require={ "cplex": ["cplex"], "cvx": ["cvxpy"], diff --git a/tox.ini b/tox.ini index 507d664c1..cdd43fa1b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.3.0 -envlist = py37, py38, py39, py310, py311, lint +envlist = py38, py39, py310, py311, lint skipsdist = True [testenv]