Sync from SUSE:SLFO:Main python-pathspec revision df7ee5a4d3b5017a67eaf8f63c545d0b

This commit is contained in:
Adrian Schröter 2024-12-13 11:54:26 +01:00
parent b6f9b079f4
commit 191fefab3f
4 changed files with 47 additions and 8 deletions

BIN
pathspec-0.11.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pathspec-0.12.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,43 @@
-------------------------------------------------------------------
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>
- 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.
-------------------------------------------------------------------
Fri Apr 21 12:29:07 UTC 2023 - Dirk Müller <dmueller@suse.com>
@ -25,7 +65,7 @@ Sun Mar 26 19:50:29 UTC 2023 - Dirk Müller <dmueller@suse.com>
-------------------------------------------------------------------
Tue Dec 13 15:46:35 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 0.10.3
- Update to version 0.10.3
* New features:
Added utility function pathspec.util.append_dir_sep() to aid in distinguishing between directories and files on the file-system. See Issue #65.
* Bug fixes:
@ -38,7 +78,7 @@ Tue Dec 13 15:46:35 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
-------------------------------------------------------------------
Sat Dec 3 19:55:41 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 0.10.2:
- 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().
@ -131,7 +171,7 @@ Tue Jun 1 07:24:28 UTC 2021 - pgajdos@suse.com
Sat Dec 19 10:49:21 UTC 2020 - Dirk Müller <dmueller@suse.com>
- update to 0.8.1:
* `Issue #43`_: Add support for addition operator
* `Issue #43`_: Add support for addition operator
-------------------------------------------------------------------
Wed Oct 7 03:51:16 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@ -16,10 +16,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-pathspec
Version: 0.11.1
Version: 0.12.1
Release: 0
Summary: Utility library for gitignore style pattern matching of file paths
License: MPL-2.0