From ba3f1c99091e040f7cd5d6b26c9fa2c4da9959c6 Mon Sep 17 00:00:00 2001 From: Jacob Faibussowitsch Date: Mon, 5 May 2025 14:12:51 -0400 Subject: [PATCH 1/4] Set minimum python version --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 2890882..0a4e04f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,7 @@ dependencies = [ "typing_extensions", ] dynamic = ["version"] +requires-python = ">=3.11" [project.optional-dependencies] test = [ From 08ae649521dce8e4cd6f9785fc1f35156cd1636c Mon Sep 17 00:00:00 2001 From: Jacob Faibussowitsch Date: Mon, 5 May 2025 14:14:46 -0400 Subject: [PATCH 2/4] fixup! Set minimum python version --- src/aedifix/logger.py | 2 +- tests/package/test_main_package.py | 8 ++++++-- tests/test_main.py | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/aedifix/logger.py b/src/aedifix/logger.py index a6f565c..3be5eaa 100644 --- a/src/aedifix/logger.py +++ b/src/aedifix/logger.py @@ -22,6 +22,7 @@ raise RuntimeError(msg) from mnfe import contextlib +from typing import Self from rich.align import Align, AlignMethod from rich.console import Console, RenderableType @@ -29,7 +30,6 @@ from rich.panel import Panel from rich.rule import Rule from rich.table import Table -from typing_extensions import Self if TYPE_CHECKING: from collections.abc import Sequence diff --git a/tests/package/test_main_package.py b/tests/package/test_main_package.py index 3970a83..cb3576a 100644 --- a/tests/package/test_main_package.py +++ b/tests/package/test_main_package.py @@ -33,7 +33,9 @@ def gen_expected_flags() -> Iterator[list[str]]: class TestDebugConfigureValue: @pytest.mark.parametrize( ("val", "expected"), - list(zip(ALL_DEBUG_CONFIGURE_FLAGS, ALL_DEBUG_CMAKE_FLAGS)), + list( + zip(ALL_DEBUG_CONFIGURE_FLAGS, ALL_DEBUG_CMAKE_FLAGS, strict=False) + ), ) def test_flag_matches( self, val: DebugConfigureValue, expected: str @@ -50,7 +52,9 @@ def test_help_str(self) -> None: @pytest.mark.parametrize( ("val", "expected"), - list(zip(ALL_DEBUG_CONFIGURE_FLAGS, gen_expected_flags())), + list( + zip(ALL_DEBUG_CONFIGURE_FLAGS, gen_expected_flags(), strict=False) + ), ) def test_to_flags( self, val: DebugConfigureValue, expected: list[str] diff --git a/tests/test_main.py b/tests/test_main.py index 01b4941..ddb9009 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -159,7 +159,7 @@ def post_test(self, expected_spec: CMakeCommandSpec) -> None: with self.cmakecache_txt.open() as fd: # Exploit the fact that zip() will end when the shortest iterator # is exhausted (i.e. cache_header_lines in this case) - for line, expected in zip(fd, cache_header_lines): + for line, expected in zip(fd, cache_header_lines, strict=False): assert line == expected idx += 1 # But double check the fact that cache_header_lines was indeed the From 29fd1685566b41e8eb468b4ff15936f868af32bc Mon Sep 17 00:00:00 2001 From: Jacob Faibussowitsch Date: Mon, 5 May 2025 14:16:15 -0400 Subject: [PATCH 3/4] fixup! Set minimum python version --- pyproject.toml | 1 - src/aedifix/_version.pyi | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0a4e04f..59de58e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,6 @@ classifiers = [ ] dependencies = [ "rich", - "typing_extensions", ] dynamic = ["version"] requires-python = ">=3.11" diff --git a/src/aedifix/_version.pyi b/src/aedifix/_version.pyi index 0c9aabd..4cb41b1 100644 --- a/src/aedifix/_version.pyi +++ b/src/aedifix/_version.pyi @@ -1,8 +1,8 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 -import typing_extensions +from typing import TypeAlias -VERSION_TUPLE: typing_extensions.TypeAlias = tuple[int | str, ...] +VERSION_TUPLE: TypeAlias = tuple[int | str, ...] version: str __version__: str From d3d77ef00467e366d2a921fc2b5c6887c6ae1b55 Mon Sep 17 00:00:00 2001 From: Jacob Faibussowitsch Date: Mon, 5 May 2025 14:33:10 -0400 Subject: [PATCH 4/4] fixup! Set minimum python version --- .github/workflows/unit-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index bc9b234..0c07fda 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4