* `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()`.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=30
* `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 operator
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=28
* `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.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=24
- Update to version 0.10.2:
Bug fixes:
* Fix failing tests on Windows.
* Type hint on root parameter on pathspec.pathspec.PathSpec.match_tree_entries().
* Type hint on root parameter on pathspec.pathspec.PathSpec.match_tree_files().
* Type hint on root parameter on pathspec.util.iter_tree_entries().
* Type hint on root parameter on pathspec.util.iter_tree_files().
* Issue #64: IndexError with my .gitignore file when trying to build a Python package.
Improvements:
* Issue #58: CI: add GitHub Actions test workflow.
OBS-URL: https://build.opensuse.org/request/show/1039863
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=20
* 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.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=17
- Update to v0.8.0
* Expose what patterns matched paths. Added `util.detailed_match_files()`
* `match_tree()` doesn't return symlinks
- Add `PathSpec.match_tree_entries` and `util.iter_tree_entries()` to
support directories and symlinks
- API change: `match_tree()` has been renamed to `match_tree_files()`
The old name `match_tree()` is still available as an alias
- API change: `match_tree_files()` now returns symlinks
OBS-URL: https://build.opensuse.org/request/show/839910
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=11