forked from pool/python-pathspec
- 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()`. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=30
This commit is contained in:
parent
79a5cc0e5c
commit
627b1cd12d
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3
|
|
||||||
size 47032
|
|
3
pathspec-0.12.1.tar.gz
Normal file
3
pathspec-0.12.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712
|
||||||
|
size 51043
|
@ -1,3 +1,32 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 12 13:14:15 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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()`.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 7 11:27:28 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Thu Sep 7 11:27:28 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pathspec
|
Name: python-pathspec
|
||||||
Version: 0.11.2
|
Version: 0.12.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Utility library for gitignore style pattern matching of file paths
|
Summary: Utility library for gitignore style pattern matching of file paths
|
||||||
License: MPL-2.0
|
License: MPL-2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user