Skip to content

Commit ab7eaea

Browse files
authored
Drop py39 and remove caps on qiskit. (#31)
2 parents e41a472 + dda2d32 commit ab7eaea

File tree

12 files changed

+21
-28
lines changed

12 files changed

+21
-28
lines changed

.github/actions/install-main-dependencies/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This code is part of a Qiskit project.
2-
#
31
# (C) Copyright IBM 2021, 2023.
42
#
53
# This code is licensed under the Apache License, Version 2.0. You may

.github/actions/install-pipeline/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This code is part of a Qiskit project.
2-
#
31
# (C) Copyright IBM 2021.
42
#
53
# This code is licensed under the Apache License, Version 2.0. You may

.github/actions/run-tests/action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This code is part of a Qiskit project.
2-
#
31
# (C) Copyright IBM 2021, 2023.
42
#
53
# This code is licensed under the Apache License, Version 2.0. You may
@@ -33,7 +31,7 @@ runs:
3331
PYTHONWARNINGS: default
3432
run: |
3533
# run slow tests only on scheduled event or if input flag is set
36-
if [ "${{ inputs.os }}" == "ubuntu-latest" ] && [ "${{ inputs.python-version }}" == "3.9" ]; then
34+
if [ "${{ inputs.os }}" == "ubuntu-latest" ] && [ "${{ inputs.python-version }}" == "3.11" ]; then
3735
export PYTHON="coverage3 run --source qaoa_training_pipeline --parallel-mode"
3836
fi
3937
stestr --test-path test run 2> >(tee /dev/stderr out.txt > /dev/null)

.github/workflows/main.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This code is part of a Qiskit project.
2-
#
31
# (C) Copyright IBM 2021, 2023.
42
#
53
# This code is licensed under the Apache License, Version 2.0. You may
@@ -33,7 +31,7 @@ jobs:
3331
strategy:
3432
matrix:
3533
os: [ubuntu-latest]
36-
python-version: [3.9]
34+
python-version: [3.11]
3735
steps:
3836
- name: Print Concurrency Group
3937
env:
@@ -75,14 +73,14 @@ jobs:
7573
fail-fast: false
7674
matrix:
7775
os: [ubuntu-latest]
78-
python-version: [3.9, 3.12]
76+
python-version: [3.11, 3.12]
7977
include:
8078
- os: macos-latest
81-
python-version: 3.9
79+
python-version: 3.11
8280
- os: macos-latest
8381
python-version: 3.12
8482
- os: windows-latest
85-
python-version: 3.9
83+
python-version: 3.11
8684
- os: windows-latest
8785
python-version: 3.12
8886
steps:
@@ -118,7 +116,7 @@ jobs:
118116
mkdir ./ci-artifact-data
119117
coverage3 combine
120118
mv .coverage ./ci-artifact-data/pipeline.dat
121-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 }}
119+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11 }}
122120
shell: bash
123121
- uses: actions/upload-artifact@v4
124122
with:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ This repository is still in development: new functionality is being added and th
172172
| 12 | More data in result saving in train.py | #26 |
173173
| 13 | Create PPEvaluator from configs | #25 |
174174
| 14 | Custom ansatz operator to state vector | #29 |
175+
| 15 | Remove python 3.9 support | #31 |
175176

176177
## IBM Public Repository Disclosure
177178

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"
44

55
[tool.black]
66
line-length = 100
7-
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
7+
target-version = ['py310', 'py311', 'py312', 'py313']
88

99
[tool.pylint.main]
10-
py-version = "3.9" # update it when bumping minimum supported python version
10+
py-version = "3.12" # update it when bumping minimum supported python version
1111

1212
[tool.pylint.basic]
1313
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"]

qaoa_training_pipeline/training/param_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(
4747
"system": platform.system(),
4848
"processor": platform.processor(),
4949
"platform": platform.platform(),
50-
"qaoa_training_pipeline_version": 14,
50+
"qaoa_training_pipeline_version": 15,
5151
}
5252

5353
# Convert, e.g., np.float to float

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
coverage>=4.4.0,<7.0
1+
coverage>=4.4.0
22
black[jupyter]~=24.1
33
pylint>=2.15.0
44
ddt>=1.2.0,!=1.4.0,!=1.4.3

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ scipy
77
quimb>=1.8.2
88
matplotlib>=3.3
99
python-sat
10-
qiskit>=1.0,<2.0
10+
qiskit
1111
qiskit-optimization[cplex]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
),
3737
install_requires=REQUIREMENTS,
3838
include_package_data=True,
39-
python_requires=">=3.9",
39+
python_requires=">=3.10",
4040
zip_safe=False,
4141
)

0 commit comments

Comments
 (0)