From 6159eefb7fd6007a020cbb77e08369f516629158 Mon Sep 17 00:00:00 2001 From: dornech Date: Sun, 21 Jun 2026 19:15:35 +0200 Subject: [PATCH 1/6] fix: correct commitizen config configuration for change type order was wrong, must be based on full description --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dbc6fd7..e8cfe6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,8 +111,8 @@ bump_map = {"feat" = "MINOR", "fix" = "PATCH", "BREAKING CHANGE" = "MAJOR"} # with Initial Commit in changelog commit_parser ="^(?P[Ii]nitial [Cc]ommit|feat|fix|refactor|perf|docs|style|test|chore|build|ci|revert|BREAKING CHANGE)(\\((?P[^)]+)\\))?(:\\s(?P.*))?" changelog_pattern = "^([Ii]nitial [Cc]ommit|feat|fix|docs|style|refactor|perf|test|chore|build|ci|revert|BREAKING CHANGE).*" -change_type_map = { feat = "Features", fix = "Bug fixes", refactor = "Refactoring", perf = "performance improvements", docs = "Documentation", style = "Code style", test = "Testing", chore = "Chores", build = "Build system", ci = "Continuous Integration" } -change_type_order = ["BREAKING CHANGE", "feat", "fix", "refactor", "perf", "docs", "style", "test", "chore", "build", "ci"] +change_type_map = { feat = "Features", fix = "Bug fixes", refactor = "Code refactoring", perf = "Performance improvements", docs = "Documentation", style = "Code style", test = "Testing", chore = "Chores", build = "Build system", ci = "Continuous Integration" } +change_type_order = ["BREAKING CHANGE", "Features", "Bug fixes", "Code refactoring", "Performance improvements", "Documentation", "Code style", "Testing", "Chore", "Build System", "Continuous Integration", "Initial Commit"] ################## From 2f67afbbf70f68a480caf3eb5c0be32ca429f6bf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 03:13:16 +0000 Subject: [PATCH 2/6] build(deps): bump actions/checkout from 6 to 7 Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 4 ++-- .github/workflows/documentation.yml | 2 +- .github/workflows/documentation_testbuild.yml | 2 +- .github/workflows/labeler.yml | 2 +- .github/workflows/tests.yml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac2277a..937e8a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - name: Check out the repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: @@ -55,7 +55,7 @@ jobs: needs: build-test steps: - name: Check out the repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ab93fa5..6d17010 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -58,7 +58,7 @@ jobs: Write-Host "GITHUB_PATH: $env:PATH" Write-Host "CAIROCFFI_DLL_DIRECTORIES: $env:CAIROCFFI_DLL_DIRECTORIES" - name: Check out the repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: diff --git a/.github/workflows/documentation_testbuild.yml b/.github/workflows/documentation_testbuild.yml index 816c0f6..fcc2569 100644 --- a/.github/workflows/documentation_testbuild.yml +++ b/.github/workflows/documentation_testbuild.yml @@ -46,7 +46,7 @@ jobs: Write-Host "GITHUB_PATH: $env:PATH" Write-Host "CAIROCFFI_DLL_DIRECTORIES: $env:CAIROCFFI_DLL_DIRECTORIES" - name: Check out the repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index c941c5a..21a468c 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out the repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Run Labeler uses: crazy-max/ghaction-github-labeler@v6.0.0 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0b6b39c..4d0a664 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,7 +34,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Check out the repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6 with: From de57848b72070b539c3285a1f7090136b8c86ea4 Mon Sep 17 00:00:00 2001 From: dornech Date: Tue, 23 Jun 2026 21:45:30 +0200 Subject: [PATCH 3/6] fix: update version.py update of version.py to align with the hatch-vcs-footgun template --- src/utils_COMobjects/version.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/utils_COMobjects/version.py b/src/utils_COMobjects/version.py index e82a981..3a7dbc3 100644 --- a/src/utils_COMobjects/version.py +++ b/src/utils_COMobjects/version.py @@ -14,11 +14,11 @@ def _get_hatch_version(): """Compute the most up-to-date version number in a development environment. - Returns `None` if Hatchling is not installed, e.g. in a production environment. - For more details, see . """ import os + # preparation for Pathlib + # from pathlib import path try: from hatchling.metadata.core import ProjectMetadata @@ -33,9 +33,19 @@ def _get_hatch_version(): err_msg = "pyproject.toml not found although hatchling is installed" raise RuntimeError(err_msg) root = os.path.dirname(pyproject_toml) - metadata = ProjectMetadata(root=root, plugin_manager=PluginManager()) - # Version can be either statically set in pyproject.toml or computed dynamically: - return metadata.core.version or metadata.hatch.version.cached + # preparation for Pathlib + # root = Path(pyproject_toml).parent + # Temporarily set cwd to project root for PEP 517 compliance. + old_cwd = os.getcwd() + # preparation for Pathlib + # old_cwd = Path.cwd() + os.chdir(root) + try: + metadata = ProjectMetadata(root=str(root), plugin_manager=PluginManager()) + # Version can be static in pyproject.toml or computed dynamically: + return metadata.core.version or metadata.hatch.version.cached + finally: + os.chdir(old_cwd) def _get_importlib_metadata_version(): From 27c02324c0646e60417b8ff01f82f9c2e11eb9d2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 03:13:44 +0000 Subject: [PATCH 4/6] build(deps): bump actions/setup-python from 6 to 7 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 4 ++-- .github/workflows/documentation.yml | 2 +- .github/workflows/documentation_testbuild.yml | 2 +- .github/workflows/tests.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac2277a..a9e3a1e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: - name: Check out the repository uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.x' - name: Install dependencies @@ -57,7 +57,7 @@ jobs: - name: Check out the repository uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.x' - name: Install dependencies diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ab93fa5..8ee0fc2 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -60,7 +60,7 @@ jobs: - name: Check out the repository uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.x' - name: Install dependencies diff --git a/.github/workflows/documentation_testbuild.yml b/.github/workflows/documentation_testbuild.yml index 816c0f6..3c6b4a7 100644 --- a/.github/workflows/documentation_testbuild.yml +++ b/.github/workflows/documentation_testbuild.yml @@ -48,7 +48,7 @@ jobs: - name: Check out the repository uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: '3.x' - name: Install dependencies diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0b6b39c..7b0bcb1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,7 +36,7 @@ jobs: - name: Check out the repository uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install dependencies From 3a268324d7f56a86ea087fd0e45a71f88d1f4651 Mon Sep 17 00:00:00 2001 From: dornech Date: Tue, 28 Jul 2026 21:41:58 +0200 Subject: [PATCH 5/6] fix: adjust minimum Python version to 3.11 and other fixes reason EOL Python 3.10 and experiencing version upshift in increasing number of packages, fix includes relaxed format check for version.py and editorial changes --- .github/workflows/tests.yml | 2 +- pyproject.toml | 5 ++--- src/utils_COMobjects/version.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 83990a8..36f396e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,7 +30,7 @@ jobs: strategy: matrix: os: [ windows-latest ] - python-version: [ '3.10', '3.11', '3.12', '3.13', '3.14' ] + python-version: [ '3.11', '3.12', '3.13', '3.14' ] runs-on: ${{ matrix.os }} steps: - name: Check out the repository diff --git a/pyproject.toml b/pyproject.toml index e8cfe6b..d8ec8b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ build-backend = "hatchling.build" name = "utils-COMobjects" description = "Package with various utilities to support COM object development with Python based on PyWin32" readme = "README.md" -requires-python = ">=3.10" +requires-python = ">=3.11" # only license identifier from https://spdx.org/licenses/ are allowed license = { text = "GPL-3.0-only" } # keywords for easier look-up on PyPI @@ -26,7 +26,6 @@ authors = [ # options under https://pypi.org/classifiers/ classifiers = [ "Programming Language :: Python", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", @@ -327,7 +326,7 @@ debug = "cov --no-cov -s --pdb --pdbcls=IPython.core.debugger:Pdb {args}" # Hatch testing environment matrix for various Python versions replacing the functionality of tox [[tool.hatch.envs.test.matrix]] template = ["test"] -python = ["3.10", "3.11", "3.12", "3.13", "3.14"] +python = ["3.11", "3.12", "3.13", "3.14"] # Hatch default linting environment for "hatch fmt" [tool.hatch.envs.hatch-static-analysis] diff --git a/src/utils_COMobjects/version.py b/src/utils_COMobjects/version.py index 3a7dbc3..a0dfa5a 100644 --- a/src/utils_COMobjects/version.py +++ b/src/utils_COMobjects/version.py @@ -6,7 +6,7 @@ # ruff and mypy per file settings # others -# ruff: noqa: PLC0415 +# ruff: noqa: E302, PLC0415 # fmt: off From 3809c67b3bb4e2bd778991118f243fdcd8e4380f Mon Sep 17 00:00:00 2001 From: dornech Date: Tue, 28 Jul 2026 22:11:38 +0200 Subject: [PATCH 6/6] fix: adjust minimum Python version to 3.11 and other fixes reason EOL Python 3.10 and experiencing version upshift in increasing number of packages, fix includes relaxed format check for version.py and editorial changes --- .github/workflows/tests.yml | 2 +- pyproject.toml | 2 +- src/utils_COMobjects/version.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 83990a8..36f396e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,7 +30,7 @@ jobs: strategy: matrix: os: [ windows-latest ] - python-version: [ '3.10', '3.11', '3.12', '3.13', '3.14' ] + python-version: [ '3.11', '3.12', '3.13', '3.14' ] runs-on: ${{ matrix.os }} steps: - name: Check out the repository diff --git a/pyproject.toml b/pyproject.toml index e8cfe6b..6e1affb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -327,7 +327,7 @@ debug = "cov --no-cov -s --pdb --pdbcls=IPython.core.debugger:Pdb {args}" # Hatch testing environment matrix for various Python versions replacing the functionality of tox [[tool.hatch.envs.test.matrix]] template = ["test"] -python = ["3.10", "3.11", "3.12", "3.13", "3.14"] +python = ["3.11", "3.12", "3.13", "3.14"] # Hatch default linting environment for "hatch fmt" [tool.hatch.envs.hatch-static-analysis] diff --git a/src/utils_COMobjects/version.py b/src/utils_COMobjects/version.py index 3a7dbc3..a0dfa5a 100644 --- a/src/utils_COMobjects/version.py +++ b/src/utils_COMobjects/version.py @@ -6,7 +6,7 @@ # ruff and mypy per file settings # others -# ruff: noqa: PLC0415 +# ruff: noqa: E302, PLC0415 # fmt: off