Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Python 3.9 #360

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all 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/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
Loading