From 6485791e1b5cf2ef4e756ae392fa80f2c5045d4c Mon Sep 17 00:00:00 2001 From: cpburnz <2126043+cpburnz@users.noreply.github.com> Date: Sun, 10 Dec 2023 17:28:25 -0500 Subject: [PATCH] Release v0.12.1 --- CHANGES.rst | 2 +- README-dist.rst | 14 +++++++++++++- pathspec/_meta.py | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) 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"