From 01731440c9592d72ffac58f3aaf3000b35440465ca2ce0e9e4665ca3b928de0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 16 Jan 2026 13:11:35 +0000 Subject: [PATCH 1/2] Accepting request 1327538 from home:ojkastl_buildservice:Branch_devel_languages_python update to 1.0.3 OBS-URL: https://build.opensuse.org/request/show/1327538 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=35 --- pathspec-0.12.1.tar.gz | 3 -- pathspec-1.0.3.tar.gz | 3 ++ python-pathspec.changes | 84 +++++++++++++++++++++++++++++++++++++++++ python-pathspec.spec | 6 +-- 4 files changed, 90 insertions(+), 6 deletions(-) delete mode 100644 pathspec-0.12.1.tar.gz create mode 100644 pathspec-1.0.3.tar.gz diff --git a/pathspec-0.12.1.tar.gz b/pathspec-0.12.1.tar.gz deleted file mode 100644 index fd9108d..0000000 --- a/pathspec-0.12.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712 -size 51043 diff --git a/pathspec-1.0.3.tar.gz b/pathspec-1.0.3.tar.gz new file mode 100644 index 0000000..11f25ac --- /dev/null +++ b/pathspec-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bac5cf97ae2c2876e2d25ebb15078eb04d76e4b98921ee31c6f85ade8b59444d +size 130841 diff --git a/python-pathspec.changes b/python-pathspec.changes index f8ac0e7..59ca078 100644 --- a/python-pathspec.changes +++ b/python-pathspec.changes @@ -1,3 +1,87 @@ +------------------------------------------------------------------- +Fri Jan 16 06:46:33 UTC 2026 - Johannes Kastl + +- update to 1.0.3: + * Bug fixes: + - Issue #101: pyright strict errors with pathspec >= 1.0.0. + - Issue #102: No module named 'tomllib'. + * - update to 1.0.2: + * Bug fixes: + - Type hint collections.abc.Callable does not properly replace + typing.Callable until Python 3.9.2. + * - update to 1.0.1: + * Bug fixes: + - Issue #100: ValueError(f"{patterns=!r} cannot be empty.") + when using black. + * - update to 1.0.0: + * Major changes: + - Issue #91: Dropped support of EoL Python 3.8. + - Added concept of backends to allow for faster regular + expression matching. The backend can be controlled using the + backend argument to PathSpec(), PathSpec.from_lines(), + GitIgnoreSpec(), and GitIgnoreSpec.from_lines(). + - Renamed "gitwildmatch" pattern back to "gitignore". The + "gitignore" pattern behaves slightly differently when used + with PathSpec (gitignore as documented) than with + GitIgnoreSpec (replicates Git's edge cases). + * API changes: + - Breaking: protected method + pathspec.pathspec.PathSpec._match_file() (with a leading + underscore) has been removed and replaced by backends. This + does not affect normal usage of PathSpec or GitIgnoreSpec. + Only custom subclasses will be affected. If this breaks your + usage, let me know by opening an issue. + - Deprecated: "gitwildmatch" is now an alias for "gitignore". + - Deprecated: pathspec.patterns.GitWildMatchPattern is now an + alias for + pathspec.patterns.gitignore.spec.GitIgnoreSpecPattern. + - Deprecated: pathspec.patterns.gitwildmatch module has been + replaced by the pathspec.patterns.gitignore package. + - Deprecated: + pathspec.patterns.gitwildmatch.GitWildMatchPattern is now an + alias for + pathspec.patterns.gitignore.spec.GitIgnoreSpecPattern. + - Deprecated: + pathspec.patterns.gitwildmatch.GitWildMatchPatternError is + now an alias for + pathspec.patterns.gitignore.GitIgnorePatternError. + - Removed: pathspec.patterns.gitwildmatch.GitIgnorePattern has + been deprecated since v0.4 (2016-07-15). + - Signature of method + pathspec.pattern.RegexPattern.match_file() has been changed + from def match_file(self, file: str) -> RegexMatchResult | + None to def match_file(self, file: AnyStr) -> + RegexMatchResult | None to reflect usage. + - Signature of class method + pathspec.pattern.RegexPattern.pattern_to_regex() has been + changed from def pattern_to_regex(cls, pattern: str) -> + tuple[str, bool] to def pattern_to_regex(cls, pattern: + AnyStr) -> tuple[AnyStr | None, bool | None] to reflect usage + and documentation. + * New features: + - Added optional "hyperscan" backend using hyperscan library. + It will automatically be used when installed. This dependency + can be installed with pip install 'pathspec[hyperscan]'. + - Added optional "re2" backend using the google-re2 library. It + will automatically be used when installed. This dependency + can be installed with pip install 'pathspec[re2]'. + - Added optional dependency on typing-extensions library to + improve some type hints. + * Bug fixes: + - Issue #93: Do not remove leading spaces. + - Issue #95: Matching for files inside folder does not seem to + behave like .gitignore's. + - Issue #98: UnboundLocalError in RegexPattern when initialized + with pattern=None. + - Type hint on return value of + pathspec.pattern.RegexPattern.match_file() to match + documentation. + * Improvements: + - Mark Python 3.13 and 3.14 as supported. + - No-op patterns are now filtered out when matching files, + slightly improving performance. + - Fix performance regression in iter_tree_files() from v0.10. + ------------------------------------------------------------------- Tue Jun 3 09:05:14 UTC 2025 - Markéta Machová diff --git a/python-pathspec.spec b/python-pathspec.spec index da3fd32..77a7360 100644 --- a/python-pathspec.spec +++ b/python-pathspec.spec @@ -1,7 +1,7 @@ # # spec file for package python-pathspec # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,13 @@ %{?sle15_python_module_pythons} Name: python-pathspec -Version: 0.12.1 +Version: 1.0.3 Release: 0 Summary: Utility library for gitignore style pattern matching of file paths License: MPL-2.0 URL: https://github.com/cpburnz/python-path-specification Source: https://files.pythonhosted.org/packages/source/p/pathspec/pathspec-%{version}.tar.gz -BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} From fd942a1a14bd1a8dab9c9d1212eef8b11c1559ca77dc3bbaac6e580c3faefe76 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 3 Feb 2026 03:48:06 +0000 Subject: [PATCH 2/2] - Update to 1.0.4: * Using re2 fails if pyre2 is also installed. - Remove unneeded BuildRequires on setuptools. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pathspec?expand=0&rev=36 --- pathspec-1.0.3.tar.gz | 3 --- pathspec-1.0.4.tar.gz | 3 +++ python-pathspec.changes | 7 +++++++ python-pathspec.spec | 7 +++---- 4 files changed, 13 insertions(+), 7 deletions(-) delete mode 100644 pathspec-1.0.3.tar.gz create mode 100644 pathspec-1.0.4.tar.gz diff --git a/pathspec-1.0.3.tar.gz b/pathspec-1.0.3.tar.gz deleted file mode 100644 index 11f25ac..0000000 --- a/pathspec-1.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bac5cf97ae2c2876e2d25ebb15078eb04d76e4b98921ee31c6f85ade8b59444d -size 130841 diff --git a/pathspec-1.0.4.tar.gz b/pathspec-1.0.4.tar.gz new file mode 100644 index 0000000..8e1ad7d --- /dev/null +++ b/pathspec-1.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0210e2ae8a21a9137c0d470578cb0e595af87edaa6ebf12ff176f14a02e0e645 +size 131200 diff --git a/python-pathspec.changes b/python-pathspec.changes index 59ca078..18b36b1 100644 --- a/python-pathspec.changes +++ b/python-pathspec.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 3 03:42:05 UTC 2026 - Steve Kowalik + +- Update to 1.0.4: + * Using re2 fails if pyre2 is also installed. +- Remove unneeded BuildRequires on setuptools. + ------------------------------------------------------------------- Fri Jan 16 06:46:33 UTC 2026 - Johannes Kastl diff --git a/python-pathspec.spec b/python-pathspec.spec index 77a7360..652d17d 100644 --- a/python-pathspec.spec +++ b/python-pathspec.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-pathspec -Version: 1.0.3 +Version: 1.0.4 Release: 0 Summary: Utility library for gitignore style pattern matching of file paths License: MPL-2.0 @@ -26,9 +26,8 @@ URL: https://github.com/cpburnz/python-path-specification Source: https://files.pythonhosted.org/packages/source/p/pathspec/pathspec-%{version}.tar.gz BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module packaging} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -57,6 +56,6 @@ files. %doc CHANGES.rst README.rst %license LICENSE %{python_sitelib}/pathspec -%{python_sitelib}/pathspec-%{version}*-info +%{python_sitelib}/pathspec-%{version}.dist-info %changelog