From 51dbeae74bf80a0839e12772503648bc177add7f Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Tue, 27 Jan 2026 09:55:31 -0500 Subject: [PATCH 1/2] drop Python 3.10 --- .github/workflows/python-package.yml | 4 ++-- setup.py | 3 +-- src/autoqasm/program/pragmas.py | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index f351f7d0..9a3daaa9 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -21,7 +21,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13"] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -47,4 +47,4 @@ jobs: uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 with: token: ${{ secrets.CODECOV_TOKEN }} - if: ${{ strategy.job-index }} == 0 + if: ${{ strategy.job-index == 0 }} diff --git a/setup.py b/setup.py index 0465345b..dcf7c66b 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ name="autoqasm", version="0.2.0", license="Apache License 2.0", - python_requires=">= 3.10", + python_requires=">= 3.11", packages=find_namespace_packages(where="src", exclude=("test",)), package_dir={"": "src"}, install_requires=[ @@ -74,7 +74,6 @@ "Natural Language :: English", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", diff --git a/src/autoqasm/program/pragmas.py b/src/autoqasm/program/pragmas.py index 4172ab9f..266eddd5 100644 --- a/src/autoqasm/program/pragmas.py +++ b/src/autoqasm/program/pragmas.py @@ -31,14 +31,14 @@ def pragma_example() -> None: from __future__ import annotations import contextlib -from enum import Enum +from enum import StrEnum from typing import Iterable from autoqasm import errors, program from braket.device_schema import DeviceActionType -class PragmaType(str, Enum): +class PragmaType(StrEnum): """Values used in pragma statements.""" VERBATIM = "braket verbatim" From 1e33487f140651b4cc67935f64c093f0a3e01717 Mon Sep 17 00:00:00 2001 From: Ryan Shaffer <3620100+rmshaffer@users.noreply.github.com> Date: Tue, 27 Jan 2026 17:23:15 -0500 Subject: [PATCH 2/2] update ruff target version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7b2a1448..6ceaa184 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.ruff] -target-version = "py39" +target-version = "py311" line-length = 100 lint.isort = { known-first-party = [ "braket",