From b90fbc1df548290834aa50ca4778e371821e09d5 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 22 Dec 2025 15:14:11 +0100 Subject: [PATCH 1/3] Drop Python 3.9 support --- .github/workflows/ci.yml | 4 ++-- setup.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65333eb..eaaf8a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - py: [ '3.9', '3.10', '3.11', '3.12' ] + py: [ '3.10', '3.11', '3.12' ] os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ] runs-on: ${{ matrix.os }} steps: @@ -32,6 +32,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.10" - run: pip install mypy - run: mypy --install-types --non-interactive diff --git a/setup.cfg b/setup.cfg index 019511c..9add36a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,7 +16,7 @@ classifiers = Operating System :: OS Independent [options] -python_requires = >=3.9 +python_requires = >=3.10 packages=find: setup_requires = setuptools_scm From 659bccbdca65867125a404c04a2938648c57defd Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 22 Dec 2025 15:14:24 +0100 Subject: [PATCH 2/3] Fix mypy errors --- cmake_file_api/kinds/codemodel/target/v2.py | 4 ++-- cmake_file_api/kinds/configureLog/target/v2.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake_file_api/kinds/codemodel/target/v2.py b/cmake_file_api/kinds/codemodel/target/v2.py index 466bf20..7a01812 100644 --- a/cmake_file_api/kinds/codemodel/target/v2.py +++ b/cmake_file_api/kinds/codemodel/target/v2.py @@ -523,8 +523,8 @@ def from_dict(cls, dikt: dict[str, Any], reply_path: Path) -> "CodemodelTargetV2 isGeneratorProvided, install, link, archive, dependencies, sources, sourceGroups, compileGroups) @classmethod - def from_path(cls, file: Path, reply_path: Path) -> "CodemodelTargetV2": - with file.open() as file: + def from_path(cls, path: Path, reply_path: Path) -> "CodemodelTargetV2": + with path.open() as file: dikt = json.load(file) return cls.from_dict(dikt, reply_path) diff --git a/cmake_file_api/kinds/configureLog/target/v2.py b/cmake_file_api/kinds/configureLog/target/v2.py index 988d286..5f56c30 100644 --- a/cmake_file_api/kinds/configureLog/target/v2.py +++ b/cmake_file_api/kinds/configureLog/target/v2.py @@ -497,8 +497,8 @@ def from_dict(cls, dikt: dict[str, Any]) -> "CodemodelTargetV2": isGeneratorProvided, install, link, archive, dependencies, sources, sourceGroups, compileGroups) @classmethod - def from_path(cls, file: Path) -> "CodemodelTargetV2": - with file.open() as file: + def from_path(cls, path: Path) -> "CodemodelTargetV2": + with path.open() as file: dikt = json.load(file) return cls.from_dict(dikt) From f4d06ee4610cf8965ab17ddee97461b0a3a7d4d1 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 17 Dec 2025 23:32:32 +0100 Subject: [PATCH 3/3] ci: add python 3.13 and 3.14 to test matrix + bump actions --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/release.yml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eaaf8a5..8699b14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,12 +11,12 @@ jobs: strategy: fail-fast: false matrix: - py: [ '3.10', '3.11', '3.12' ] + py: [ '3.10', '3.11', '3.12', '3.13', '3.14' ] os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.py }} - name: "Install requirements" @@ -29,8 +29,8 @@ jobs: check-typing: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: "3.10" - run: pip install mypy diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce001a2..e3b019b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,8 @@ jobs: name: Build and Publish runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: 3.x - run: |