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/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", 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"