Skip to content

Commit

Permalink
Drop support for Python 3.9 (qiskit-community#360)
Browse files Browse the repository at this point in the history
Co-authored-by: Kento Ueda <[email protected]>
  • Loading branch information
DanPuzzuoli and to24toro authored Sep 24, 2024
1 parent 7b7903d commit 79af8e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 1 addition & 3 deletions qiskit_dynamics/arraylias/alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@


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


Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/drop-3.9-068213c3b17235bd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
upgrade:
- |
Support for Python 3.9 has been dropped.
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 @@ -75,7 +74,7 @@
},
install_requires=requirements,
include_package_data=True,
python_requires=">=3.9",
python_requires=">=3.10",
extras_require={
"jax": jax_extras
},
Expand Down

0 comments on commit 79af8e6

Please sign in to comment.