Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
id-token: write
strategy:
matrix:
python-version: [3.9]
python-version: [3.10]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
python-version: [3.10]
python-version: ['3.10']

steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
Expand Down
42 changes: 17 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9]
python-version: [3.10]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
python-version: [3.10]
python-version: ['3.10']

steps:
- name: Print Concurrency Group
env:
Expand Down Expand Up @@ -112,15 +112,15 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
python-version: ['3.10', 3.11, 3.12, 3.13]
include:
# macos-latest is an Arm64 image
- os: macos-latest
python-version: 3.9
python-version: 3.10
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
python-version: 3.10
python-version: '3.10'

- os: macos-latest
python-version: 3.13
- os: windows-latest
python-version: 3.9
python-version: 3.10
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
python-version: 3.10
python-version: '3.10'

- os: windows-latest
python-version: 3.13
steps:
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
run: |
coverage3 combine
mv .coverage ./ci-artifact-data/ml.dat
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.10 }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.10 }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' }}

shell: bash
- uses: actions/upload-artifact@v5
with:
Expand All @@ -184,7 +184,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.9, 3.13]
python-version: [3.10, 3.13]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
python-version: [3.10, 3.13]
python-version: ['3.10', 3.13]

steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -247,29 +247,25 @@ jobs:
cd docs/_build/html
mkdir artifacts
tar -zcvf artifacts/tutorials.tar.gz --exclude=./artifacts .
if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
if: ${{ matrix.python-version == 3.10 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if: ${{ matrix.python-version == 3.10 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
if: ${{ matrix.python-version == '3.10' && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}

shell: bash
- name: Run upload stable tutorials
uses: actions/upload-artifact@v5
with:
name: tutorials-stable${{ matrix.python-version }}
path: docs/_build/html/artifacts/tutorials.tar.gz
if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
if: ${{ matrix.python-version == 3.10 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if: ${{ matrix.python-version == 3.10 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
if: ${{ matrix.python-version == '3.10' && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}

Deprecation_Messages_and_Coverage:
needs: [Checks, MachineLearning, Tutorials]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
python-version: [3.10]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
python-version: [3.10]
python-version: ['3.10']

steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v6
with:
name: ubuntu-latest-3.9
path: /tmp/u39
- uses: actions/download-artifact@v6
with:
name: ubuntu-latest-3.10
Expand All @@ -288,32 +284,28 @@ jobs:
path: /tmp/u313
- uses: actions/download-artifact@v6
with:
name: macos-latest-3.9
path: /tmp/m39
name: macos-latest-3.10
path: /tmp/m310
- uses: actions/download-artifact@v6
with:
name: macos-latest-3.13
path: /tmp/m313
- uses: actions/download-artifact@v6
with:
name: windows-latest-3.9
path: /tmp/w39
name: windows-latest-3.10
path: /tmp/w310
- uses: actions/download-artifact@v6
with:
name: windows-latest-3.13
path: /tmp/w313

- name: Install Dependencies
run: pip install -U coverage coveralls diff-cover
shell: bash
- name: Combined Deprecation Messages
run: |
sort -f -u /tmp/u39/ml.dep /tmp/u310/ml.dep /tmp/u311/ml.dep /tmp/u312/ml.dep /tmp/u313/ml.dep /tmp/m39/ml.dep /tmp/m313/ml.dep /tmp/w39/ml.dep /tmp/w313/ml.dep || true
sort -f -u /tmp/u310/ml.dep /tmp/u311/ml.dep /tmp/u312/ml.dep /tmp/u313/ml.dep /tmp/m310/ml.dep /tmp/m313/ml.dep /tmp/w310/ml.dep /tmp/w313/ml.dep || true
shell: bash
- name: Coverage combine
run: coverage3 combine /tmp/u39/ml.dat
shell: bash
- name: Upload to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github
shell: bash
run: coverage3 combine /tmp/u310/ml.dat
shell: bash
6 changes: 6 additions & 0 deletions releasenotes/drop-python-39-eol-991-2025.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
upgrade:
- |
Qiskit Machine Learning no longer supports Python 3.9, following its
EoL in October 2025. The minimum required Python
version is now 3.10.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -74,7 +73,7 @@
),
install_requires=REQUIREMENTS,
include_package_data=True,
python_requires=">=3.9",
python_requires=">=3.10",
extras_require={
"torch": ["torch"],
"sparse": ["sparse"],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
# Sets this min.version because of differences with env_tmp_dir env.
minversion = 4.0.2
envlist = py39, py310, py311, py312, py313, lint, gpu, gpu-amd
envlist = py310, py311, py312, py313, lint, gpu, gpu-amd
skipsdist = True

[testenv]
Expand Down
Loading