diff --git a/.github/workflows/hatch_test.yml b/.github/workflows/hatch_test.yml index 631a6f4..09389e0 100644 --- a/.github/workflows/hatch_test.yml +++ b/.github/workflows/hatch_test.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.9", "3.10", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index ebf99ca..c2f69b7 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.10"] + python-version: ["3.9", "3.10", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/CHANGES.md b/CHANGES.md index b372b05..0df6ce1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ # Changelog +## v1.1.2 + +Add missing dependency `packaging`. + ## v1.1.1 Fix inject_define bindings for multiple class declarations with the same class diff --git a/minject/__init__.py b/minject/__init__.py index 63f2e3e..830cdbd 100644 --- a/minject/__init__.py +++ b/minject/__init__.py @@ -44,7 +44,7 @@ def __init__(self, api, path): ... something = registry['something_i_need'] """ -__version__ = "1.1.1" +__version__ = "1.1.2" from . import inject from .inject_attrs import inject_define as define, inject_field as field diff --git a/pyproject.toml b/pyproject.toml index 42881b1..1d90fff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,9 +10,9 @@ description = "A small dependency injection library for Python." dynamic = ["version"] license = { file = "LICENSE" } name = "minject" -requires-python = ">=3.7" +requires-python = ">=3.9" -dependencies = ["attrs>=17.4", "typing_extensions>=4.1"] +dependencies = ["attrs>=17.4", "packaging", "typing_extensions>=4.1"] [build-system] build-backend = "hatchling.build" @@ -54,10 +54,10 @@ dependencies = [ ] [[tool.hatch.envs.hatch-test.matrix]] -python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] +python = ["3.9", "3.10", "3.11", "3.12", "3.13"] [tool.hatch.envs.types.scripts] check = "mypy --install-types --non-interactive minject" [[tool.hatch.envs.types.matrix]] -python = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] +python = ["3.9", "3.10", "3.11", "3.12", "3.13"]