Skip to content

Commit 79af8e6

Browse files
Drop support for Python 3.9 (#360)
Co-authored-by: Kento Ueda <38037695+to24toro@users.noreply.github.com>
1 parent 7b7903d commit 79af8e6

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ['3.9', '3.10', '3.11', '3.12']
13+
python-version: ['3.10', '3.11', '3.12']
1414
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
1515
steps:
1616
- uses: actions/checkout@v2

qiskit_dynamics/arraylias/alias.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@
7272

7373

7474
def _isArrayLike(x: any) -> bool:
75-
"""Return true if x is an ArrayLike object. Equivalent to isinstance(x, ArrayLike), which does
76-
not work in Python 3.9.
77-
"""
75+
"""Return true if x is an ArrayLike object. Equivalent to isinstance(x, ArrayLike)."""
7876
return isinstance(x, (DYNAMICS_NUMPY_ALIAS.registered_types(), list))
7977

8078

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
upgrade:
3+
- |
4+
Support for Python 3.9 has been dropped.

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"Operating System :: MacOS",
6262
"Operating System :: POSIX :: Linux",
6363
"Programming Language :: Python :: 3 :: Only",
64-
"Programming Language :: Python :: 3.9",
6564
"Programming Language :: Python :: 3.10",
6665
"Programming Language :: Python :: 3.11",
6766
"Programming Language :: Python :: 3.12",
@@ -75,7 +74,7 @@
7574
},
7675
install_requires=requirements,
7776
include_package_data=True,
78-
python_requires=">=3.9",
77+
python_requires=">=3.10",
7978
extras_require={
8079
"jax": jax_extras
8180
},

0 commit comments

Comments
 (0)