Skip to content

Commit 37e2895

Browse files
committed
Release v0.12.0
1 parent f6bfc89 commit 37e2895

3 files changed

Lines changed: 37 additions & 4 deletions

File tree

CHANGES.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Change History
33
==============
44

5-
0.12.0 (TDB)
6-
------------
5+
0.12.0 (2023-12-09)
6+
-------------------
77

88
Major changes:
99

@@ -19,7 +19,6 @@ New features:
1919
- Added `pathspec.pathspec.PathSpec.check_*()` methods. These methods behave similarly to `.match_*()` but return additional information in the `pathspec.util.CheckResult` objects (e.g., `CheckResult.index` indicates the index of the last pattern that matched the file).
2020
- Added `pathspec.pattern.RegexPattern.pattern` attribute which stores the original, uncompiled pattern.
2121

22-
2322
Bug fixes:
2423

2524
- `Issue #81`_: GitIgnoreSpec behaviors differ from git.

README-dist.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,40 @@ a `Ruby gem`_.
169169
Change History
170170
==============
171171

172+
0.12.0 (2023-12-09)
173+
-------------------
174+
175+
Major changes:
176+
177+
- Dropped support of EOL Python 3.7. See `Pull #82`_.
178+
179+
180+
API changes:
181+
182+
- 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]]`.
183+
184+
New features:
185+
186+
- Added `pathspec.pathspec.PathSpec.check_*()` methods. These methods behave similarly to `.match_*()` but return additional information in the `pathspec.util.CheckResult` objects (e.g., `CheckResult.index` indicates the index of the last pattern that matched the file).
187+
- Added `pathspec.pattern.RegexPattern.pattern` attribute which stores the original, uncompiled pattern.
188+
189+
Bug fixes:
190+
191+
- `Issue #81`_: GitIgnoreSpec behaviors differ from git.
192+
- `Pull #83`_: Fix ReadTheDocs builds.
193+
194+
Improvements:
195+
196+
- Mark Python 3.12 as supported. See `Pull #82`_.
197+
- Improve test debugging.
198+
- Improve type hint on *on_error* parameter on `pathspec.pathspec.PathSpec.match_tree_entries()`.
199+
- Improve type hint on *on_error* parameter on `pathspec.util.iter_tree_entries()`.
200+
201+
202+
.. _`Issue #81`: https://github.com/cpburnz/python-pathspec/issues/81
203+
.. _`Pull #82`: https://github.com/cpburnz/python-pathspec/pull/82
204+
.. _`Pull #83`: https://github.com/cpburnz/python-pathspec/pull/83
205+
172206

173207
0.11.2 (2023-07-28)
174208
-------------------

pathspec/_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@
5555
"kurtmckee <https://github.com/kurtmckee>",
5656
]
5757
__license__ = "MPL 2.0"
58-
__version__ = "0.12.0.dev1"
58+
__version__ = "0.12.0"

0 commit comments

Comments
 (0)