627b1cd12d- update to 0.12.1: * Issue #84_: PathSpec.match_file() returns None since 0.12.0. * Major changes: * Dropped support of EOL Python 3.7. See Pull #82_. * API changes: * 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]]. * 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). * Added pathspec.pattern.RegexPattern.pattern attribute which stores the original, uncompiled pattern. * Mark Python 3.12 as supported. * Improve test debugging. * Improve type hint on *on_error* parameter on pathspec.pathspec.PathSpec.match_tree_entries(). * Improve type hint on *on_error* parameter on pathspec.util.iter_tree_entries().Dirk Mueller2023-12-12 13:14:49 +00:00
85a8250992Accepting request 1109524 from devel:languages:pythonAna Guerrero2023-09-08 19:15:05 +00:00
79a5cc0e5c- update to 0.11.2: * Issue #80_: match_files with negated path spec. pathspec.PathSpec.match_*() now have a negate parameter to make using *.gitignore* logic easier and more efficient. * Add edge case: patterns that end with an escaped space * Negate with caret symbol as with the exclamation mark. - Update to version 0.10.3 - Update to version 0.10.2: * Issue #43_: Add support for addition operatorDirk Mueller2023-09-07 11:28:09 +00:00
d519617927- update to 0.11.1: * Issue #74_: Include directory should override exclude file. * Pull #75_: Fix partially unknown PathLike type. * Convert os.PathLike to a string properly using os.fspath. * Major changes: * Changed build backend to flit_core.buildapi_ from setuptools.build_meta_. Building with setuptools through setup.py is still supported for distributions that need it. * Issue #72_/Pull #73_: Please consider switching the build-system to flit_core to ease setuptools bootstrap.Dirk Mueller2023-03-26 19:51:05 +00:00
ad55002a19- update to 0.9.0: * Raise GitWildMatchPatternError for invalid git patterns. * Fix for duplicate leading double-asterisk, and edge cases. * Fix matching absolute paths. * API change: util.normalize_files() now returns a Dict[str, List[pathlike]] instead of a Dict[str, pathlike]. * Added type hinting.Dirk Mueller2022-01-05 10:30:49 +00:00
cb0b956b80- Update to 0.6.0: * Issue #24: Drop support for Python 2.6, 3.2, and 3.3. * Issue #25: Update README.rst. * Issue #26: Method to escape gitwildmatch.
Tomáš Chvátal
2019-10-10 08:26:46 +00:00