diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 9313cf4..3d33468 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.11", "3.12"] os: [ubuntu-latest, windows-latest] steps: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6532e54..b6b03c9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: 'test_hookman_generator/.*' repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.9 + rev: v0.17.0 hooks: - id: ruff-check args: ["--fix"] @@ -21,7 +21,7 @@ repos: language: python additional_dependencies: [pygments, restructuredtext_lint] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v2.3.1 + rev: v2.4.0 hooks: - id: mypy files: ^(src/) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1e32bdd..ccdcdd2 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ History UNRELEASED ========== +- Dropped support for Python 3.10 (EOL). - Added full type annotations and exported types (via ``py.typed``). - Suppress the Windows hard-error dialog that ``LoadLibraryW`` would raise when a plugin DLL has unresolved imports (e.g. a conflicting dependency version bundled inside the diff --git a/setup.py b/setup.py index c7d5974..05cf154 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,6 @@ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ], @@ -36,7 +35,7 @@ include_package_data=True, keywords="hookman", name="python-hookman", - python_requires=">=3.10", + python_requires=">=3.11", packages=find_packages("src", include=["hookman"]), package_dir={"": "src"}, url="https://github.com/esss/hookman", diff --git a/src/hookman/dll_diagnostics.py b/src/hookman/dll_diagnostics.py index 2836335..ebe6fa9 100644 --- a/src/hookman/dll_diagnostics.py +++ b/src/hookman/dll_diagnostics.py @@ -16,8 +16,7 @@ from collections.abc import Sequence from dataclasses import dataclass from pathlib import Path - -from typing_extensions import Self +from typing import Self #: Directories explicitly registered via `os.add_dll_directory` by this process, #: in registration order. `os` provides no API to enumerate them, so callers that add