diff --git a/CHANGES.rst b/CHANGES.rst index bbae426..e9c6da1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,7 +3,7 @@ Change History ============== -0.12.1 (TBD) +0.12.1 (2023-12-10) ------------------- - Bug fixes: diff --git a/README-dist.rst b/README-dist.rst index 74d29d8..01bf7d6 100644 --- a/README-dist.rst +++ b/README-dist.rst @@ -169,6 +169,18 @@ a `Ruby gem`_. Change History ============== + +0.12.1 (2023-12-10) +------------------- + +- Bug fixes: + +- `Issue #84`_: PathSpec.match_file() returns None since 0.12.0. + + +.. _`Issue #84`: https://github.com/cpburnz/python-pathspec/issues/84 + + 0.12.0 (2023-12-09) ------------------- @@ -179,7 +191,7 @@ Major changes: API changes: -- Signature of protected method `pathspec.pathspec.PathSpec._match_file()` has been changed from `def _match_file(patterns: Iterable[Pattern], file: str) -> bool` to `def _match_file(patterns: Iterable[Tuple[int, Pattern]], file: str) -> Tuple[Optional[bool], Optional[int]]`. +- Signature of protected method `pathspec.pathspec.PathSpec._match_file()` (with a leading underscore) has been changed from `def _match_file(patterns: Iterable[Pattern], file: str) -> bool` to `def _match_file(patterns: Iterable[Tuple[int, Pattern]], file: str) -> Tuple[Optional[bool], Optional[int]]`. New features: diff --git a/pathspec/_meta.py b/pathspec/_meta.py index 173c4a4..4d8c89d 100644 --- a/pathspec/_meta.py +++ b/pathspec/_meta.py @@ -55,4 +55,4 @@ "kurtmckee ", ] __license__ = "MPL 2.0" -__version__ = "0.12.1.dev1" +__version__ = "0.12.1"